Hi all
First help request post, months using HA (so newby). I’ve struggled for several weeks to configure the HA rest sensor to read our Wi-Fi connected (Wi-Fi built-in not a Wi-Fi dongle) Solax SK-TL5000E on my own having read many posts etc but my attempt always failing with ‘401 Unauthorized’ in logs.
Objective is to read Solar data from inverter locally (Lan connect).
I have installed and have working the Solax Power Integration. I wish to have local inverter LAN access (and learn how to do this) hence the REST attempts outlined here.
-
Inverter is Solax Portal (not Cloud) connected and working fine ie can see read all data in Portal.
-
I’ve tested, and can from PC, using curl commands, read and retrieve my data from Solax Portal. Accordingly I’ve discovered and retained my account Solax Cloud access ‘id’ and ‘token’. I don’t know if these are required / used when attempting HA Rest to inverter locally?
-
I have direct access via web to the inverter web menu page.
-
I can see and read the inverter data via web page eg: http://192.168.1.8/api/realTimeData.htm.
Problem - every variation of REST I’ve tried does NOT appear to access or retrieve the data from HA, the logs indicating (i think?) that the inverter is rejecting the rest request. Im guessing either my rest command is invalid or that I need to include some sort of authorisation as part of the rest request?
Example Log error:
‘’'2024-01-08 18:39:37.214 DEBUG (MainThread) [homeassistant.components.rest.data] Data fetched from resource:
401 Unauthorized.
2024-01-08 18:39:37.214 WARNING (MainThread) [homeassistant.components.rest.util] REST result could not be parsed as JSON 2024-01-08 18:39:37.214 DEBUG (MainThread) [homeassistant.components.rest.util] Erroneous JSON: Error401 Unauthorized.
'''I’d be most appreciative for some guidance on my approach / questions above and happy to share my rest / config info if that’s required to assist me.
Thanks