cancel
Showing results for 
Search instead for 
Did you mean: 

camera automations not working

kammiz
Community Member

Hi everyone, i have been using this routine for at least a year and after i HAD to change the wifi, the routine is not working anymore. The app works, the built in presence automation works, but if i script my own routine, the same as i have been using for a long while, it does not work.  it seems it cannot find the device. Even though i specifically select it with the drop down when creating the routine. Is it a caching issue maybe? the device names are the same as before with the old wifi. 

 

this is the routine:

 

metadata:
name: Camera automation
description: Turn on cameras when nobody is home and off when someone is home, plus on at night
automations:
- starters:
- type: home.state.HomePresence
state: homePresenceMode
is: AWAY
actions:
- type: device.command.OnOff
devices:
- Bakhage - Bakhage
- Gårdsplass 1 - Gårdsplass
- Gårdsplass 2 - Gårdsplass
- Hage - Hage
on: true
- starters:
- type: home.state.HomePresence
state: homePresenceMode
is: HOME
actions:
- type: device.command.OnOff
devices:
- Bakhage - Bakhage
- Gårdsplass 1 - Gårdsplass
- Gårdsplass 2 - Gårdsplass
- Hage - Hage
on: false
- starters:
- type: time.schedule
at: 22:00
condition:
type: home.state.HomePresence
state: homePresenceMode
is: HOME
actions:
- type: device.command.OnOff
devices:
- Bakhage - Bakhage
- Gårdsplass 1 - Gårdsplass
- Gårdsplass 2 - Gårdsplass
- Hage - Hage
on: true
- starters:
- type: time.schedule
at: 06:30
condition:
type: home.state.HomePresence
state: homePresenceMode
is: HOME
actions:
- type: device.command.OnOff
devices:
- Bakhage - Bakhage
- Gårdsplass 1 - Gårdsplass
- Gårdsplass 2 - Gårdsplass
- Hage - Hage
on: false

 

and this is the error in the log when i try to run it, seems like it cannot find the device:


Handlingen lyktes for [fant ikke enheten].


here is a google translation of the  error in the log:


 The action succeeded for [device not found].

1 REPLY 1

kammiz
Community Member

so it seems its working despite of the error i get regarding the automation every time it runs..