Closed pierrebengtsson closed 3 years ago
The trick is not to think of remotes as having a state. They don’t. When you push a button, it momentarily has a state («button pushed»), but as you don’t keep the button push down, it shortly thereafter does not have that state anymore.
See issue #5 and the long discussion about it.
Now that the binary_sensor has a state for a second (and then goes unavailable after a second), you can use that to trigger an automation in HA and nothing happens on restarts of HA. Additionally, you may have several remotes controlling the same entity which was not possible - at least not very easy - with the old implementation with states that were retained.
Thank you, i get that part. The thing is that I have door and window sensors that also shows up as binary sensors. As they isn't persistent a restart of Home assistant results in all of them being unavailable until they are triggered. Once triggered they show open/closed until a restart and they become unavailable again until triggered. So badges in HA will not say a door is closed, it will say it is unavailable.
Edit: my door/window sensors are z-wave
OK, I wrongly assumed you were talking about remotes. Sorry about that.
I’m using the plugin for a few 433 MHz remotes and a 433 MHz dusk sensor. They all work very well now that they show up as binary_sensors that expire after a second.
Hi sorry for late reply. Could you post a capture of "telldus/+/debug" while starting the tellstick and then a capture of "homeassistant/binary_sensor/+/+/config" ?
Please try version 0.90. Open new issue if problem persists.
With releases from 0.82.2 and forward none of my binary.sensor -units is sent with the persistent flag. (it think it has something to do with the changes in 0.82.2 ("The binary_sensor will turn ON or OFF when remote is pressed but after 1 sec it will be unknown/unavailable.") and that this is also happening on other binary sensors. If i go back and use an older version than above none of my devices will show up as a device, only as an entity in home assistant.