EPMatt / awesome-ha-blueprints

A curated collection of automation blueprints for Home Assistant.
https://epmatt.github.io/awesome-ha-blueprints
GNU General Public License v3.0
860 stars 253 forks source link

New Controller - Sonoff contact sensor SNZB-04 #84

Open KrzysztofHajdamowicz opened 3 years ago

KrzysztofHajdamowicz commented 3 years ago

Thank you for taking the time to report here! :tada:

Please don't delete any part of the template, since keeping the provided structure will help maintainers to process your request more rapidly.

This template should only be used to propose support for a a new Controller blueprint. If this is not your case, you can choose a different issue template. If you have a question instead, please open a discussion here.

*=required

Controller Information*

Actions

If possible, provide here mappings for actions which can be triggered with this controller. Specify the integration these mappings refer to. If you want to provide mappings for multiple integrations, you can duplicate the following section as needed.

[Integration] (e.g. deCONZ, ZHA, Zigbee2MQTT)

Zigbee2MQTT: https://www.zigbee2mqtt.io/devices/SNZB-04.html deCONZ: https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3036 https://zigbee.blakadder.com/Sonoff_SNZB-04.html

Additional Details*

Additional context

Looks like refresh rate of this device is pretty low.

EPMatt commented 3 years ago

Hi @KrzysztofHajdamowicz, thank you for the suggestion.

This project currently implements support for controllers such as switches, remotes etc. Since contact sensors are not part of this category, they are currently not being considered, but you raised an interesting idea: we can not only limit support to actual controllers, but implement functionality for any kind of device which is associated with some sort of "action".

For now I won't proceed on implementing a blueprint for this device, but this is something which we could definitely consider in the future, since we need to understand how to categorize such devices in our collection, which probably requires a little bit of thinking.

I'll leave this issue open for future reference. Thanks again! :)

KrzysztofHajdamowicz commented 3 years ago

No problem! I'm using this sensor in a room, that is basically "enter into, pick your thing, get out and close the door", this makes my automation working exactly as fridge doors- light is on as long as doors are open.

maykey22 commented 1 year ago

Hi, any plans to support this device?

KrzysztofHajdamowicz commented 1 year ago

Dunno, it depends on @EPMatt. For me, contact sensor works as a light switch.