enable / disable button at startup
Heljick opened this issue · 4 comments
Hi,
i am looking to enable or disable buttons at startup depending of my needs.
i tried to add ActiveState: 1 or ActiveState: 0 as Inverted: True or Inverted: False in the config.yml in the Appliance description depending of the GPIOSetup.py but It doesn't work :/
Is that implemented or I am doing thinks wrong ?
Regards
Hi,
This is something that isn't implemented. At startup all appliances should be turned off.
You could setup a script that turns some appliances on after you start webgpio. How are you running it currently?
Actually I am working on a RPi and some relay; I have stuff that needs to be open and others closed but I don't want that to be done on the relay as i want everything up as a green button and down as a red button. Button color is ok but I need those to be activeted or not at startup, I think I will have a look at the yml as for me it's the easyest impelmentation for next use.
Was this ever solved? I'm having the same issue. I need to have a single WebGPIO config that uses GPIO.LOW for a few pins but GPIO.HIGH for another. I tried setting "ActiveState: 0" but it doesn't seem to do anything.
Was this ever solved? I'm having the same issue. I need to have a single WebGPIO config that uses GPIO.LOW for a few pins but GPIO.HIGH for another. I tried setting "ActiveState: 0" but it doesn't seem to do anything.
Please excuse my ignorance. I ended up spending about 30 minutes in the code and figured out "Inverted: 1" behaved like I wanted it to. I thought ActiveState was something you could set in config.yml but I don't think it is.