1
1
home-automation-home-assistant/sensors/cctv.yaml
2019-10-13 18:07:18 +02:00

10 linhas
316 B
YAML

- 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) }}'