-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Additional nested configuration option causes gpio module to not start anymore #80
Comments
So first thing I'm seeing is that you don't have correct indentation. I'm spinning up a new SD card for an RPi0 to test, maybe you'll be faster. Try the following for your configuration, it may not work though since the error you are showing me here is different than the one you showed me on the forum. my-pin:
### Pin Number
pin: 5
### Pin Name
# Subsitutions:
# - {pin} = pin number
# - {pin:02d} = pin number padded with 0's to always be 2 numbers
# - {pin_id} = name of this section
#name: '{pin_id}'
### Pin Mode
pin mode: 'output' # can be 'input' or 'output'
digital:
initial state: OFF |
I won't be able to do that before tomorrow as I am at work today, sorry. |
So with the valid indentation (which I notice you did have in the forum, with the other error) I get the following error in the log:
which explains the error you see farther on in the log saying that the
This actually reveals 2 problems:
I will get a patch done up shortly to fix both of these issues. |
Problem 2 is a YAML one... The values |
When adding the configuration option
digital:
the gpio module does not start anymore.Configuration
Logs
After removing the
digital:
config option the module loads as expected:This issue was discussed here:
https://community.openhab.org/t/mqttany-gpio-and-more-over-mqtt/81450/8?u=sihui
The text was updated successfully, but these errors were encountered: