I too have been very impressed with the community effort to get the Custom Integration working again, so wanted to detail how it helps us.
We are in the UK and our electricity is via āIntelligent Octopusā Intelligent Octopus Go | Octopus Energy which requires an EV registered to the account. As standard it has 6 hours of off-peak power (2330 - 0530) but if the EV is low on charge and needs more than 6 hours to get full enough for the next day then the system will (where possible) allocate other off-peak slots. These can be a contiguous block or split into half hour chunks. These extra off-peak slots apply to the whole house consumption, not just the EVās consumption.
We also have 2 Powerwalls which are usually set to use 90% as Time of Use (Backup level of 10%). Normally the Powerwalls will charge between 2330 - 0530 and then the house will run from the Powerwalls from 0530 - 2330, so we usually use only a tiny amount of peak rate electricity.
When there is an āIntelligent Slotā we want the car to charge from the grid, not from the Powerwalls. I used to set this manually in the Powerwall app by setting the Tariff details to match that nightās charging plan. That is dull to do, and on occasion the Intelligent Slots can change during the night which then means the manually set slots are wrong.
We are also a long way from our substation, so the voltage during the day (no load) is up to about 242V, but with maximum load overnight (pegged to a max of 16kW for our 80A supply fuse) it gets down to about 223V. If the car starts charging at 240V and then the voltage drops to 223V then the car thinks there is a problem with the supply and limits itself to about 5kW, so the Powerwalls need to start charging before the car to avoid that big voltage drop.
That means I donāt want to rely on Octopus control of the charging times (the system controls the car to charge only during the off-peak slots). We want to allow the Powerwalls to charge for a minute or so before turning on the charger (a MyEnergi Zappi).
So, via HACS we use the
Octopus Intelligent Home Assistant integration
myenergi for Home Assistant
and (of course) the
Tesla Custom Integration
I am new to HA (a few weeks into the journey) so have put these together in the visual editor:
Trigger:
When Octopus Intelligent Slot (binary_sensor.octopus_intelligent_slot
) changes to On
Condition:
Confirm Octopus Smart Charging (switch.octopus_smart_charging
) is On
Actions:
Set Powerwall Reserve (number.triscombe_backup_reserve
) to 100
Delay for 00:02:00
Select āFastā mode for Zappi charger (select.myenergi_charger_charge_mode
)
and the outcome copied from the YAML editor:
alias: When IO slot, Powerwall Reserve 100, Charger Fast
description: >-
Powerwall Reserve set to 100 when Intelligent Slot on, wait 2 mins, change
charger to fast mode
trigger:
- platform: state
entity_id:
- binary_sensor.octopus_intelligent_slot
to: "on"
condition:
- condition: state
entity_id: switch.octopus_smart_charging
state: "on"
action:
- device_id: 91f9969405d6e6060c8ad47c8bf2f9ef
domain: number
entity_id: fee7c88090e153b895a7b0cebec13dc4
type: set_value
value: 100
alias: Set Powerwall Reserve to 100%
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- service: select.select_option
data:
option: Fast
target:
entity_id: select.myenergi_charger_charge_mode
alias: Set charger to Fast mode
mode: single
Then there is an opposite automation to revert back to normal when the Intelligent Slot is over. There may well be ābetterā ways to achieve this which I will discover as I find out more about HA!