Files
homeassistant/packages/general_caldera.yaml
2019-04-17 19:21:19 +00:00

25 lines
683 B
YAML

switch:
- platform: rest
name: "General Caldera"
scan_interval: 30
resource: http://10.10.1.153/relay/2
body_on: 'turn=on'
body_off: 'turn=off'
timeout : 60
is_on_template: '{{ value_json.ison == true}}'
headers:
content-type: application/x-www-form-urlencoded
sensor:
- platform: mqtt
name: "Consumo General Calefacción"
state_topic: "shellies/shelly4pro-061E6E/relay/2/power"
unit_of_measurement: "W"
- platform: mqtt
name: "Energia General Calefacción"
state_topic: "shellies/shelly4pro-061E6E/relay/2/energy"
unit_of_measurement: "KWh"
value_template: "{{ value | multiply(0.01) | float | round(2)}}"