Compare commits
6 Commits
b656b92a98
...
3c2c676418
Author | SHA1 | Date | |
---|---|---|---|
3c2c676418 | |||
e91e5dbbe6 | |||
df8ee4c555 | |||
1b66879a3e | |||
e4be1069ca | |||
7d7cbe8ddd |
@ -25,28 +25,18 @@
|
||||
entity_id: binary_sensor.office_window_open_close
|
||||
state: 'off'
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: climate.ac
|
||||
state: cool
|
||||
sequence:
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
- service: script.ac_on
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: climate.ac
|
||||
data:
|
||||
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
|
||||
default:
|
||||
- service: climate.turn_on
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
data: {}
|
||||
- service: climate.set_temperature
|
||||
data:
|
||||
temperature: 25
|
||||
hvac_mode: cool
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
state: cool
|
||||
sequence:
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
data:
|
||||
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
|
||||
|
||||
- id: ac-turn-off
|
||||
alias: '[AC] Turn off when windows are open'
|
||||
@ -68,6 +58,4 @@
|
||||
for:
|
||||
minutes: 1
|
||||
action:
|
||||
- service: climate.turn_off
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
- service: script.ac_off
|
||||
|
@ -17,6 +17,7 @@
|
||||
entity_id: input_select.home_mode
|
||||
state: Night
|
||||
action:
|
||||
- service: script.ac_on
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
@ -28,16 +29,6 @@
|
||||
entity_id: climate.ac
|
||||
data:
|
||||
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
|
||||
default:
|
||||
- service: climate.turn_on
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
- service: climate.set_temperature
|
||||
data:
|
||||
temperature: 24
|
||||
hvac_mode: cool
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
|
||||
- id: bedroom-ac-turn-off
|
||||
alias: '[AC][Bedroom] Turn off AC when it is cold in bedroom'
|
||||
@ -64,9 +55,7 @@
|
||||
attribute: temperature
|
||||
state: '25'
|
||||
sequence:
|
||||
- service: climate.turn_off
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
- service: script.ac_off
|
||||
default:
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
|
@ -2,7 +2,7 @@
|
||||
alias: '[Bedroom] TV On'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: media_player.bedroom_tv
|
||||
entity_id: switch.bedroom_tv
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: state
|
||||
@ -15,7 +15,7 @@
|
||||
alias: '[Bedroom] TV Off'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: media_player.bedroom_tv
|
||||
entity_id: switch.bedroom_tv
|
||||
to: 'off'
|
||||
condition:
|
||||
- condition: state
|
||||
|
@ -22,7 +22,7 @@
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.office_illuminance
|
||||
below: '50'
|
||||
below: '55'
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
@ -43,7 +43,7 @@
|
||||
- service: script.office_lights_on
|
||||
|
||||
- id: brightness-ok-lights-off
|
||||
alias: '[Brightness] Dark - turn on lights'
|
||||
alias: '[Brightness] Dark - turn off lights'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
|
@ -201,6 +201,12 @@
|
||||
platform: device
|
||||
type: device_offline
|
||||
subtype: device_offline
|
||||
# Bedroom MiTV
|
||||
- device_id: 3597031909bf2286b98bde5af5f30bdb
|
||||
domain: zha
|
||||
platform: device
|
||||
type: device_offline
|
||||
subtype: device_offline
|
||||
# Bedroom motion
|
||||
- device_id: cd1e032a1a26de8ba1396bf91f197e47
|
||||
domain: zha
|
||||
@ -334,12 +340,12 @@
|
||||
type: device_offline
|
||||
subtype: device_offline
|
||||
# Kitchen Dishwasher
|
||||
- device_id: 3597031909bf2286b98bde5af5f30bdb
|
||||
- device_id: 3d1d632093dbae1113be4ed5c1005c13
|
||||
domain: zha
|
||||
platform: device
|
||||
type: device_offline
|
||||
subtype: device_offline
|
||||
# Kitchen Freezer door
|
||||
# Kitchen Freezer door
|
||||
- device_id: 988edb7d9919162f3682500e295c40d4
|
||||
domain: zha
|
||||
platform: device
|
||||
|
@ -14,7 +14,7 @@
|
||||
- platform: state
|
||||
entity_id: input_select.home_mode
|
||||
from: Away
|
||||
to: Home
|
||||
to: Day
|
||||
action:
|
||||
- service: vacuum.pause
|
||||
entity_id: vacuum.valetudo_valetudos5
|
||||
|
@ -1,4 +1,4 @@
|
||||
- id: daily-warning-bathroom
|
||||
- id: work-daily-warning-bathroom
|
||||
alias: '[Work] Daily Warning'
|
||||
trigger:
|
||||
- platform: time
|
||||
@ -55,7 +55,7 @@
|
||||
entity_id: light.bathroom_color_zha_group_0x0007
|
||||
mode: single
|
||||
|
||||
- id: daily_off
|
||||
- id: work-daily-off
|
||||
alias: '[Work] Daily notification off'
|
||||
trigger:
|
||||
- platform: time
|
||||
@ -73,7 +73,7 @@
|
||||
entity_id: light.desk_lightbar_ambilight
|
||||
mode: single
|
||||
|
||||
- id: work_finished
|
||||
- id: work-finished
|
||||
alias: '[Work] Notify when finished work'
|
||||
trigger:
|
||||
- platform: state
|
||||
@ -114,3 +114,25 @@
|
||||
entity_id: light.office_light_up
|
||||
mode: single
|
||||
|
||||
- id: work-cool-down-home
|
||||
alias: '[Work] Cool down home after leaving work'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: zone
|
||||
entity_id: person.przemek
|
||||
zone: zone.work
|
||||
event: leave
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.ble_temperature_computer_cave_sensor
|
||||
above: "23"
|
||||
action:
|
||||
- service: script.ac_on
|
||||
- service: climate.set_temperature
|
||||
data:
|
||||
temperature: 25
|
||||
hvac_mode: cool
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
|
37
scripts/80.ac.yaml
Normal file
37
scripts/80.ac.yaml
Normal file
@ -0,0 +1,37 @@
|
||||
ac_off:
|
||||
alias: AC turn off
|
||||
sequence:
|
||||
- service: climate.turn_off
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
- delay: '0:05:00'
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: climate.ac
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.ac_power_outlet
|
||||
|
||||
ac_on:
|
||||
alias: AC turn on
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: switch.ac_power_outlet
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.ac_power_outlet
|
||||
- repeat:
|
||||
until:
|
||||
- condition: state
|
||||
entity_id: climate.ac
|
||||
state: unavailable
|
||||
sequence:
|
||||
- delay: '0:00:30'
|
||||
- service: climate.turn_on
|
||||
target:
|
||||
entity_id: climate.ac
|
Loading…
Reference in New Issue
Block a user