I reused the same script, but changed the output device to an ikea switch. In this case everything seems to work fine. So the problem seems to be with the action device. However, the action device is working fine if I use the lovelace inteface.
Extremely strange. I bought a second sonoff switch, identical to the first one. If I use this switch in the automation, I have no problem at all. I removed the first switch, repaired it and gave it another name. Still same issue …
Were you ever able to resolve this. I am relatively new to HA and created some simple (as I thought) automations. Unfortunately one of them gets stuck in the still running state and it does not work any more till I restart HA.
I’m also having problems with automation freezing in ‘‘still running mode’’ indefinitely.
Disabling the automation to reset it won’t work and stay active, the only way I found around this is to restart zwavejs ui at which point the automation will finally log an error and stop.
Are your automations causing problems also using z-wave devices? Are you also using z-wave js ui? The only automations that will do that on my side are the ones using z-wave devices on zwave js ui…
Simple automation that turns off a light (it’s actually a light helper group consisting of two zwave light switches) if no motion is detected by a sensor for 15 minutes. The sensor is a helper group consisting of a zwave motion sensor and a zigbee motion sensor. Sometimes it works fine, sometimes it gets hung so later ones won’t run completely due to: Stopped because only a single execution is allowed at …
alias: No Motion - Turn off shop lights
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.shop_motion
to: 'off'
for:
hours: 0
minutes: 15
seconds: 0
condition: []
action:
- service: light.turn_off
data: {}
target:
entity_id: light.shop_lights
mode: single
Same here, this issue started within the last month, and is only occurring on automations that include a zwave wall outlet. The example below you can see it hung for 310secs before I realized half the lights were still on and retriggered it manually.
I can confirm that I’ve also been seeing this happen recently - automations that keep running indefinitely.
Most often if happens when I’m running automations that turn off lights for a specific floor of my house. There are a bunch of zooz zwave light switches on each floor that I’m trying to turn off. Sometimes these go unavailable (thanks 700 series stick), and I’m not sure if that’s what’s causing the automation to freeze or what. I’d rather the automation skip over the dead devices and keep going, but devices that aren’t dead won’t get turned off once the automation freezes.
This is a new behavior in the last month, and I haven’t changed these automations in a while…
One additional comment to add… I thought maybe this had something to do with my HUSZBZ-1 zwave config and went ahead and bought a Zooz 800, but the issue still persists. Now I’m thinking it’s zwave device specific or the integration itself since it randomly started happening within the last few months.
It was occurring on ZWave JS with my old config and is still occurring now on ZWave JS UI.
I actually have this issue with my automations that are based on HUE motion sensor to turn on/off a light. Some of them get stuck after some time in the conditon section of the automation while others using the same trigger still work in parallel. Restarting HA solves the issue for some days and then I need to restart again. I have the strange feeling this is due to the fact that I check the light level in the condition section based on the light level attribute and not the state of the illuminancd device itself, but I have not yet had the time to look at it in more depth.