Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT_Port not working #49

Open
romestylez opened this issue Jun 18, 2024 · 9 comments
Open

MQTT_Port not working #49

romestylez opened this issue Jun 18, 2024 · 9 comments

Comments

@romestylez
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

The password env variable is MQTT_PWD not MQTT_PASSWD

@romestylez
Copy link
Author

romestylez commented Jun 18, 2024

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
Copy link

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
Copy link
Author

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

@z-master42
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants