Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mqtt and switches
#1
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-a...ion-switch to do it, setoption 114 ou 15, but I dont see any mqtt message when pressing a switch. Can you help?
Thanks
Reply
#2
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/
Reply
#3
The pb is that I have not yet learn the arduino stuff. Any possibility to update the bin file for me?
Thanks
Reply
#4
you are seeing tasmota solution. it's not use by arduino code. just set config as tasmota's guide.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)