tomquist / solix2mqtt

CLI tool to poll the Solix API for the latest sample data from all devices and publish them to an MQTT broker.
MIT License
38 stars 8 forks source link

empty datasets #6

Closed toto-1975 closed 6 months ago

toto-1975 commented 6 months ago

Hello,

there seems to be a problem with the registration. I get empty data records sent to the MQTT server: {"site_list":[],"solar_list":[],"pps_list":[],"solarbank_list":[],"powerpanel_list":[]}

I have entered an incorrect password in the S2M_PASSWORD= and have also received an empty data record.

I start the program via a self-created start.sh file with the following content:

#!/bin/bash

# Execute 'npm install' to install dependencies
npm install

# Execute 'npm run build' to compile the project
npm run build

# Set environment variables and start the program
S2M_USER=meine.mail@gmail.com \
S2M_PASSWORD=Password \
S2M_COUNTRY=DE \
S2M_MQTT_URI=mqtt://192.xxx.xxx.xxx:1883 \
npm run start
oemich commented 6 months ago

I have the same behavior when I use not the many account but one with which the "System" is shared. For me it seams that the API accesses the device directly not via the "System" view. accounts with have access via the shared "System" do not have access to the Devices directly.

Would be great if the access via "System" could be realized here as well.

toto-1975 commented 6 months ago

so here is my output when I start the program with verbose. Eventuell hilft das ja weiter

[2024-03-26T20:41:37.085Z] Fetching data [2024-03-26T20:41:37.087Z] Using cached auth data [2024-03-26T20:41:37.088Z] xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [2024-03-26T20:41:37.089Z] {} [2024-03-26T20:41:37.166Z] Published. [2024-03-26T20:41:37.166Z] Sleeping for 29918ms...

toto-1975 commented 6 months ago

Solution to my problem: I deleted the auth.data and now everything works as desired. Top work