Reestructuración de luces
This commit is contained in:
4
packages/light/habitacion_estudio.yaml
Normal file
4
packages/light/habitacion_estudio.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
yeelight:
|
||||
devices:
|
||||
10.10.1.161:
|
||||
name: Luz Habitacion Estudio
|
||||
4
packages/light/habitacion_mia.yaml
Normal file
4
packages/light/habitacion_mia.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
yeelight:
|
||||
devices:
|
||||
10.10.1.162:
|
||||
name: Luz Habitacion Mia
|
||||
4
packages/light/habitacion_noha.yaml
Normal file
4
packages/light/habitacion_noha.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
yeelight:
|
||||
devices:
|
||||
10.10.1.163:
|
||||
name: Luz Habitacion Noha
|
||||
4
packages/light/habitacion_principal.yaml
Normal file
4
packages/light/habitacion_principal.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
yeelight:
|
||||
devices:
|
||||
10.10.1.164:
|
||||
name: Luz Habitacion Principal
|
||||
4
packages/light/habitacion_principal_cabecero.yaml
Normal file
4
packages/light/habitacion_principal_cabecero.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
light:
|
||||
- platform: switch
|
||||
name: Luz Cabecero Habitación Principal
|
||||
entity_id: switch.light_led_cabecero
|
||||
@@ -1,6 +1,6 @@
|
||||
light:
|
||||
- platform: xiaomi_miio
|
||||
name: Luz Entrada Dormitorio
|
||||
name: Luz Habitación Principal Entrada
|
||||
host: 10.10.1.191
|
||||
token: f7a017cf2a7df0f64f3866d091ec24e1
|
||||
model: philips.light.downlight
|
||||
@@ -1,6 +1,6 @@
|
||||
light:
|
||||
- platform: xiaomi_miio
|
||||
name: Luz Habitaciones Pasillo
|
||||
name: Luz Pasillo Baño
|
||||
host: 10.10.1.192
|
||||
token: f6743cf3e3639ac42870bed17dfc5fc0
|
||||
model: philips.light.downlight
|
||||
@@ -1,6 +1,6 @@
|
||||
light:
|
||||
- platform: xiaomi_miio
|
||||
name: Luz Estudio Pasillo
|
||||
name: Luz Pasillo Estudio
|
||||
host: 10.10.1.193
|
||||
token: 7026ea559226f23e1ed3bff25adac20d
|
||||
model: philips.light.downlight
|
||||
@@ -1,6 +1,6 @@
|
||||
light:
|
||||
- platform: xiaomi_miio
|
||||
name: Luz Entrada Pasillo
|
||||
name: Luz Pasillo Salon
|
||||
host: 10.10.1.194
|
||||
token: 1f7148e6ecadea293937b34565f2035c
|
||||
model: philips.light.downlight
|
||||
@@ -1,11 +0,0 @@
|
||||
light:
|
||||
- platform: yeelight
|
||||
devices:
|
||||
10.10.1.161:
|
||||
name: Luz Habitacion Estudio
|
||||
10.10.1.162:
|
||||
name: Luz Habitacion Noha
|
||||
10.10.1.163:
|
||||
name: Luz Habitacion Mia
|
||||
10.10.1.164:
|
||||
name: Luz Habitacion Principal
|
||||
@@ -1,46 +0,0 @@
|
||||
automation:
|
||||
- alias: Encender Luz Entrada Pasillo Normal
|
||||
initial_state: 'on'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.movimiento_entrada_pasillo
|
||||
to: 'on'
|
||||
condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- before: sunrise
|
||||
condition: sun
|
||||
- after: sunset
|
||||
condition: sun
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
data:
|
||||
entity_id:
|
||||
- light.luz_entrada_pasillo
|
||||
data_template:
|
||||
brightness: >
|
||||
{% if 7 < now().strftime('%H')|int and now().strftime('%H')|int < 23 -%}
|
||||
255
|
||||
{%- else -%}
|
||||
100
|
||||
{%- endif %}
|
||||
- service: timer.start
|
||||
data:
|
||||
entity_id: timer.luzentradapasillo
|
||||
|
||||
- alias: Apagar Luz Entrada Pasillo Normal
|
||||
initial_state: 'on'
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: timer.finished
|
||||
event_data:
|
||||
entity_id: timer.luzentradapasillo
|
||||
action:
|
||||
service: homeassistant.turn_off
|
||||
data:
|
||||
entity_id:
|
||||
- light.luz_entrada_pasillo
|
||||
|
||||
timer:
|
||||
luzentradapasillo:
|
||||
duration: '00:03:05'
|
||||
@@ -1,39 +0,0 @@
|
||||
automation:
|
||||
- alias: Encender Luz Habitación Estudio Normal
|
||||
initial_state: 'on'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.movimiento_habitacion_estudio
|
||||
to: 'on'
|
||||
condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- before: sunrise
|
||||
condition: sun
|
||||
- after: sunset
|
||||
condition: sun
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
data:
|
||||
entity_id:
|
||||
- light.luz_habitacion_estudio
|
||||
- service: timer.start
|
||||
data:
|
||||
entity_id: timer.luzhabitacionestudio
|
||||
|
||||
- alias: Apagar Luz Habitación Estudio Normal
|
||||
initial_state: 'on'
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: timer.finished
|
||||
event_data:
|
||||
entity_id: timer.luzhabitacionestudio
|
||||
action:
|
||||
service: homeassistant.turn_off
|
||||
data:
|
||||
entity_id:
|
||||
- light.luz_habitacion_estudio
|
||||
|
||||
timer:
|
||||
luzhabitacionestudio:
|
||||
duration: '00:03:00'
|
||||
@@ -1,48 +0,0 @@
|
||||
automation:
|
||||
- alias: Encender Luz Pasillo Normal
|
||||
initial_state: 'on'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.movimiento_pasillo_habitaciones
|
||||
to: 'on'
|
||||
condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- before: sunrise
|
||||
condition: sun
|
||||
- after: sunset
|
||||
condition: sun
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
data:
|
||||
entity_id:
|
||||
- light.luz_estudio_pasillo
|
||||
- light.luz_habitaciones_pasillo
|
||||
data_template:
|
||||
brightness: >
|
||||
{% if 7 < now().strftime('%H')|int and now().strftime('%H')|int < 23 -%}
|
||||
255
|
||||
{%- else -%}
|
||||
50
|
||||
{%- endif %}
|
||||
- service: timer.start
|
||||
data:
|
||||
entity_id: timer.luzpasillo
|
||||
|
||||
- alias: Apagar Luz Pasillo Normal
|
||||
initial_state: 'on'
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: timer.finished
|
||||
event_data:
|
||||
entity_id: timer.luzpasillo
|
||||
action:
|
||||
service: homeassistant.turn_off
|
||||
data:
|
||||
entity_id:
|
||||
- light.luz_estudio_pasillo
|
||||
- light.luz_habitaciones_pasillo
|
||||
|
||||
timer:
|
||||
luzpasillo:
|
||||
duration: '00:00:20'
|
||||
Reference in New Issue
Block a user