ekutner / home-connect-hass

Alternative (and improved) Home Connect integration for Home Assistant
MIT License
511 stars 53 forks source link

BSH.Common.EnumType.OperationState stays inactive when an alarm is ringing #258

Closed liouma closed 10 months ago

liouma commented 10 months ago

ekutner said that "If I want to react to a program end event I should listen to events like BSH.Common.Status.OperationState"

Problem: sensor.siemens_xxxxx001_bsh_common_status_operationstate state is : BSH.Common.EnumType.OperationState.Inactive

And there is no change on this value when the alarm is triggerred.

Definition of "alarm" : On a Siemens oven, a timer is usualy used with a program. (example: I cood a cake at 180° for 30 mins. The timer is set to 30 mins)

The entity "alarmclock" is a live count down fo this timer. This seems to be the only value modified when the alarm is ringing but it is not precise. I would love to do as ekutner says but there is no other value modified when the alarm is ringing.

Problem with this entity: this timer state refreshing frequency is too low, so it is not a reliable way to catch the alarm signal at the end of the countdown.

Describe the solution you'd like "Jeedom" is a home automation system similar to HA with an integration similar to this one (home connect plugin). It integrates a binary field 'alarm' that is very reliable, that's why I'm not worried about the capabilities of the api to transmit the required info. A solution would be to create a binary "alarm ringing" like in this repo: https://github.com/jmvedrine/homeconnect