Añadir luz de los baños a través de los switch nuevos

This commit is contained in:
dfcarvajal
2019-07-21 22:04:22 +00:00
parent 0a1fbcf2e6
commit a837c1dc42
6 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
binary_sensor:
- platform: mqtt
name: "Movimiento Baño General"
value_template: >-
{% if value_json.RfReceived.Data == 'FAD6AC' %}
{{'ON'}}
{% elif value_json.RfReceived.Data == 'FAD6A0' %}
{{'OFF'}}
{% else %}
{{states('binary_sensor.movimiento_bano_general') | upper}}
{% endif %}
device_class: motion
state_topic: "sonoffbridge/tele/RESULT"
off_delay: 10

View File

@@ -0,0 +1,4 @@
light:
- platform: switch
name: Luz Baño General Principal
entity_id: switch.sonoffbanogeneral

View File

@@ -0,0 +1,4 @@
light:
- platform: switch
name: Luz Baño General Secundaria
entity_id: switch.sonoffbanogeneral2

View File

@@ -0,0 +1,4 @@
light:
- platform: switch
name: Luz Baño Principal Principal
entity_id: switch.sonoffbanoprincipal

View File

@@ -0,0 +1,4 @@
light:
- platform: switch
name: Luz Baño Principal Secundaria
entity_id: switch.sonoffbanoprincipal2

View File

@@ -0,0 +1,3 @@
timer:
luzbanogeneral:
duration: '00:02:00'