Separación Configuración

This commit is contained in:
dfcarvajal
2019-04-17 15:01:18 +00:00
parent 2d46ec2369
commit 4d21cb7c10
38 changed files with 276 additions and 360 deletions

View File

@@ -0,0 +1,25 @@
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"
state_topic: "shellies/shelly4pro-061E6E/relay/3/power"
unit_of_measurement: "W"
sensor:
- platform: mqtt
name: "Energia General Coche Eléctrico"
state_topic: "shellies/shelly4pro-061E6E/relay/3/energy"
unit_of_measurement: "KWh"
value_template: "{{ value | multiply(0.01) | float | round(2)}}"