ESteanes / RP2040Home

MQTT Client for RP2040 based boards that directly interfaces with Home Assistant
MIT License
0 stars 0 forks source link

Define normal state on a per-output basis #2

Open ESteanes opened 3 months ago

ESteanes commented 3 months ago

Not everything should be set to off by default - if you're controlling lights for example it might be more beneficial to make them normally on.

Current output definition:

{
            "name": "myOutput",
            "pin": 1,
            "on_payload": "ON",
            "off_payload": "OFF"
        }

Potential output definition:

{
            "name": "myOutput",
            "pin": 1,
            "on_payload": "ON",
            "off_payload": "OFF",
            "default_state": "ON",
        }