Skip to content

Error with 'alarm_wake_up_check' event option #86

@miloumeeloo

Description

@miloumeeloo

General information

Home Assistant

Version:
2025.5.1
Installation method (according to instructions):
HAOS on Proxmox VM

Integration

Installation method:
[X] HACS
Integration version:
v2.3.2
Root topic:
SleepASAndroid/%%%device%%%

Application settings

topic:
[X] I can see MQTT messages from application at MQTT-server

How it works now?

There is a new event option 'alarm_wake_up_check' in the app that generates an error for one of my devices (smartclock) making the entity unavailable in HA. The error persists even if I deactivate this event.

Debug log

Exception in message_received when handling msg on 'SleepAsAndroid/Chambre': '{"event":"sleep_tracking_stopped"}' Traceback (most recent call last): File "/config/custom_components/sleep_as_android/__init__.py", line 253, in message_received target_sensor.process_message(msg) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ File "/config/custom_components/sleep_as_android/sensor.py", line 156, in process_message if self.state != new_state: ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 615, in state raise ValueError( ...<2 lines>... ) ValueError: Sensor sensor.sleepasandroid_chambre provides state value 'alarm_wake_up_check', which is not in the list of options provided 

Additional information

Bizarrely, the error does not occur with my other devices (phones) where the event has remained activated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions