Smart Home Automation Forum
Mqtt and switches - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-AM (https://www.kincony.com/forum/forumdisplay.php?fid=45)
+--- Thread: Mqtt and switches (/showthread.php?tid=2981)



Mqtt and switches - philippe - 06-15-2023

Hi , I d like my switches to not act on my relays. And instead, they should send MQTT messages stating "switch 1 action ON". I tried according to the tasmota pages https://tasmota.github.io/docs/Buttons-and-Switches/#ac-frequency-detection-switch to do it, setoption 114 ou 15, but I dont see any mqtt message when pressing a switch. Can you help?
Thanks


RE: Mqtt and switches - admin - 06-15-2023

SwitchMode1 1
SwitchTopic 0
Rule1 on Switch1#state=1 do publish stat/%topic%/PIR1 ON endon on Switch1#state=0 do Publish stat/%topic%/PIR1 OFF endon
Rule1 1

i think you can do as this, such as the PIR sensor:
https://tasmota.github.io/docs/PIR-Motion-Sensors/


RE: Mqtt and switches - philippe - 06-16-2023

The pb is that I have not yet learn the arduino stuff. Any possibility to update the bin file for me?
Thanks


RE: Mqtt and switches - admin - 06-16-2023

you are seeing tasmota solution. it's not use by arduino code. just set config as tasmota's guide.