Closed laboye3148 closed 6 years ago
The sensor value can be sent, but it will be very noisy and triggered very often. Unless some sort of fixed timer only sends it at fixed intervals if a diff is large enough Sending Triggered/non triggered should be straight forward. Same goes for screen state.
I think the triggered/non-triggered and/or screen state should suffice, since that's based on the configured threshold. Basically trying to leverage the sensor for other HA tasks.
Added new topics and config values to enable. I haven't tested it so feel free to experiment and report back :) I just realized that the topics might be too noisy, as the proximity will trigger for any value over the threshold and the screen state will get a bunch of updates too
K added another update to only send screen updates if state has changed. Please test and report :)
Closing
Could the proximity sensor's value be sent to an MQTT topic? Or perhaps a binary 'tripped/not tripped' value from the ini's configured threshold?
Also, although the screen can be controlled via topic, can its status also be published?