Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable / disable button at startup #20

Open
Heljick opened this issue Dec 15, 2020 · 4 comments
Open

enable / disable button at startup #20

Heljick opened this issue Dec 15, 2020 · 4 comments

Comments

@Heljick
Copy link

Heljick commented Dec 15, 2020

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

@ThisIsQasim
Copy link
Owner

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?

@Heljick
Copy link
Author

Heljick commented Dec 15, 2020

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.

@lnxus
Copy link

lnxus commented Sep 30, 2021

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.

@lnxus
Copy link

lnxus commented Sep 30, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants