We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06d16ce commit e19fed8Copy full SHA for e19fed8
source/_cookbook/foscam_away_mode_PTZ.markdown
@@ -57,4 +57,21 @@ script:
57
entity_id: switch.foscam_motion
58
```
59
60
-I'm working on the `automation` component to be used to set when `home` and `not_home`
+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
73
74
75
+ to: 'home'
76
77
+ service: script.foscam_off
0 commit comments