-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOff Buy from grid 12pm-5pm.yml
More file actions
48 lines (48 loc) · 1.4 KB
/
Off Buy from grid 12pm-5pm.yml
File metadata and controls
48 lines (48 loc) · 1.4 KB
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
46
47
48
alias: "Off: Buy from grid 12pm-5pm"
description: "This automation turns off the “Buy from grid” switch between 12:00 PM and 5:00 PM to deny electricity consumption from the grid during these hours."
triggers:
- trigger: time_pattern
minutes: /5
seconds: "30"
conditions:
- condition: numeric_state
entity_id:
- sensor.costsflexup
above: 0.20
- condition: numeric_state
entity_id: sensor.sigen_plant_battery_state_of_charge
below: 50
- condition: time
after: "12:00:00"
before: "17:00:00"
- not:
- condition: state
entity_id: select.sigen_plant_remote_ems_control_mode
state: Maximum Self Consumption
actions:
- action: notify.mobile_app_iphone
metadata: {}
data:
message: >-
⚡ Energy cost is high: ${{ states('sensor.costsFlexUp_dollars') }}/kWh –
Stop buying off the grid!
- sequence:
- action: number.set_value
metadata: {}
data:
value: 0
target:
entity_id: number.sigen_plant_ess_max_charging_limit
- action: number.set_value
metadata: {}
data:
value: 0
target:
entity_id: number.sigen_plant_ess_max_discharging_limit
- action: select.select_option
metadata: {}
data:
option: Maximum Self Consumption
target:
entity_id: select.sigen_plant_remote_ems_control_mode
mode: single