FIX loging binary_sensor
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
},
|
||||
"entities": [
|
||||
"device_tracker.diego_android",
|
||||
"device_tracker.diego_android_2",
|
||||
"device_tracker.silvia_android",
|
||||
"device_tracker.silvia_mi5",
|
||||
"device_tracker.joaquin",
|
||||
@@ -91,10 +92,14 @@
|
||||
{
|
||||
"entities": [
|
||||
"light.luz_tendedero",
|
||||
"light.luz_entrada_dormitorio",
|
||||
"light.luz_entrada_pasillo",
|
||||
"light.luz_estudio_pasillo",
|
||||
"light.luz_habitaciones_pasillo",
|
||||
"light.luz_cocina",
|
||||
"light.luz_salon_entrada",
|
||||
"light.luz_salon_entrada_ambilight",
|
||||
"light.luz_salon_television",
|
||||
"light.luz_salon_television_ambilight",
|
||||
"light.luz_pasillo_bano",
|
||||
"light.luz_pasillo_estudio",
|
||||
"light.luz_pasillo_salon",
|
||||
"light.luz_habitacion_estudio",
|
||||
"light.luz_habitacion_principal",
|
||||
"light.luz_habitacion_mia",
|
||||
@@ -124,6 +129,7 @@
|
||||
{
|
||||
"entities": [
|
||||
"binary_sensor.movimiento_pasillo_entrada",
|
||||
"binary_sensor.movimiento_cocina",
|
||||
"binary_sensor.movimiento_salon_entrada",
|
||||
"binary_sensor.movimiento_habitacion_principal",
|
||||
"binary_sensor.movimiento_habitacion_noha",
|
||||
@@ -238,23 +244,13 @@
|
||||
"type": "entities"
|
||||
},
|
||||
{
|
||||
"cards": [
|
||||
"entities": [
|
||||
{
|
||||
"entities": [
|
||||
{
|
||||
"entity": "vacuum.rockrobo"
|
||||
}
|
||||
],
|
||||
"show_header_toggle": false,
|
||||
"title": "Aspiradora",
|
||||
"type": "entities"
|
||||
},
|
||||
{
|
||||
"entity": "camera.rockrobo_map",
|
||||
"type": "picture-entity"
|
||||
"entity": "vacuum.xiaomi_vacuum_cleaner"
|
||||
}
|
||||
],
|
||||
"type": "vertical-stack"
|
||||
"title": "Aspiradora",
|
||||
"type": "entities"
|
||||
}
|
||||
],
|
||||
"icon": "mdi:home-minus",
|
||||
@@ -460,6 +456,49 @@
|
||||
"title": "Gr\u00e1fica de Transferencia (2 horas)",
|
||||
"type": "history-graph"
|
||||
},
|
||||
{
|
||||
"entities": [
|
||||
{
|
||||
"entity": "light.luz_salon_entrada"
|
||||
},
|
||||
{
|
||||
"entity": "light.luz_salon_entrada_ambilight"
|
||||
},
|
||||
{
|
||||
"entity": "binary_sensor.luz_salon_entrada_nightlight"
|
||||
},
|
||||
{
|
||||
"entity": "light.luz_salon_television"
|
||||
},
|
||||
{
|
||||
"entity": "light.luz_salon_television_ambilight"
|
||||
},
|
||||
{
|
||||
"entity": "binary_sensor.luz_salon_television_nightlight"
|
||||
}
|
||||
],
|
||||
"title": "Luces",
|
||||
"type": "entities"
|
||||
},
|
||||
{
|
||||
"entities": [
|
||||
{
|
||||
"entity": "cover.persiana_salon_fase_dos"
|
||||
},
|
||||
{
|
||||
"entity": "input_boolean.control_persiana_salon_fase_dos"
|
||||
},
|
||||
{
|
||||
"entity": "cover.persiana_salon_piscina"
|
||||
},
|
||||
{
|
||||
"entity": "input_boolean.control_persiana_salon_piscina"
|
||||
}
|
||||
],
|
||||
"show_header_toggle": false,
|
||||
"title": "Persianas",
|
||||
"type": "entities"
|
||||
},
|
||||
{
|
||||
"entity": "media_player.television_salon",
|
||||
"type": "media-control"
|
||||
@@ -521,36 +560,6 @@
|
||||
"title": "Humidificador",
|
||||
"type": "glance"
|
||||
},
|
||||
{
|
||||
"cards": [
|
||||
{
|
||||
"entity": "script.apagar_encender_humidificador",
|
||||
"hold_action": {
|
||||
"action": "more-info"
|
||||
},
|
||||
"icon": "mdi:power",
|
||||
"name": "ON/OFF",
|
||||
"tap_action": {
|
||||
"action": "toggle"
|
||||
},
|
||||
"theme": "default",
|
||||
"type": "entity-button"
|
||||
}
|
||||
],
|
||||
"name": "Humidificador",
|
||||
"type": "horizontal-stack"
|
||||
},
|
||||
{
|
||||
"entities": [
|
||||
{
|
||||
"entity": "switch.xiaomi_strip_2",
|
||||
"name": "Regleta Principal Mueble"
|
||||
}
|
||||
],
|
||||
"show_header_toggle": false,
|
||||
"title": "Interruptores",
|
||||
"type": "entities"
|
||||
},
|
||||
{
|
||||
"entity": "fan.xiaomi_miio_device_2",
|
||||
"hold_action": {
|
||||
@@ -565,20 +574,12 @@
|
||||
{
|
||||
"entities": [
|
||||
{
|
||||
"entity": "cover.persiana_salon_fase_dos"
|
||||
},
|
||||
{
|
||||
"entity": "input_boolean.control_persiana_salon_fase_dos"
|
||||
},
|
||||
{
|
||||
"entity": "cover.persiana_salon_piscina"
|
||||
},
|
||||
{
|
||||
"entity": "input_boolean.control_persiana_salon_piscina"
|
||||
"entity": "switch.xiaomi_strip_2",
|
||||
"name": "Regleta Principal Mueble"
|
||||
}
|
||||
],
|
||||
"show_header_toggle": false,
|
||||
"title": "Persianas",
|
||||
"title": "Interruptores",
|
||||
"type": "entities"
|
||||
}
|
||||
],
|
||||
@@ -611,6 +612,12 @@
|
||||
},
|
||||
{
|
||||
"entities": [
|
||||
{
|
||||
"entity": "light.luz_cocina"
|
||||
},
|
||||
{
|
||||
"entity": "light.led_cocina"
|
||||
},
|
||||
{
|
||||
"entity": "light.luz_tendedero"
|
||||
}
|
||||
@@ -992,14 +999,20 @@
|
||||
"type": "glance"
|
||||
},
|
||||
"entities": [
|
||||
{
|
||||
"entity": "timer.luzentradapasillo"
|
||||
},
|
||||
{
|
||||
"entity": "timer.luzhabitacionestudio"
|
||||
},
|
||||
{
|
||||
"entity": "timer.luzpasillo"
|
||||
"entity": "timer.luzledcocina"
|
||||
},
|
||||
{
|
||||
"entity": "timer.luzcocina"
|
||||
},
|
||||
{
|
||||
"entity": "timer.luzpasilloestudio"
|
||||
},
|
||||
{
|
||||
"entity": "timer.luzpasillosalon"
|
||||
}
|
||||
],
|
||||
"show_empty": true,
|
||||
|
||||
@@ -24,3 +24,5 @@ switch.light_led_cabecero:
|
||||
friendly_name: Luz Cabecero Principal
|
||||
assumed_state: false
|
||||
icon: mdi:lightbulb
|
||||
binary_sensor.movimiento_salon_entrada:
|
||||
device_class: motion
|
||||
|
||||
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