Next edit
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
- platform: rest
|
||||
name: "Stue Motion Sensor"
|
||||
resource: !secret stue_url
|
||||
device_class: motion
|
||||
scan_interval: 10
|
||||
value_template: >-
|
||||
{%- if "<motionDetectAlarm>2</motionDetectAlarm>" in value -%}
|
||||
{{ true }}
|
||||
{%- else -%}
|
||||
{{ false }}
|
||||
{%- endif -%}
|
||||
# - platform: rest
|
||||
# name: "Stue Motion Sensor"
|
||||
# resource: !secret stue_url
|
||||
# device_class: motion
|
||||
# scan_interval: 10
|
||||
# value_template: >-
|
||||
# {%- if "<motionDetectAlarm>2</motionDetectAlarm>" in value -%}
|
||||
# {{ true }}
|
||||
# {%- else -%}
|
||||
# {{ false }}
|
||||
# {%- endif -%}
|
||||
|
||||
Reference in New Issue
Block a user