Moderators: grovkillen, Stuntteam, TD-er
-
dimnsk
- New user
- Posts: 8
- Joined: 04 Jul 2016, 18:46
#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
-
dimnsk
- New user
- Posts: 8
- Joined: 04 Jul 2016, 18:46
#4
Post
by dimnsk » 24 Aug 2016, 11:57
I do not mean the settings in the screenshot
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
#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?
-
dimnsk
- New user
- Posts: 8
- Joined: 04 Jul 2016, 18:46
#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
#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.
Who is online
Users browsing this forum: Ahrefs [Bot] and 20 guests