This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Flow is triggered on reboot
Christian77
Member
Hi, have a Fibaro FGSD-002 Smoke Detector which i have installed using Fibaro app, and the device works fine. I created some flows that are triggered if smoke alarm is turned on, and when the smoke alarm is turned off. The flows that are triggered when the smoke alarm is turned off are triggered every time homey reboots. The smoke alarm was not turned on, since it was off before the reboot.. Any one else having issues with flows being started at reboot?
Comments
https://github.com/athombv/homey/issues/1051
Or something similar maybe.
Seems like the problem is gone after upgrade to1.5.0 stable.
scared the hell out of my wife, when homey restarted in the middle of the night last night when homey updated to 1.5. It suddenly turned on the TV and media player. I have a flow that should be triggered when i turn on a wireless socket (433 mhz thing) and that one now triggers every time homey reboots.
looks like it doesn't always happen..... Not every restart and/or not every device.
https://github.com/athombv/homey/issues/1051#issuecomment-327283542
Made a Boolean with the better logic app.
After that I made a device with better logic.
Then I made a flow with IF Boolean is true THEN give me the max temp and the time it was max. This data is from Homewizard which I store in a variable. On every reboot of Homey the flow is running and always telling me: The maximum temperature was 0 degrees at 0 hours. If I shut the flow down and reboot Homey the flow is not running after reboot. Then , after enabling the flow again, the flow is running after reboot.
And one of the Fibaro Door sensors which turns on the garage light. So the garage light was on this morning.
I had then Homey rebooted several times and only once the flows (same two flows as above) were triggered.
Interesting that I have few more of this Aeotec switches on various appliances and using identical flows for each of them and those do not trigger after a reboot.
I guess I understand why the Smoke alarm is off flow get's triggered after an update or reboot.
After an update of reboot, the state of the flow sensor (and many other devices) gets reset to "null" (empty), if the sensor is providing it's state to Homey, Homey will update the sensor state to Off, which will trigger your flow...
You could prevent this by e.g. disabling the OFF flow, enabling from within the ON and disabling itself if triggered...
Hi,
Attached is the screenshot of the flow that is being triggered on every reboot. An explanation for the flow being triggered can be as TedTolboom suggested be that the flow sensor (and many other devices) gets reset to "null" (empty) on reboot and that Homey will update the sensor state to Off when restarted. It would probably be a good idea for Homey to store the state , so that there is no change just because the device is rebooted....