Home Assistant Git Exporter
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
- platform: rest
|
||||
name: u20_V0_power
|
||||
resource: "http://10.0.0.194:7125/machine/device_power/device?device=Printer"
|
||||
body_on: '{"action": "on"}'
|
||||
body_off: '{"action": "off"}'
|
||||
headers:
|
||||
Content-Type: 'application/json'
|
||||
is_on_template: >-
|
||||
{{ 'result' in value_json and (value_json.result.values() | list | first == "on") }}
|
||||
Reference in New Issue
Block a user