Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/no1lov3sme/rpi-homekit-hub
Allows to set Netatmo Energy away/schedule mode via HomeKit.
https://github.com/no1lov3sme/rpi-homekit-hub
homebridge netatmo
Last synced: 4 months ago
JSON representation
Allows to set Netatmo Energy away/schedule mode via HomeKit.
- Host: GitHub
- URL: https://github.com/no1lov3sme/rpi-homekit-hub
- Owner: no1lov3sme
- License: mit
- Created: 2022-11-20T08:02:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-22T06:48:40.000Z (about 2 years ago)
- Last Synced: 2024-09-27T08:20:52.661Z (4 months ago)
- Topics: homebridge, netatmo
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Raspberry Pi HomeKit Hub
Allows to set Netatmo Energy __away__/__schedule__ mode. Created for __Homebridge__ hosted on Raspberry Pi.
## Configuration
1. Create an app in https://dev.netatmo.com/apps
2. Clone repository to directory __/home/pi__
3. Enter your credentials in `credentials.json`
4. Install __Homebridge__ to your Raspberry Pi
https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Raspbian
5. Set __homebridge__ user as directory owner:
```shell
sudo chown homebridge /home/pi/rpi-homekit-hub -R
```
6. Install __homebridge-script2__ plugin
https://github.com/pponce/homebridge-script2#readme
7. Add this configuration to your __homebridge-script2__ plugin in __Homebridge__ interface:
```json
{
"accessory": "Script2",
"name": "Netatmo \"away\" state",
"on": "cd /home/pi/rpi-homekit-hub && npm run --silent set-on",
"off": "cd /home/pi/rpi-homekit-hub && npm run --silent set-off",
"state": "cd /home/pi/rpi-homekit-hub && npm run --silent status",
"fileState": "/home/pi/rpi-homekit-hub/script.flag",
"on_value": "ON"
}
```
8. Scan QR code in __Homebridge__
`http://{raspberry_ip_address}:8581`
9. You're all set!## To test scripts manually you can call:
1. Get state
```shell
npm run status
```
2. Set "away" mode ON
```shell
npm run set-on
```
3. Set "away" mode OFF
```shell
npm run set-off
```