Page 1 of 1

Any adjustment of status GPIO MQTT broker

Posted: 18 Jul 2016, 20:07
by dimnsk
Is there a setting boot state of GPIO MQTT broker?

How to setup ?
if MQTT topic linked GPIO pin payload is equal to 1
it is equal to 1 at the boot of GPIO

example

Code: Select all

/node-21/switch5/set : 1
at the start state  GPIO 5   =  1

Re: Any adjustment of status GPIO MQTT broker

Posted: 22 Aug 2016, 15:40
by dimnsk
UP

Re: Any adjustment of status GPIO MQTT broker

Posted: 23 Aug 2016, 12:52
by Drum
Look at http://www.esp8266.nu/index.php/ESPEasy about halfway down, hardware settings. Is this what you are looking for? High = 1 Low = 0 ?

Re: Any adjustment of status GPIO MQTT broker

Posted: 24 Aug 2016, 11:57
by dimnsk
Drum wrote:Look at http://www.esp8266.nu/index.php/ESPEasy about halfway down, hardware settings. Is this what you are looking for? High = 1 Low = 0 ?
I do not mean the settings in the screenshot
Image

We must restore the value of the GPIO value MQTT topic
example

Code: Select all

mqtt topic /node-21/gpio/5    status =1 
after reboot ESP
it should be value  gpio  5  be =1


PS sorry my language english not very

Re: Any adjustment of status GPIO MQTT broker

Posted: 24 Aug 2016, 13:42
by Drum
So you are looking to retain the GPIO setting based on the last MQTT msg?
For example, a switch setting, if the switch is on or off?

Re: Any adjustment of status GPIO MQTT broker

Posted: 24 Aug 2016, 15:19
by dimnsk
Drum wrote:So you are looking to retain the GPIO setting based on the last MQTT msg?
For example, a switch setting, if the switch is on or off?
YES exactly!

at the start
If there is a message MQTT broker with the state of GPIO ESP his restored

Re: Any adjustment of status GPIO MQTT broker

Posted: 26 Aug 2016, 10:54
by Drum
Okay, there is at least 1 thread in the form pretty recently on this topic. I don't remember exactly. I checked the device screen for switches, and there is a "send boot state" tick box.
Which version are you using? The switch functionality has been pretty active recently so it would be good to keep an eye on the latest version and release notes. I don't have an switch hardware yet so I don't keep up with that functionality as well. The development on this software is very active so reading the forums is really important.