-
Notifications
You must be signed in to change notification settings - Fork 638
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
Relay is missing on MINI_SMART_SOCKET #2568
Comments
Maybe something claiming it first? check out |
gpio.locks
|
|
get relayGpio0
|
Ah, I got it. The gist of it is that relay settings are simply not used. At boot, Lights create a virtual relay (ID 0). Then, when Relays init the relay ID 0 is already taken so no relays are generated. If there as Our .h(s) should just do |
|
True. But, on the other hand, lights would be ordered last. Either way we have a 'hidden' relay injected but something else Making this an explicit config is also what I had in mind #define RELAY1_PROVIDER RELAY_PRIVIDER_LIGHT_STATE
// default is RELAY_PROVIDER_GPIO for hardware pins Or, just rely on existing dummy ones #define RELAY1_PROVIDER RELAY_PRIVIDER_DUMMY
#define LIGHT_STATE_RELAY 1 // like buttons are linked Hidden WebUI setting looks like a bug, we don't announce relay support to UI without any relays already configured :oops: |
Device
MINI_SMART_SOCKET
Version
1.15.0-dev.git68310b6d
Question
Hello,
I build the firmware for MINI_SMART_SOCKET by myself. But I´m missing the Relay. I can switch the LEDs and change the color, but can´t switch the relay. The Website only show one switch for the LEDs.
I have standard config and this custom.h:
The relay is on GPIO15.
If I call "gpio 15" in DEBUG or telnet, I get
INPUT @ GPIO15 (LOW)
The GPIO15 must be an output. What´s wrong?
How can a get back the relay-switch? Any idea?
Greetings, kuppe
The text was updated successfully, but these errors were encountered: