reinhard-brandstaedter / solarflow-statuspage

A simple statuspage with live-data from Zendure's Solarflow Hub for those who do not want to use the App
20 stars 6 forks source link

MQTT_Port not working #49

Open romestylez opened 2 weeks ago

romestylez commented 2 weeks ago

Hi guys, i have the statuspage running on my Synology NAS. Sadly this MQTT_PORT env isnt working

image image

Dont know why this is the case. Problem is that i have multiple MQTT Server on my nas. I dont even know why i have to set a MQTT as i use --online

image

reinhard-brandstaedter commented 2 weeks ago

Let me check that.

The local MQTT is needed e.g. for homeassistant integration. Generally the --online mode gets not much attention anymore as offline mode has a lot more advantages. And generally the statuspage doesn't get too much attention either due to solarflow-control/homeassistant integration and local MQTT data which people now use in more customized visualisations in grafana or Homeassistant. :-(

romestylez commented 2 weeks ago

Yeah i already fixxed the problem with this config

image

Sadly it can be just used with the main account where you have linked the HUB the first time. Shared devices arent working with the json

{"code":400,"success":false,"data":{},"msg":"Please bind the device first"}

So its not usable as im using the App on my phone. I guess i have to setup something similiar as the statuspage with ioBroker/VIS

romestylez commented 2 weeks ago

So i switched to --offline

image

But it seems to fail image image

Cant understand why because other devices are using this mqtt with the same user/pass without any problem.

reinhard-brandstaedter commented 2 weeks ago

Who wants to fiddle with a mobile app anyways. That SFHub should do it's work without maintenance in the best possible way without interaction...that's at least the intention of these projects...

reinhard-brandstaedter commented 2 weeks ago

The password env variable is MQTT_PWD not MQTT_PASSWD

romestylez commented 2 weeks ago

Yeah tried with MQTT_PWD also but same error

image

But guess its fine ill use the app and build something in iobroker. Just was looking for a possibility to set some values without using the app as i maybe can automate it ;)

z-master42 commented 2 weeks ago

Sadly it can be just used with the main account where you have linked the HUB the first time. Shared devices arent working with the json\n\n{\"code\":400,\"success\":false,\"data\":{},\"msg\":\"Please bind the device first\"}\n\nSo its not usable as im using the App on my phone. I guess i have to setup something similiar as the statuspage with ioBroker/VIS

Use your main account to bind and the secondary account to connect via the status page. Works for me too.

romestylez commented 2 weeks ago

When i use the main account to get my mqtt data i cant use it on the phone

z-master42 commented 2 weeks ago

When i use the main account to get my mqtt data i cant use it on the phone

Use your main account to bind (curl) and the secondary account to connect via the status page.