Files
home-assistant-futurehome/futurehome/config.yaml
Claude 81f8163e1c 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
2026-07-01 19:08:24 +00:00

41 lines
846 B
YAML

# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: Futurehome
version: '1.6.3'
slug: futurehome
description: Local Futurehome Smarthub integration
url: 'https://github.com/adrianjagielak/home-assistant-futurehome'
arch:
- armhf
- armv7
- aarch64
- amd64
- i386
init: false
services:
- 'mqtt:need'
options:
hub_ip: ''
fh_username: ''
fh_password: ''
tp_username: ''
tp_password: ''
tp_allow_empty: false
ignore_availability_reports: false
demo_mode: false
show_debug_log: false
schema:
hub_ip: 'str?'
fh_username: 'str?'
fh_password: 'password?'
tp_username: 'str?'
tp_password: 'password?'
tp_allow_empty: 'bool?'
ignore_availability_reports: 'bool?'
demo_mode: 'bool?'
show_debug_log: 'bool?'
image: 'ghcr.io/adrianjagielak/{arch}-home-assistant-futurehome'