kingsleyadam / local-abbfreeathome-hass

This is the Home Assistant custom_components (HACS) repository for Busch Jaeger/ABB Free@Home (Local API)
MIT License
3 stars 2 forks source link

Adds support for sensor and binary sensor platforms #25

Closed kingsleyadam closed 3 days ago

kingsleyadam commented 4 days ago

This addresses #24 , This adds support for both sensor and binary sensor platforms in Home Assistant.

The initial implementation supports

A note and something that may be confusing, the switch sensor only follows the state of the switch on physical button presses. It doesn't follow the state of the light it may be controlling. If you turn off a light with Home Assistant, the Switch Sensor won't be updated to reflect the light state. Because of this we should probably also implement an Event when the Switch is physically pressed, the event will trigger regardless of if the state is already On/Off.

This also includes a translations update to ensure we can translate the name of the sensors in the future.