home-automation-home-assistant/sensors/cctv.yaml

10 rader
316 B
YAML
Normal vy Historik

2019-10-13 16:07:18 +00:00
- platform: rest
resource: !secret office_details_url
name: Camera Mode Office
value_template: '{{ value_json.mode }}'
- platform: rest
resource: !secret office_details_url
name: Camera Motion Office
value_template: '{{ value_json.details|string|regex_search("\"detector\":\"1\"", ignorecase=FALSE) }}'