Skip to content

Commit e19fed8

Browse files
committed
Update foscam_away_mode_PTZ.markdown
1 parent 06d16ce commit e19fed8

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

source/_cookbook/foscam_away_mode_PTZ.markdown

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,21 @@ script:
5757
entity_id: switch.foscam_motion
5858
```
5959

60-
I'm working on the `automation` component to be used to set when `home` and `not_home`
60+
To automate Foscam being set to "on" (facing the correct way with motion sensor on), I used the following simple automation:
61+
62+
```yaml
63+
automation:
64+
- alias: Set Foscam to Away Mode when I leave home
65+
trigger:
66+
platform: state
67+
entity_id: group.family
68+
from: 'home'
69+
action:
70+
service: script.foscam_on
71+
- alias: Set Foscam to Home Mode when I arrive Home
72+
trigger:
73+
platform: state
74+
entity_id: group.family
75+
to: 'home'
76+
action:
77+
service: script.foscam_off

0 commit comments

Comments
 (0)