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
|
entity_id: binary_sensor.office_window_open_close
|
||||||
state: 'off'
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- choose:
|
- service: script.ac_on
|
||||||
- conditions:
|
- choose:
|
||||||
- condition: state
|
- conditions:
|
||||||
entity_id: climate.ac
|
- condition: state
|
||||||
state: cool
|
|
||||||
sequence:
|
|
||||||
- service: climate.set_temperature
|
|
||||||
target:
|
|
||||||
entity_id: climate.ac
|
entity_id: climate.ac
|
||||||
data:
|
state: cool
|
||||||
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
|
sequence:
|
||||||
default:
|
- service: climate.set_temperature
|
||||||
- service: climate.turn_on
|
target:
|
||||||
target:
|
entity_id: climate.ac
|
||||||
entity_id: climate.ac
|
data:
|
||||||
data: {}
|
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
|
||||||
- service: climate.set_temperature
|
|
||||||
data:
|
|
||||||
temperature: 25
|
|
||||||
hvac_mode: cool
|
|
||||||
target:
|
|
||||||
entity_id: climate.ac
|
|
||||||
|
|
||||||
- id: ac-turn-off
|
- id: ac-turn-off
|
||||||
alias: '[AC] Turn off when windows are open'
|
alias: '[AC] Turn off when windows are open'
|
||||||
@ -68,6 +58,4 @@
|
|||||||
for:
|
for:
|
||||||
minutes: 1
|
minutes: 1
|
||||||
action:
|
action:
|
||||||
- service: climate.turn_off
|
- service: script.ac_off
|
||||||
target:
|
|
||||||
entity_id: climate.ac
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
entity_id: input_select.home_mode
|
entity_id: input_select.home_mode
|
||||||
state: Night
|
state: Night
|
||||||
action:
|
action:
|
||||||
|
- service: script.ac_on
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -28,16 +29,6 @@
|
|||||||
entity_id: climate.ac
|
entity_id: climate.ac
|
||||||
data:
|
data:
|
||||||
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
|
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
|
- id: bedroom-ac-turn-off
|
||||||
alias: '[AC][Bedroom] Turn off AC when it is cold in bedroom'
|
alias: '[AC][Bedroom] Turn off AC when it is cold in bedroom'
|
||||||
@ -64,9 +55,7 @@
|
|||||||
attribute: temperature
|
attribute: temperature
|
||||||
state: '25'
|
state: '25'
|
||||||
sequence:
|
sequence:
|
||||||
- service: climate.turn_off
|
- service: script.ac_off
|
||||||
target:
|
|
||||||
entity_id: climate.ac
|
|
||||||
default:
|
default:
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
target:
|
target:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
alias: '[Bedroom] TV On'
|
alias: '[Bedroom] TV On'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: media_player.bedroom_tv
|
entity_id: switch.bedroom_tv
|
||||||
to: 'on'
|
to: 'on'
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -15,7 +15,7 @@
|
|||||||
alias: '[Bedroom] TV Off'
|
alias: '[Bedroom] TV Off'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: media_player.bedroom_tv
|
entity_id: switch.bedroom_tv
|
||||||
to: 'off'
|
to: 'off'
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
entity_id: sensor.office_illuminance
|
entity_id: sensor.office_illuminance
|
||||||
below: '50'
|
below: '55'
|
||||||
for:
|
for:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 1
|
minutes: 1
|
||||||
@ -43,7 +43,7 @@
|
|||||||
- service: script.office_lights_on
|
- service: script.office_lights_on
|
||||||
|
|
||||||
- id: brightness-ok-lights-off
|
- id: brightness-ok-lights-off
|
||||||
alias: '[Brightness] Dark - turn on lights'
|
alias: '[Brightness] Dark - turn off lights'
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
|
@ -201,6 +201,12 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: device_offline
|
type: device_offline
|
||||||
subtype: device_offline
|
subtype: device_offline
|
||||||
|
# Bedroom MiTV
|
||||||
|
- device_id: 3597031909bf2286b98bde5af5f30bdb
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: device_offline
|
||||||
|
subtype: device_offline
|
||||||
# Bedroom motion
|
# Bedroom motion
|
||||||
- device_id: cd1e032a1a26de8ba1396bf91f197e47
|
- device_id: cd1e032a1a26de8ba1396bf91f197e47
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -334,12 +340,12 @@
|
|||||||
type: device_offline
|
type: device_offline
|
||||||
subtype: device_offline
|
subtype: device_offline
|
||||||
# Kitchen Dishwasher
|
# Kitchen Dishwasher
|
||||||
- device_id: 3597031909bf2286b98bde5af5f30bdb
|
- device_id: 3d1d632093dbae1113be4ed5c1005c13
|
||||||
domain: zha
|
domain: zha
|
||||||
platform: device
|
platform: device
|
||||||
type: device_offline
|
type: device_offline
|
||||||
subtype: device_offline
|
subtype: device_offline
|
||||||
# Kitchen Freezer door
|
# Kitchen Freezer door
|
||||||
- device_id: 988edb7d9919162f3682500e295c40d4
|
- device_id: 988edb7d9919162f3682500e295c40d4
|
||||||
domain: zha
|
domain: zha
|
||||||
platform: device
|
platform: device
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_select.home_mode
|
entity_id: input_select.home_mode
|
||||||
from: Away
|
from: Away
|
||||||
to: Home
|
to: Day
|
||||||
action:
|
action:
|
||||||
- service: vacuum.pause
|
- service: vacuum.pause
|
||||||
entity_id: vacuum.valetudo_valetudos5
|
entity_id: vacuum.valetudo_valetudos5
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
- id: daily-warning-bathroom
|
- id: work-daily-warning-bathroom
|
||||||
alias: '[Work] Daily Warning'
|
alias: '[Work] Daily Warning'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
@ -55,7 +55,7 @@
|
|||||||
entity_id: light.bathroom_color_zha_group_0x0007
|
entity_id: light.bathroom_color_zha_group_0x0007
|
||||||
mode: single
|
mode: single
|
||||||
|
|
||||||
- id: daily_off
|
- id: work-daily-off
|
||||||
alias: '[Work] Daily notification off'
|
alias: '[Work] Daily notification off'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
@ -73,7 +73,7 @@
|
|||||||
entity_id: light.desk_lightbar_ambilight
|
entity_id: light.desk_lightbar_ambilight
|
||||||
mode: single
|
mode: single
|
||||||
|
|
||||||
- id: work_finished
|
- id: work-finished
|
||||||
alias: '[Work] Notify when finished work'
|
alias: '[Work] Notify when finished work'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
@ -114,3 +114,25 @@
|
|||||||
entity_id: light.office_light_up
|
entity_id: light.office_light_up
|
||||||
mode: single
|
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