-->
Page 1 of 1

Toggle Sonoff basic (tasmota) with button press

PostPosted: Sun Jun 23, 2019 5:21 am
by kalabok123
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?