Closes #318 - Added in FOSCAM motion sensors.
This commit is contained in:
parent
83a830e229
commit
06bab7092b
|
@ -1 +1 @@
|
||||||
0.66.0
|
0.66.1
|
|
@ -4,3 +4,6 @@ motion:
|
||||||
- binary_sensor.office_motion
|
- binary_sensor.office_motion
|
||||||
- binary_sensor.entry_alarm_panel
|
- binary_sensor.entry_alarm_panel
|
||||||
- binary_sensor.bedroom_alarm_panel
|
- binary_sensor.bedroom_alarm_panel
|
||||||
|
- binary_sensor.camera1_motion_sensor
|
||||||
|
- binary_sensor.camera2_motion_sensor
|
||||||
|
- binary_sensor.camera3_motion_sensor
|
||||||
|
|
|
@ -0,0 +1,88 @@
|
||||||
|
#-------------------------------------------
|
||||||
|
# @CCOSTAN
|
||||||
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
|
#-------------------------------------------
|
||||||
|
# homeassistant:
|
||||||
|
# customize_glob:
|
||||||
|
# "*.*_sleep_hours":
|
||||||
|
# unit_of_measurement: hours
|
||||||
|
# icon: mdi:sleep
|
||||||
|
#
|
||||||
|
# hidden: False
|
||||||
|
#-------------------------------------------
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rest
|
||||||
|
name: "CAMERA1 Motion Sensor"
|
||||||
|
resource: !secret camera1_url
|
||||||
|
device_class: motion
|
||||||
|
scan_interval: 5
|
||||||
|
value_template: >-
|
||||||
|
{%- if "<motionDetectAlarm>2</motionDetectAlarm>" in value -%}
|
||||||
|
{{ true }}
|
||||||
|
{%- else -%}
|
||||||
|
{{ false }}
|
||||||
|
{%- endif -%}
|
||||||
|
- platform: rest
|
||||||
|
name: "CAMERA2 Motion Sensor"
|
||||||
|
resource: !secret camera2_url
|
||||||
|
device_class: motion
|
||||||
|
scan_interval: 5
|
||||||
|
value_template: >-
|
||||||
|
{%- if "<motionDetectAlarm>2</motionDetectAlarm>" in value -%}
|
||||||
|
{{ true }}
|
||||||
|
{%- else -%}
|
||||||
|
{{ false }}
|
||||||
|
{%- endif -%}
|
||||||
|
- platform: rest
|
||||||
|
name: "CAMERA3 Motion Sensor"
|
||||||
|
resource: !secret camera3_url
|
||||||
|
device_class: motion
|
||||||
|
scan_interval: 5
|
||||||
|
value_template: >-
|
||||||
|
{%- if "<motionDetectAlarm>2</motionDetectAlarm>" in value -%}
|
||||||
|
{{ true }}
|
||||||
|
{%- else -%}
|
||||||
|
{{ false }}
|
||||||
|
{%- endif -%}
|
||||||
|
#-------------------------------------------
|
||||||
|
# Motion Sensors added to other motion sensors in group yaml
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
### Automations - Detect when things are not right. Like any Good Watchdog.
|
||||||
|
##############################################################################
|
||||||
|
#automation:
|
||||||
|
#Tweets pushed out to twitter.
|
||||||
|
# automation:
|
||||||
|
# - alias: Someone on the MC server!
|
||||||
|
# trigger:
|
||||||
|
# - platform: state
|
||||||
|
# entity_id: sensor.bear_stone
|
||||||
|
#
|
||||||
|
# action:
|
||||||
|
# - service: light.turn_on
|
||||||
|
# entity_id: light.justin_go
|
||||||
|
# data_template:
|
||||||
|
# color_name: >
|
||||||
|
# {% if states.sensor.bear_stone.state|int == 1 %}
|
||||||
|
# gold
|
||||||
|
# {% elif states.sensor.bear_stone.state|int == 2 %}
|
||||||
|
# green
|
||||||
|
# {% elif states.sensor.bear_stone.state|int == 3 %}
|
||||||
|
# blue
|
||||||
|
# {% else %}
|
||||||
|
# red
|
||||||
|
# {% endif %}
|
||||||
|
#
|
||||||
|
# - service_template: >
|
||||||
|
# {% if states.sensor.bear_stone.state|int > 0 %}
|
||||||
|
# light.turn_on
|
||||||
|
# {% else %}
|
||||||
|
# light.turn_off
|
||||||
|
# {% endif %}
|
||||||
|
# entity_id: light.justin_go
|
||||||
|
#
|
||||||
|
# - service: light.turn_on
|
||||||
|
# entity_id:
|
||||||
|
# - light.justin_go
|
||||||
|
# data:
|
||||||
|
# flash: short
|
|
@ -10,6 +10,9 @@ ssl_certificate: 'www_traviswebsite_dot_com.fake_crt'
|
||||||
ssl_key: 'www_traviswebsite.fake_key'
|
ssl_key: 'www_traviswebsite.fake_key'
|
||||||
http_base_url: your.website.com
|
http_base_url: your.website.com
|
||||||
ifttt_key: iftttKEYPassphrase
|
ifttt_key: iftttKEYPassphrase
|
||||||
|
camera1_url: http://192.168.10.21:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=password
|
||||||
|
camera2_url: http://192.168.10.22:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=password
|
||||||
|
camera3_url: http://192.168.10.23:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=password
|
||||||
forecast_key: ForcastKeyphrase
|
forecast_key: ForcastKeyphrase
|
||||||
fitbit_user: User@email.com
|
fitbit_user: User@email.com
|
||||||
fitbit_password: abcdefghijklmnopqrstuvwxyz0123456789
|
fitbit_password: abcdefghijklmnopqrstuvwxyz0123456789
|
||||||
|
|
Loading…
Reference in New Issue