Git Product home page Git Product logo

homebridge-plugin-netatmo-rain-sensor's Introduction

npm npm github Donate

Homebridge Plugin for the Netatmo Rain Sensor

This Homebridge Plugin makes the Netatmo Rain Sensor accessible to HomeKit as a Switch or Leak Sensor. This makes it possible to use the Netatmo Rain Sensor for all kinds of automations based on rain detection.

Important Notes

There are a couple of limitations to the Netatmo Rain Sensor and its respective API that you should be aware of. These are not limitations of this plugin:

  • The Netatmo API is updated in 10-minute intervals.
    • This means that in the worst case this plugin detects rain with a 10-minute delay.
  • The rain information is accumulated for 30 minutes.
    • This means that this plugin will report rain for at least 30 minutes even if it just rained for e.g. 5 minutes.
  • It is not allowed to poll the Netatmo API too frequently.
    • Therefore the minimum polling interval for this plugin is 1 minute to ensure you comply with the Netatmo rules.

Installation

In Homebridge switch to the Plugins tab. Enter homebridge-plugin-netatmo-rain-sensor in the search box. Click Install.

Plugin Configuration in Homebridge

The configuration is simplified as much as possible and comes with default values that give the fastest possible rain detection.

The main caveat in the configuration is that you need to be registered as a developer at https://dev.netatmo.com/. It is free of charge and basically elevates your existing Netatmo account to a developer account. You need this to obtain your "Client ID" and "Client Secret".

As of version 2.2.0 multiple Netatmo Rain Sensors are supported via the optional serial number configuration field.

Additional Information

HomeKit does not support rain sensors natively right now. Therefore your Netatmo rain sensor is shown as "unsupported" in the Home App and cannot be used for automations. This is a little sad because rain detection can be the trigger for all kinds of meaningful automations.

This plugin basically "wraps" the Netatmo Rain Sensor in the form of a Switch or Leak Sensor which is a device category natively supported by HomeKit. The trigger "Switch On" or "Leak detected" can now act as a starting point for automations.

The way this works is that this plugin polls the Netatmo API periodically in the background and triggers the "Switch On" or "Leak detected" status when rain was detected by the sensor.

homebridge-plugin-netatmo-rain-sensor's People

Contributors

chefhl avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

homebridge-plugin-netatmo-rain-sensor's Issues

Does it work?

Hi there.

I get the following @ homebridge:
[Homebridge Netatmo Rain Sensor] Netatmo API error: Error: Authenticate error: unauthorized_client

Will the plugin still work, or will it stop working altogether before I continue troubleshooting?
I would like to use my Rain Gauge in Homekit.
Thanks a lot

Possibility to decide switch or leak sensor

Is your feature request related to a problem? Please describe:
At the beginning, the plugin created a leak sensor. With the V2 this was changed to a switch.
Would it be possible to have a option how the plugin should display the sensor?

Describe the solution you'd like:
Option 1: Leak Sensor
Option 2: Switch

Netatmo Pluviomètre

Bonjour,

Je n'arrive pas à configurer votre plugin.

J'ai un message d'erreur de Netatmo : invalide grant ; authentification failure.

Pourtant, j'ai mis les mêmes identifiants et mots de passe que le Plugin "Eveatmo".

Merci par avance.

update

You can kindly upgrade the plug, it would be great because this is very interesting.

Maintain switch status when raining

Hi, I'm not sure if this is expected behavior, but when the plugin receives a "raining" status, the switch flips on and then immediately back off. I had expected the switch to remain on until it received a "not raining" status.

That way I could create automations based on when the rain both starts and stops. At the moment, I can only create an automation based on when rain starts. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.