grover / homebridge-automation-switches

A flexible automation switch for Homebridge: https://github.com/nfarina/homebridge
MIT License
112 stars 12 forks source link

Alarm clock setting time troubles #34

Open jerzytraczynski opened 3 years ago

jerzytraczynski commented 3 years ago

Hi, I have trouble setting time of the alarm clock. When I set it up from the scene programmed earlier in Eve app, the time sent and logged in Homebridge usually doesn't change. Here are some logs:

[12/11/2020, 08:14:53] [AutomationSwitches] Change target hour of Pobudka to 7 [12/11/2020, 08:14:53] [AutomationSwitches] Change target minute of Pobudka to 15 [12/11/2020, 08:14:53] [AutomationSwitches] Change enabled state of Pobudka to true [12/11/2020, 08:14:53] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00 [12/11/2020, 08:14:55] [Broadlink RM] Projektor getSwitchState: false [12/11/2020, 08:15:00] [Broadlink RM] Projektor getSwitchState: false [12/11/2020, 08:15:04] [AutomationSwitches] Change enabled state of Pobudka to true [12/11/2020, 08:15:04] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00 [12/11/2020, 08:15:04] [AutomationSwitches] Change target hour of Pobudka to 7 [12/11/2020, 08:15:04] [AutomationSwitches] Change target minute of Pobudka to 0 [12/11/2020, 08:15:04] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00 [12/11/2020, 08:15:04] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00 [12/11/2020, 08:15:04] [AutomationSwitches] Change enabled state of Pobudka to true [12/11/2020, 08:15:04] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00 [12/11/2020, 08:15:05] [Broadlink RM] Projektor getSwitchState: false [12/11/2020, 08:15:07] [AutomationSwitches] Change enabled state of Pobudka to false [12/11/2020, 08:15:07] [AutomationSwitches] Change target hour of Pobudka to 7 [12/11/2020, 08:15:07] [AutomationSwitches] Change target minute of Pobudka to 15 [12/11/2020, 08:15:07] [AutomationSwitches] Change enabled state of Pobudka to true [12/11/2020, 08:15:07] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00 [12/11/2020, 08:15:10] [Broadlink RM] Projektor getSwitchState: false [12/11/2020, 08:15:15] [Broadlink RM] Projektor getSwitchState: false [12/11/2020, 08:15:19] [AutomationSwitches] Change target hour of Pobudka to 7 [12/11/2020, 08:15:19] [AutomationSwitches] Change target minute of Pobudka to 45 [12/11/2020, 08:15:19] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:45:00 [12/11/2020, 08:15:19] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00 [12/11/2020, 08:15:20] [Broadlink RM] Projektor getSwitchState: false [12/11/2020, 08:15:25] [Broadlink RM] Projektor getSwitchState: false [12/11/2020, 08:15:26] [AutomationSwitches] Change enabled state of Pobudka to false [12/11/2020, 08:15:30] [Broadlink RM] Projektor getSwitchState: false [12/11/2020, 08:15:34] [AutomationSwitches] Change enabled state of Pobudka to true [12/11/2020, 08:15:34] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00 [12/11/2020, 08:15:35] [Broadlink RM] Projektor getSwitchState: false [12/11/2020, 08:15:40] [Broadlink RM] Projektor getSwitchState: false [12/11/2020, 08:15:45] [Broadlink RM] Projektor getSwitchState: false

I'm changing the time of turned off alarm, then I turn it on and it says "raising next alarm at" while the time is different from what I set. Can anyone help?

mrei-kiel commented 2 years ago

Having the same issue, there seems to be a race condition when the changes are send over in short succession as it is the case when set in the same scene. I found a workaround by having multiple scenes triggered with a delay between them, separating the setting of state, hour and minute.