Separación Configuración
This commit is contained in:
25
packages/general_caldera.yaml
Normal file
25
packages/general_caldera.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
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"
|
||||
|
||||
sensor:
|
||||
- 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)}}"
|
||||
|
||||
Reference in New Issue
Block a user