InventoCasa / ha-advanced-blueprints

Advanced Blueprints combined with pyscript for extra useful automations
139 stars 33 forks source link

EVSE charger control ON/OFF #41

Closed nrp929 closed 8 months ago

nrp929 commented 9 months ago

I keep getting this error with my Wallbox Pulsar Plus. It's on version 5.17.50. This error shows up with both the OCPP integration and the wallbox integration. Since it's assuming OFF state, the automation doesn't turn off the EVSE when the solar panels aren't producing enough kW. Maybe it just needs to wait a little longer to get a response? Is it possible to introduce a delay timer when checking on Appliance state? Thanks.

This error originated from a custom integration.

Logger: custom_components.pyscript.file.pv_excess_control.on_time
Source: custom_components/pyscript/eval.py:1911
Integration: Pyscript Python scripting (documentation, issues)
First occurred: 7:16:19 AM (2 occurrences)
Last logged: 7:16:19 AM

[switch.charger_charge_control (Prio 1)] Appliance state (=unavailable) is neither ON nor OFF. Assuming OFF state.
InventoCasa commented 8 months ago

Hi, unfortunately this is not in control of the script. Something must be wrong with the state of your switch entity which you pass to the script. The entity state is only unavailable if there are connection issues between your appliance and Home Assistant. Check your switch entity history bar in Home Assistant to confirm this.