jpulakka / nordpool_diff

Transforms electricity spot price into thermostat control signal. Home Assistant custom component.
MIT License
63 stars 7 forks source link

Configuration sanity checks, good defaults, something optional #3

Closed jpulakka closed 2 years ago

jpulakka commented 2 years ago

Currently we require two settings

    nordpool_entity: sensor.nordpool_kwh_fi_eur_3_095_024
    filter_length: 5

If either of those is missing, we get clear error, but if they are present but wrong, unplanned things happen.

Some help in https://developers.home-assistant.io/docs/development_validation/

jpulakka commented 2 years ago

Done in https://github.com/jpulakka/nordpool_diff/commit/3880ef3c60633044368b2719272e182ae27a47e0