FIX loging binary_sensor
This commit is contained in:
14
packages/binary_sensor/movimiento_cocina.yaml
Normal file
14
packages/binary_sensor/movimiento_cocina.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Cocina"
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == '8B6E9C' %}
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == '8B6E90' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_cocina') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
@@ -6,6 +6,8 @@ binary_sensor:
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == 'CBD190' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_habitacion_mia') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
@@ -6,6 +6,8 @@ binary_sensor:
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == 'DFEF90' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_habitacion_noha') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
@@ -6,6 +6,8 @@ binary_sensor:
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == 'FDE2B0' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_habitacion_principal') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
@@ -6,6 +6,8 @@ binary_sensor:
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == '4A3E90' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_pasillo_entrada') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
@@ -6,6 +6,8 @@ binary_sensor:
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == '5D5590' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_pasillo_habitaciones') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
@@ -6,6 +6,8 @@ binary_sensor:
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == 'A2670E' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.puerta_entrada') | upper}}
|
||||
{% endif %}
|
||||
device_class: opening
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
|
||||
@@ -6,6 +6,8 @@ binary_sensor:
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == '0D7F0E' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.puerta_tendedero') | upper}}
|
||||
{% endif %}
|
||||
device_class: opening
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
|
||||
1
packages/core/ssdp.yaml
Normal file
1
packages/core/ssdp.yaml
Normal file
@@ -0,0 +1 @@
|
||||
ssdp:
|
||||
1
packages/core/zeroconf.yaml
Normal file
1
packages/core/zeroconf.yaml
Normal file
@@ -0,0 +1 @@
|
||||
zeroconf:
|
||||
4
packages/light/cocina.yaml
Normal file
4
packages/light/cocina.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
yeelight:
|
||||
devices:
|
||||
10.10.1.167:
|
||||
name: Luz Cocina
|
||||
5
packages/light/led_cocina.yaml
Normal file
5
packages/light/led_cocina.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
light:
|
||||
- platform: flux_led
|
||||
devices:
|
||||
10.10.1.205:
|
||||
name: Led Cocina
|
||||
4
packages/light/salon_entrada.yaml
Normal file
4
packages/light/salon_entrada.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
yeelight:
|
||||
devices:
|
||||
10.10.1.166:
|
||||
name: Luz Salon Entrada
|
||||
4
packages/light/salon_television.yaml
Normal file
4
packages/light/salon_television.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
yeelight:
|
||||
devices:
|
||||
10.10.1.165:
|
||||
name: Luz Salon Television
|
||||
@@ -2,5 +2,6 @@ sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
temperatura_salon:
|
||||
friendly_name: 'Temperatura Salón'
|
||||
value_template: "{{state_attr('fan.xiaomi_miio_device_2', 'temperature')}}"
|
||||
unit_of_measurement: ºC
|
||||
|
||||
3
packages/timer/luzcocina.yaml
Normal file
3
packages/timer/luzcocina.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
timer:
|
||||
luzcocina:
|
||||
duration: '00:05:00'
|
||||
3
packages/timer/luzledcocina.yaml
Normal file
3
packages/timer/luzledcocina.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
timer:
|
||||
luzledcocina:
|
||||
duration: '00:03:00'
|
||||
4
packages/vacuum/aspiradora.yaml
Normal file
4
packages/vacuum/aspiradora.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
vacuum:
|
||||
- platform: xiaomi_miio
|
||||
host: 10.10.1.171
|
||||
token: 75574576344879356c384c3064765152
|
||||
Reference in New Issue
Block a user