4 Commits

Author SHA1 Message Date
alexei.dolgolyov ca5b0a8014 feat(light): periodic color keep-alive for api_input lights
Background task re-pushes the current color at ~timeout/2 (clamped
0.5-30s) while the light is on, so the server's idle timer never
expires and the strip stays at the picked color instead of reverting
to fallback_color.

Drops the length: 9999 magic value from segment payloads now that the
server defaults length to the remainder of the strip — requires the
matching server change in led-grab.
2026-04-26 23:34:06 +03:00
alexei.dolgolyov 30085c00b9 fix(light): drop redundant name override on api_input light
The name property returned the source name, which is also the device
name — combined with _attr_has_entity_name=True this produced
entity ids like light.api_input_api_input. Removing it lets the
translation key drive the entity name (Light / Подсветка), yielding
light.<source>_light.
2026-04-26 02:32:30 +03:00
alexei.dolgolyov 0a16dc9058 feat(api-input): expose timeout/interpolation, fix 422 on light turn-on
- coordinator.update_source now auto-injects source_type from cached data so
  the server's discriminated-union body validates (was rejecting
  fallback_color updates with 422).
- Add Fallback Timeout (number) and Interpolation (select) entities per
  api_input CSS source.
- Light no longer zeros fallback_color on turn_off; state restored across
  HA restarts via RestoreEntity so the chosen default color persists.
- Bump manifest to 0.2.2 and update en/ru translations.
2026-04-26 02:26:06 +03:00
alexei.dolgolyov 579553a850 feat: initial release — LedGrab Home Assistant integration
HACS-compatible custom component split out from the main LedGrab repo.
Creates light, switch, sensor, number, and select entities for each
configured LedGrab device.
2026-04-12 22:32:46 +03:00