quazzie / tellstick-plugin-mqtt-hass

Plugin for tellstick, connect to homeassistant via mqtt with autodiscovery.
39 stars 7 forks source link

Only subscribe to "new" input #36

Open PontusEkengren opened 2 years ago

PontusEkengren commented 2 years ago

In my use case (433-remote control) I am only interested in "new" incoming signals, not existing states.

Therefor I wonder if functions like @slot('deviceStateChanged') might be suitable to publish to two topics, one to self.publishState(haDev) and another to self.publishNewState(haDev) for subscribers only interested in changes to the value.

Do you find this reasonable? Is this functionality already in place and I have failed to to spot it?

image

Thank you for this plugin by the way!