Closed fredrike closed 6 years ago
I agree! (actually I wrote the current Telldus Live component in Home Assistant). I just haven't had time to integrate this into Home Assistant. :-( I am aware of the shortcomings of the current polling based implementation.
Also, Telldus seem to have published Python-versions of the various protocol decocoders here: https://github.com/telldus/tellstick-server/tree/master/rf433/src/rf433, they probably should be used instead of https://github.com/molobrakos/tellsticknet/tree/master/tellsticknet/protocols
Would you like to contribute, then we could discuss in some other channel?
I've created a chatroom in gitter for future discussions: https://gitter.im/tellsticknet/
Main issues for integrating into HA.
configuration.yaml
that needs to be edited manually. (This can actually be optional. It would be possible for the implementation to decided the mapping itself by comparing sensor values for most sensors - at least in case there is only one sensor with same value reported by the server. Logic: 1) receive sensor reading over udp 2) check already known mappings, including user provided, if found call the update callback 3) check if there exists exactly one sensor reported by the server with same values (all values/scales), if so add to known mapping and call the update callback 4) log unknown sensor reading). configuration.yaml
for this as well. The constructor (in tellduslive) could accept (in additon to the device mapping) a value listen_local_udp_broadcast
(default False
), if set to True
, use autodiscover, if set to host name / ip, just use it. Also default True if local API is enabled (then we know we are on the same network).Moving issue here: https://github.com/molobrakos/tellduslive/issues/8
It would be great to use this library together with the interface of home-assistant.
There already exist a telldus-live plugin, but that suffers for the issues with telldus live and by using the tellstick-net directly with a local interface the live issues can be eliminated.
Here are some documentation on how to integrate plugins to home-assistant https://home-assistant.io/developers/add_new_platform/