8 lignes
330 B
YAML
8 lignes
330 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) }}'
|