mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2026-07-07 13:23:03 +00:00
Fix Modeswitch scene sensor stuck at 'unknown'
Scene controllers such as the Futurehome Modeswitch/Modusbryter (a Z-Wave device) only ever emit `evt.scene.report` on a button press and never appear in the periodic Vinculum state poll. Their address therefore never got an entry in the HA state cache, so live scene events were dropped by the `if (!payload[addr]) continue` guard in haUpdateStateValueReport, leaving the "Scene" entity permanently 'unknown'. - Register an address -> state-topic mapping from the device config so live events can be routed even when the service is absent from the state poll. - Seed the cache entry from that mapping when a report arrives for an otherwise-unknown address. - Preserve previously known values across state polls so a scene value set by a live event is not wiped by a later poll that omits the service. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BRMavpbsGAcY2ctkKvcoNR
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
|
||||
name: Futurehome
|
||||
version: '1.6.2'
|
||||
version: '1.6.3'
|
||||
slug: futurehome
|
||||
description: Local Futurehome Smarthub integration
|
||||
url: 'https://github.com/adrianjagielak/home-assistant-futurehome'
|
||||
|
||||
Reference in New Issue
Block a user