Skip to content

Allows to set Netatmo Energy away/schedule mode via HomeKit.

License

Notifications You must be signed in to change notification settings

no1lov3sme/rpi-homekit-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
    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:
    {
        "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
    npm run status
  2. Set "away" mode ON
    npm run set-on
  3. Set "away" mode OFF
    npm run set-off

About

Allows to set Netatmo Energy away/schedule mode via HomeKit.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published