Any adjustment of status GPIO MQTT broker

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
dimnsk
New user
Posts: 8
Joined: 04 Jul 2016, 18:46

Any adjustment of status GPIO MQTT broker

#1 Post by dimnsk » 18 Jul 2016, 20:07

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

User avatar
dimnsk
New user
Posts: 8
Joined: 04 Jul 2016, 18:46

Re: Any adjustment of status GPIO MQTT broker

#2 Post by dimnsk » 22 Aug 2016, 15:40

UP

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Any adjustment of status GPIO MQTT broker

#3 Post by Drum » 23 Aug 2016, 12:52

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 ?

User avatar
dimnsk
New user
Posts: 8
Joined: 04 Jul 2016, 18:46

Re: Any adjustment of status GPIO MQTT broker

#4 Post by dimnsk » 24 Aug 2016, 11:57

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

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Any adjustment of status GPIO MQTT broker

#5 Post by Drum » 24 Aug 2016, 13:42

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?

User avatar
dimnsk
New user
Posts: 8
Joined: 04 Jul 2016, 18:46

Re: Any adjustment of status GPIO MQTT broker

#6 Post by dimnsk » 24 Aug 2016, 15:19

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

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Any adjustment of status GPIO MQTT broker

#7 Post by Drum » 26 Aug 2016, 10:54

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests