Help with mqtt sensor in automation


Hi guys, Merry Christmas, how do I do this in an automation? My goal is to put null inside every time the mqtt sensor updates so if I click the same button it updates anyway and the state doesn’t stay the same. Thanks

Hi, the quick & dirty way to do it is to create an automation which listens to the mqtt event & publishes another message with button_number: "".

However, there might be cleaner ways to do it if you provide more info about what this remote is and how it’s communicating to HA via MQTT (Zigbee2MQTT, ESPHome, Tasmota?)

the remote control is a haptique rs 90 that communicates with home assistant with its official integration via Mosquitto broker

Ok, so the quick & dirty way I mentioned earlier should work via an automation. I’m guessing you need to input eg. 77 to switch to that TV channel.

However, that (custom) integration seems to be in active development and the dev seems quite responsive. Why don’t you raise a feature request on their Github so it’s implemented for everyone out of the box?