490 lines
14 KiB
YAML
490 lines
14 KiB
YAML
- alias: Varmepumpe dag/natt senkning
|
|
description: ''
|
|
triggers:
|
|
- trigger: time
|
|
at: 00:00:00
|
|
id: midnight
|
|
- trigger: time
|
|
at: 06:00:00
|
|
id: morning
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- midnight
|
|
- alias: 'Months March to September '
|
|
condition: template
|
|
value_template: '{{ now().month in [3, 4, 5, 6, 7, 8, 9] }}'
|
|
sequence:
|
|
- device_id: 0168cb9e6628e4333a2aa02dcceb2659
|
|
domain: climate
|
|
entity_id: 939fec7cc6847c021ddb0e9af9cf37bc
|
|
type: set_hvac_mode
|
|
hvac_mode: heat
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 1
|
|
milliseconds: 0
|
|
- action: climate.set_temperature
|
|
metadata: {}
|
|
data:
|
|
temperature: 18
|
|
target:
|
|
device_id: 0168cb9e6628e4333a2aa02dcceb2659
|
|
alias: Midnight (summer)
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- midnight
|
|
- alias: 'Months October to February '
|
|
condition: template
|
|
value_template: '{{ now().month in [10, 11, 12, 1, 2] }}'
|
|
sequence:
|
|
- device_id: 0168cb9e6628e4333a2aa02dcceb2659
|
|
domain: climate
|
|
entity_id: 939fec7cc6847c021ddb0e9af9cf37bc
|
|
type: set_hvac_mode
|
|
hvac_mode: heat
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 1
|
|
milliseconds: 0
|
|
- action: climate.set_temperature
|
|
metadata: {}
|
|
data:
|
|
temperature: 19
|
|
target:
|
|
device_id: 0168cb9e6628e4333a2aa02dcceb2659
|
|
alias: Midnight (winter)
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- morning
|
|
- condition: template
|
|
value_template: '{{ now().month in [3, 4, 5, 6, 7, 8, 9] }}'
|
|
alias: 'Months March to September '
|
|
sequence:
|
|
- device_id: 0168cb9e6628e4333a2aa02dcceb2659
|
|
domain: climate
|
|
entity_id: 939fec7cc6847c021ddb0e9af9cf37bc
|
|
type: set_hvac_mode
|
|
hvac_mode: fan_only
|
|
alias: Morning (summer)
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- morning
|
|
- alias: 'Months October to February '
|
|
condition: template
|
|
value_template: '{{ now().month in [10, 11, 12, 1, 2] }}'
|
|
sequence:
|
|
- device_id: 0168cb9e6628e4333a2aa02dcceb2659
|
|
domain: climate
|
|
entity_id: 939fec7cc6847c021ddb0e9af9cf37bc
|
|
type: set_hvac_mode
|
|
hvac_mode: heat
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 1
|
|
milliseconds: 0
|
|
- action: climate.set_temperature
|
|
metadata: {}
|
|
data:
|
|
temperature: 21
|
|
target:
|
|
device_id: 0168cb9e6628e4333a2aa02dcceb2659
|
|
alias: Morning (winter)
|
|
mode: single
|
|
- alias: Vaskerom / Motion activated light (Home Mode)
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.vaskerom_motion_sensor_bevegelse
|
|
to: 'on'
|
|
id: motion_detected
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.vaskerom_motion_sensor_bevegelse
|
|
to: 'off'
|
|
id: motion_clear
|
|
for:
|
|
hours: 0
|
|
minutes: 2
|
|
seconds: 0
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_mode
|
|
state: 'on'
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: trigger
|
|
id:
|
|
- motion_detected
|
|
- condition: state
|
|
entity_id: sensor.dallonaveien_15a_electricity_price
|
|
attribute: price_level
|
|
state: LOW
|
|
sequence:
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
rgb_color:
|
|
- 0
|
|
- 249
|
|
- 0
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: vaskerom
|
|
- alias: Dim light and change color after a short time
|
|
sequence:
|
|
- delay:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 30
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
rgb_color:
|
|
- 0
|
|
- 249
|
|
- 0
|
|
brightness_pct: 50
|
|
target:
|
|
area_id:
|
|
- vaskerom
|
|
enabled: false
|
|
alias: Turn on lights when motion is detected and price is LOW
|
|
- conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: trigger
|
|
id:
|
|
- motion_detected
|
|
- condition: state
|
|
entity_id: sensor.dallonaveien_15a_electricity_price
|
|
attribute: price_level
|
|
state: NORMAL
|
|
sequence:
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
rgb_color:
|
|
- 255
|
|
- 251
|
|
- 0
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: vaskerom
|
|
- alias: Dim light and change color after a short time
|
|
sequence:
|
|
- delay:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 30
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
rgb_color:
|
|
- 0
|
|
- 249
|
|
- 0
|
|
brightness_pct: 50
|
|
target:
|
|
area_id:
|
|
- vaskerom
|
|
enabled: false
|
|
alias: Turn on lights when motion is detected and price is NORMAL
|
|
- conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: trigger
|
|
id:
|
|
- motion_detected
|
|
- condition: state
|
|
entity_id: sensor.dallonaveien_15a_electricity_price
|
|
attribute: price_level
|
|
state: HIGH
|
|
sequence:
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
rgb_color:
|
|
- 255
|
|
- 38
|
|
- 0
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: vaskerom
|
|
- alias: Dim light and change color after a short time
|
|
sequence:
|
|
- delay:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 30
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
rgb_color:
|
|
- 0
|
|
- 249
|
|
- 0
|
|
brightness_pct: 50
|
|
target:
|
|
area_id:
|
|
- vaskerom
|
|
enabled: false
|
|
alias: Turn on lights when motion is detected and price is HIGH
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- motion_clear
|
|
sequence:
|
|
- action: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
target:
|
|
area_id: vaskerom
|
|
alias: Turn off lights when motion is clear
|
|
mode: restart
|
|
- alias: Vaskerom / VVB kostnad
|
|
description: ''
|
|
triggers:
|
|
- type: power
|
|
device_id: 2138a364100c57894e3b4c09492c1b0c
|
|
entity_id: 1173acd30ac665c1859efed7631a8799
|
|
domain: sensor
|
|
trigger: device
|
|
id: effect_above_100W
|
|
above: 100
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 10
|
|
- type: power
|
|
device_id: 2138a364100c57894e3b4c09492c1b0c
|
|
entity_id: 1173acd30ac665c1859efed7631a8799
|
|
domain: sensor
|
|
trigger: device
|
|
id: effect_below_100W
|
|
below: 100
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 10
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- effect_above_100W
|
|
sequence:
|
|
- metadata: {}
|
|
data:
|
|
value: '{{ states(''sensor.vaskerom_vvb_summation_delivered'')|float }}'
|
|
target:
|
|
entity_id: input_number.vaskerom_vvb_start
|
|
action: input_number.set_value
|
|
- metadata: {}
|
|
data:
|
|
message: Varmtvannsbereder er slått på!
|
|
title: Hjemme / Varmtvannsbereder
|
|
action: notify.mobile_app_borgermeister
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- effect_below_100W
|
|
sequence:
|
|
- metadata: {}
|
|
data:
|
|
value: '{{ states(''sensor.vaskerom_vvb_summation_delivered'')|float }}'
|
|
target:
|
|
entity_id: input_number.vaskerom_vvb_stop
|
|
action: input_number.set_value
|
|
- metadata: {}
|
|
data:
|
|
message: 'Varmtvannsbereder er slått av!
|
|
|
|
Strømpris: {{ states(''sensor.dallonaveien_15a_electricity_price'')|float|round(2)
|
|
}} kr/kWh
|
|
|
|
Forbruk: {{ (states(''input_number.vaskerom_vvb_stop'')|float - states(''input_number.vaskerom_vvb_start'')|float)|round(2)
|
|
}} kWh
|
|
|
|
Kostnad: {{ ((states(''input_number.vaskerom_vvb_stop'')|float - states(''input_number.vaskerom_vvb_start'')
|
|
|float) * states(''sensor.dallonaveien_15a_electricity_price'')|float)|round(2)
|
|
}} kr
|
|
|
|
'
|
|
title: Hjemme / Varmtvannsbereder
|
|
action: notify.mobile_app_borgermeister
|
|
- metadata: {}
|
|
data:
|
|
message: 'Varmtvannsbereder er slått av!
|
|
|
|
Strømpris: {{ states(''sensor.dallonaveien_15a_electricity_price'')|float|round(2)
|
|
}} kr/kWh
|
|
|
|
Forbruk: {{ (states(''input_number.vaskerom_vvb_stop'')|float - states(''input_number.vaskerom_vvb_start'')|float)|round(2)
|
|
}} kWh
|
|
|
|
Kostnad: {{ ((states(''input_number.vaskerom_vvb_stop'')|float - states(''input_number.vaskerom_vvb_start'')
|
|
|float) * states(''sensor.dallonaveien_15a_electricity_price'')|float)|round(2)
|
|
}} kr
|
|
|
|
'
|
|
title: Hjemme / Varmtvannsbereder
|
|
action: notify.persistent_notification
|
|
mode: single
|
|
- alias: Vaskerom / VVB with price
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.dallonaveien_15a_electricity_price
|
|
attribute: price_level
|
|
to: HIGH
|
|
id: price_high
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.dallonaveien_15a_electricity_price
|
|
attribute: price_level
|
|
to: LOW
|
|
id: price_low
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.dallonaveien_15a_electricity_price
|
|
attribute: price_level
|
|
to: NORMAL
|
|
id: price_normal
|
|
- trigger: time_pattern
|
|
hours: '*'
|
|
id: time_every_hour
|
|
minutes: '1'
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: trigger
|
|
id:
|
|
- price_low
|
|
sequence:
|
|
- type: turn_on
|
|
device_id: 2138a364100c57894e3b4c09492c1b0c
|
|
entity_id: 19f9f39771523196e490d917323dc0ec
|
|
domain: switch
|
|
- action: notify.mobile_app_borgermeister
|
|
metadata: {}
|
|
data:
|
|
message: Billig strøm!
|
|
alias: Turn on water heater when price is LOW
|
|
- conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: trigger
|
|
id:
|
|
- price_normal
|
|
sequence:
|
|
- type: turn_on
|
|
device_id: 2138a364100c57894e3b4c09492c1b0c
|
|
entity_id: 19f9f39771523196e490d917323dc0ec
|
|
domain: switch
|
|
- action: notify.mobile_app_borgermeister
|
|
metadata: {}
|
|
data:
|
|
message: Normal strøm!
|
|
alias: Turn on water heater when price is NORMAL
|
|
- conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: trigger
|
|
id:
|
|
- time_every_hour
|
|
- alias: Current price is higher than average price
|
|
condition: template
|
|
value_template: '{{ states(''sensor.dallonaveien_15a_electricity_price'')
|
|
| float(0) > state_attr(''sensor.dallonaveien_15a_electricity_price'',
|
|
''avg_price'') | float(0) }}'
|
|
- condition: state
|
|
entity_id: sensor.dallonaveien_15a_electricity_price
|
|
attribute: price_level
|
|
state: HIGH
|
|
sequence:
|
|
- type: turn_off
|
|
device_id: 2138a364100c57894e3b4c09492c1b0c
|
|
entity_id: 19f9f39771523196e490d917323dc0ec
|
|
domain: switch
|
|
- action: notify.mobile_app_borgermeister
|
|
metadata: {}
|
|
data:
|
|
message: Dyr strøm!
|
|
- delay:
|
|
hours: 12
|
|
minutes: 0
|
|
seconds: 0
|
|
milliseconds: 0
|
|
- action: notify.mobile_app_borgermeister
|
|
metadata: {}
|
|
data:
|
|
message: Dyr strøm over 12 timer. Slår varmtvannsberederen på uavhengig
|
|
av strømpris!
|
|
- type: turn_on
|
|
device_id: 2138a364100c57894e3b4c09492c1b0c
|
|
entity_id: 19f9f39771523196e490d917323dc0ec
|
|
domain: switch
|
|
- delay:
|
|
hours: 0
|
|
minutes: 30
|
|
seconds: 0
|
|
milliseconds: 0
|
|
- type: turn_off
|
|
device_id: 2138a364100c57894e3b4c09492c1b0c
|
|
entity_id: 19f9f39771523196e490d917323dc0ec
|
|
domain: switch
|
|
alias: Turn off water heater when price is HIGH and price higher than average
|
|
- conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: trigger
|
|
id:
|
|
- time_every_hour
|
|
- alias: Current price is lower or equal than average price
|
|
condition: template
|
|
value_template: '{{ states(''sensor.dallonaveien_15a_electricity_price'')
|
|
| float(0) <= state_attr(''sensor.dallonaveien_15a_electricity_price'',
|
|
''avg_price'') | float(0) }}'
|
|
- condition: state
|
|
entity_id: sensor.dallonaveien_15a_electricity_price
|
|
attribute: price_level
|
|
state: HIGH
|
|
sequence:
|
|
- type: turn_on
|
|
device_id: 2138a364100c57894e3b4c09492c1b0c
|
|
entity_id: 19f9f39771523196e490d917323dc0ec
|
|
domain: switch
|
|
- action: notify.mobile_app_borgermeister
|
|
metadata: {}
|
|
data:
|
|
message: Dyr strøm, men lavere enn gjennomsnittet!
|
|
alias: Turn on water heater when price is HIGH and price lower or equal than
|
|
average
|
|
mode: restart
|