Toggle Sonoff basic (tasmota) with button press
![Post Post](./styles/FLATBOOTS/imageset/icon_post_target.gif)
Hi, I would like to ask for help. I have Sonoff Basic with Tasmota FW, MQTT server and NodeMCU. Scenario that I am trying to achieve:
I pressed button, NodeMCU publish "1" to my selected topic. I pressed button again - publish "0". Also I will be controlling Sonoff remotely, so I need that NodeMCU would know what status is Sonoff in at the moment.
Is there any tutorials of maybe someone can help me with this?
I pressed button, NodeMCU publish "1" to my selected topic. I pressed button again - publish "0". Also I will be controlling Sonoff remotely, so I need that NodeMCU would know what status is Sonoff in at the moment.
Is there any tutorials of maybe someone can help me with this?