Añadir luz de los baños a través de los switch nuevos
This commit is contained in:
14
packages/binary_sensor/movimiento_bano_general.yaml
Normal file
14
packages/binary_sensor/movimiento_bano_general.yaml
Normal 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
|
||||||
4
packages/light/bano_general_principal.yaml
Normal file
4
packages/light/bano_general_principal.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
light:
|
||||||
|
- platform: switch
|
||||||
|
name: Luz Baño General Principal
|
||||||
|
entity_id: switch.sonoffbanogeneral
|
||||||
4
packages/light/bano_general_secundaria.yaml
Normal file
4
packages/light/bano_general_secundaria.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
light:
|
||||||
|
- platform: switch
|
||||||
|
name: Luz Baño General Secundaria
|
||||||
|
entity_id: switch.sonoffbanogeneral2
|
||||||
4
packages/light/bano_principal_principal.yaml
Normal file
4
packages/light/bano_principal_principal.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
light:
|
||||||
|
- platform: switch
|
||||||
|
name: Luz Baño Principal Principal
|
||||||
|
entity_id: switch.sonoffbanoprincipal
|
||||||
4
packages/light/bano_principal_secundaria.yaml
Normal file
4
packages/light/bano_principal_secundaria.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
light:
|
||||||
|
- platform: switch
|
||||||
|
name: Luz Baño Principal Secundaria
|
||||||
|
entity_id: switch.sonoffbanoprincipal2
|
||||||
3
packages/timer/luzbanogeneral.yaml
Normal file
3
packages/timer/luzbanogeneral.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
timer:
|
||||||
|
luzbanogeneral:
|
||||||
|
duration: '00:02:00'
|
||||||
Reference in New Issue
Block a user