• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


webgui, after reboot the switch is off
#1
Hello,
after a reboot  the slider for Switch3 ON/OFF is always OFF.
What do I have to do, that after a reboot it is ON?


Code:
"Switch3": {
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 4
            }],
            "state": "on"         

Thanks and regards
gwaag
 
Reply
#2
What's the default status of the device?
 
Reply
#3
(11-02-2019, 07:37 PM)curlymo Wrote: What's the default status of the device?

I don't understand what you mean.
regards
gwaag
 
Reply
#4
If you restart the pi, is the relay on or off?
 
Reply
#5
(11-02-2019, 10:56 PM)curlymo Wrote: If you restart the pi, is the relay on or off?

I added
Code:
"default-state": "off",

now it seems to work as expected.
regards
gwaag
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  webgui apparence gwaag 7 301 10-29-2019, 09:00 PM
Last Post: curlymo
  Modifying Webgui Alex 4 1,487 03-10-2019, 05:50 PM
Last Post: Alex
  pilight & piSchedule works fine but no webgui Sven 4 1,258 01-13-2019, 06:12 PM
Last Post: Sven
  webgui - registry "tabs": 1 usage and possibility to order fcoelho 3 3,884 03-22-2018, 07:31 PM
Last Post: Oliver
  New tab in webgui Roger 0 774 09-15-2017, 02:14 PM
Last Post: Roger
  Cannot connect to WebGUI von BlackBerry 10 device. muecke 2 1,205 12-02-2016, 10:22 AM
Last Post: muecke
  WebGUI support for illuminance sensors marcm 2 1,369 11-30-2016, 01:49 PM
Last Post: marcm
  Webgui Remuko 1 2,190 09-17-2016, 10:14 AM
Last Post: buldogwtf
  WebGUI doesn't retrieve state Thunder84 1 1,458 05-01-2016, 08:35 PM
Last Post: Thunder84
  Plenary - An alternative webGUI for pilight mitch187 20 16,704 03-29-2016, 06:25 AM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)