Hoi @
martijn092, bij deze.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| alias: Screens openen bij slecht weer of na zonsondergang
description: ""
trigger:
- platform: state
entity_id:
- weather.forecast_thuis
to: hail
- platform: state
entity_id:
- weather.forecast_thuis
to: lightning-rainy
- platform: state
entity_id:
- weather.forecast_thuis
to: pouring
- platform: state
entity_id:
- weather.forecast_thuis
to: rainy
- platform: sun
event: sunset
offset: "30"
- platform: state
entity_id:
- input_boolean.ramenwasdag
to: "on"
condition:
- condition: or
conditions:
- condition: state
entity_id: cover.screen_woonkamer
state: closed
- condition: state
entity_id: cover.screen_logeerkamer
state: closed
action:
- device_id: <ID>
domain: cover
entity_id: <ID>
type: open
- device_id: <ID>
domain: cover
entity_id: <ID>
type: open
mode: single |
Hierbij maak ik gebruik van de Sun integratie voor de zonsopkomst en -ondergang, en de Met.no koppeling voor het weer.
Ook heb ik een boolean voor de dag dat de glazenwasser komt, zodat deze de screens direct omhoog doet.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| alias: Sluit screens als het zonnig is en >10C
description: ""
trigger:
- platform: state
entity_id:
- weather.forecast_thuis
to: sunny
- platform: state
entity_id:
- weather.forecast_thuis
to: partlycloudy
condition:
- condition: sun
before: sunset
after: sunrise
before_offset: "-60"
- condition: numeric_state
entity_id: weather.forecast_thuis
above: 10
attribute: temperature
- condition: or
conditions:
- condition: state
entity_id: cover.screen_logeerkamer
state: open
- condition: state
entity_id: cover.screen_woonkamer
state: open
- condition: state
entity_id: input_boolean.ramenwasdag
state: "off"
action:
- device_id: <ID>
domain: cover
entity_id: <ID>
type: close
- device_id: <ID>
domain: cover
entity_id: <ID>
type: close
mode: single |
Ik heb hier 2 automatiseringen die 'samenwerken'. Ik wil ze ooit(tm) nog een keer in één automatisering gooien.