I have wired 3 of 8 relays to my RPi zero in the way that they are disabled most of the time and only when there is a HIGH on the GPIO - only then are those 3 relays activated (contrary to the rest of the relays which are activated on LOW). The 3 ports are 2, 4, 27. Here is the configuration:
@tom_l - I have been using your solution for quite a long now and it worked perfect. Now I decided to move one of the gpios (15: AirConditioning) to the “inverted_logic” group so I restarted HA after rewriting my configuration.yaml as follows:
After HA restart “15: AirConditioning” indeed didn’t turn on which is what I want. However in the Frontend UI it is displayed as “turned on” while it is actually “off”. If I toggle it - it turns on but is displayed as OFF in the UI. How can I sync these two things?
I don’t have a supervisor, since I run a docker-based HA, but I did a soft server restart as follows: Configuration → Server Controls → Server management → Restart