You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add fault binary sensor for sprinkler devices (#375)
* Add fault binary sensor for sprinkler devices
Handles websocket "fault" events with station_faults data, exposing a
PROBLEM-class binary sensor that turns on when any station reports a fault.
Fault details (station, timestamp, no_flow) are available as attributes.
Also refactors binary sensor setup to use a device_types field on each
description, replacing the hardcoded DEVICE_FLOOD filter.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Include device name in binary sensor entity names
Sets _attr_name to "{device_name} {description_name}" so entity IDs
include the device identity (e.g. binary_sensor.garden_sprinkler_fault)
instead of generic names like binary_sensor.fault.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Use has_entity_name for entity naming across all platforms
Adopts _attr_has_entity_name so Home Assistant automatically prefixes
entity names with the device name, removing manual prefixing from
sensors, switches, and binary sensors. Updates tests accordingly.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Remove unused variable
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments