OOOOKAAAY… Thanks to all of you for your input!!
In an earlier post with ReneTode, I stated I was going to switch over to mysensors. Well I was looking into that today and was trying to figure out which sensor to make - it seems all the info on the website is about the gateway and not much on each sensor…
Anyway… I went back through the forum here looking for the sensor and noticed that 1technophile had also posted. (I think he uses OpenHab) So I re-read what he had said since he invented the 433toMQTTto433 Gateway that I’m currently using. He stated “In home assistant you can search maybe about templates and use the state topic when configuring your switch.”
So I took another look at templates which got me looking at the MQTT switch component… Turns out I didn’t have this configured correctly to begin with. I added “state_topic” for Hass to “listen” to the remotes. My mistake before was not adding the “optimistic: true” which is what makes it work.
Here is the configuration that works. And I didn’t change the code just in case your in Seymour Indiana and want to mess with my office fan. (fun!)
Switch:
- platform: mqtt
name: “Office Fan”
state_topic: “home/433toMQTT”
command_topic: “home/MQTTto433/”
payload_on: “1382147”
payload_off: “1382156”
optimistic: true
retain: true
(sorry I can’t get the spacing right here.)
Thanks to everyone for helping!