Hi everyone,
I’ve been attempting to make use of the Octopus Energy free energy sessions with Octoplus, by turning everything I can automate to turn on, on!
But I came across a small issue, if certain devices are not available - they stop my automation as per this image from the traces:
The actions part of my code used to be:
actions:
- device_id: 12345
domain: number
entity_id: 23456
type: set_value
metadata:
secondary: false
value: 100
- device_id: 12345
domain: select
entity_id: 34567
type: select_first
- device_id: 12345
domain: select
entity_id: 45678
type: select_option
option: Time-Based Control
- device_id: 09876
domain: select
entity_id: 98765
type: select_option
option: Fast
enabled: true
- action: myenergi.myenergi_eddi_boost
metadata: {}
data:
target: Heater 1
time: 120
target:
device_id: 24680
- type: turn_on
device_id: 13579
entity_id: 33445
domain: switch
- action: notify.mobile_app_phone
metadata: {}
data:
message: Free energy session start detected
title: Headsup!
- action: tts.speak
metadata: {}
data:
cache: true
media_player_entity_id: media_player.nest_mini_2
message: Free energy session started, use what you can
target:
entity_id: tts.google_translate_en_com
mode: single
I’ve now changed it to run in parallel, which may not be the best way, but was at least the only way I could think of:
actions:
- parallel:
- device_id: 12345
domain: number
entity_id: 23456
type: set_value
metadata:
secondary: false
value: 100
- device_id: 12345
domain: select
entity_id: 34567
type: select_first
- device_id: 12345
domain: select
entity_id: 45678
type: select_option
option: Time-Based Control
- device_id: 09876
domain: select
entity_id: 98765
type: select_option
option: Fast
enabled: true
- action: myenergi.myenergi_eddi_boost
metadata: {}
data:
target: Heater 1
time: 60
target:
device_id: 24680
- type: turn_on
device_id: 13579
entity_id: 33445
domain: switch
- action: notify.mobile_app_phone
metadata: {}
data:
message: Free energy session start detected
title: Headsup!
- action: tts.speak
metadata: {}
data:
cache: true
media_player_entity_id: media_player.nest_mini_2
message: Free energy session started, use what you can
target:
entity_id: tts.google_translate_en_com
mode: single
Questions are - how are other people automating these?
How would you include error messages, if items didn’t run do to service / device issues?
I’m currently automating:
Powerwall (Tesla Powerwall 2) - forcing charge to 100%
Car Charging - Fast charge
Immersion Heater - Boosting
Electric Radiator - Turning on
Sending a notification to my phone
Playing a notification on my nest mini
Curious to see how anyone else is using this!
