Skip to content

Errors on  #33

@hippytyre

Description

@hippytyre

Hello,

I'm new to using python in home assistantand I've been trying to get solis_control working for a while now. I have all of the config credentials correct(I think) but when i run the service nothing changed in the times.

Looking at the logs I have a couple of warnings/errors.

Config was used from pyscript, this is a deprecated alias which will be removed in HA Core 2025.11. Use homeassistant.core_config.Config instead, please report it to the author of the 'pyscript' custom integration

and

Logger: custom_components.pyscript.file.solis_control.solis_control
Source: custom_components/pyscript/eval.py:510
integration: Pyscript Python scripting (documentation, issues)
First occurred: 19:34:03 (1 occurrences)
Last logged: 19:34:03
Exception in <file.solis_control.solis_control> line 119: for record in inverterList['data']['page']['records']: ^ TypeError: 'NoneType' object is not subscriptable

Here's my service call.

action: pyscript.solis_control
data:
days:
- chargeCurrent: "50"
dischargeCurrent: "50"
chargeStartTime: "03:00"
chargeEndTime: "04:30"
dischargeStartTime: "00:00"
dischargeEndTime: "00:00"
- chargeCurrent: "50"
dischargeCurrent: "50"
chargeStartTime: "00:00"
chargeEndTime: "00:00"
dischargeStartTime: "00:00"
dischargeEndTime: "00:00"
- chargeCurrent: "50"
dischargeCurrent: "50"
chargeStartTime: "00:00"
chargeEndTime: "00:00"
dischargeStartTime: "00:00"
dischargeEndTime: "00:00"
config:
secret: xxxxxxx
key_id: "xxxxxxx"
username: xxxxx
password: xxxxxxxx
plantId: xxxxxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions