ratgdo / mqtt-ratgdo

ratgdo via mqtt
GNU General Public License v2.0
76 stars 16 forks source link

Motion state MQTT message is retained message #74

Open Goose66 opened 5 months ago

Goose66 commented 5 months ago

Since motion state is intended to be an "event," i.e. only "detected" will be sent on motion and never "clear," can the retained message on the motionStatus message sent in sendMotionStatus() be sent with the retainedmessage flag set to "false" instead of "true?" That way, when a integration is restarted or forced to reconnect/resubscribe to the MQTT topics, it won't pickup the last motion "event" that probably occurred some time ago.

This was discussed as an alternative in another issue, but the issue got closed without having a chance to discuss or consider.

sejgit commented 5 months ago

upvote for this one please.

graydavidw commented 4 months ago

Yes that would be beneficial .

haffi78 commented 4 months ago

Vote here