-
I've run into this a few times, and wanted to know if anyone has seen this in documentation. I have a ESP8266 with two PWM channels defined, PWM1 is a light and PWM2 is a fan. Works fine. Then I decide to add an IR LED to send commands to a nearby device, so I define a dummy relay (Relay/3) in GPIO assignments. Great, now my GUI shows PWM1 (Light) and PWM2 (Fan) and Relay 3 (Dummy). My rules do an IRSEND on power3#state changes. But when I issue the command Turns out the PWM gets pushed to the bottom and whatever relays take their place at the front of the line. So the dummy relay is actually the first button on the GUI, and Light is number 2, Fan is number 3. I had the same issue when I added a relay to a setup with a seven segment display. The power button assigned to the display gets pushed to the bottom, after any relays, which can screw up ordering/ webbutton defines, Alexa control... I'd like to get this documented somewhere obvious so people can find an answer when they get confused by the inconsistency like I did. Thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You should not add Relay_3 but Relay_1. Always start the index of each component at 1 Relays are enumerated before PWM so |
Beta Was this translation helpful? Give feedback.
You should not add Relay_3 but Relay_1. Always start the index of each component at 1
Relays are enumerated before PWM so
Relay_1 => Power 1
PWM_1 => Power 2
PWM_2 => Power 3