Reestructuración Shelly 4

This commit is contained in:
dfcarvajal
2019-06-22 16:18:09 +00:00
parent 70075e635e
commit 099256a748
8 changed files with 45 additions and 52 deletions

View File

@@ -1,15 +1,3 @@
switch:
- platform: rest
name: "Coche Eléctrico"
scan_interval: 30
resource: http://10.10.1.153/relay/3
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 Coche Eléctrico"
@@ -21,4 +9,3 @@ sensor:
state_topic: "shellies/shelly4pro-061E6E/relay/3/energy"
unit_of_measurement: "KWh"
value_template: "{{ value | multiply(0.01) | float | round(2)}}"

View File

@@ -1,15 +1,3 @@
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"
@@ -21,4 +9,3 @@ sensor:
state_topic: "shellies/shelly4pro-061E6E/relay/2/energy"
unit_of_measurement: "KWh"
value_template: "{{ value | multiply(0.01) | float | round(2)}}"

View File

@@ -1,15 +1,3 @@
switch:
- platform: rest
name: "General Luces"
scan_interval: 30
resource: http://10.10.1.153/relay/0
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 Luces"
@@ -21,4 +9,3 @@ sensor:
state_topic: "shellies/shelly4pro-061E6E/relay/0/energy"
unit_of_measurement: "KWh"
value_template: "{{ value | multiply(0.01) | float | round(2)}}"

View File

@@ -1,15 +1,3 @@
switch:
- platform: rest
name: "General Persianas"
scan_interval: 30
resource: http://10.10.1.153/relay/1
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 Persianas"
@@ -21,4 +9,3 @@ sensor:
state_topic: "shellies/shelly4pro-061E6E/relay/1/energy"
unit_of_measurement: "KWh"
value_template: "{{ value | multiply(0.01) | float | round(2)}}"

View File

@@ -0,0 +1,11 @@
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

View File

@@ -0,0 +1,11 @@
switch:
- platform: rest
name: "Coche Eléctrico"
scan_interval: 30
resource: http://10.10.1.153/relay/3
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

View File

@@ -0,0 +1,12 @@
switch:
- platform: rest
name: "General Luces"
scan_interval: 30
resource: http://10.10.1.153/relay/0
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

View File

@@ -0,0 +1,11 @@
switch:
- platform: rest
name: "General Persianas"
scan_interval: 30
resource: http://10.10.1.153/relay/1
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