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

Workaround for Solarflow-BT-Manager #10

Open
olomberg opened this issue Mar 26, 2024 · 5 comments
Open

Workaround for Solarflow-BT-Manager #10

olomberg opened this issue Mar 26, 2024 · 5 comments

Comments

@olomberg
Copy link

Hi Reinhard.

I just bought an implemented my Solarflow PV Hub 2000 and AB 2000 for my house. Zendure App is fully configured. Now I would like to use your Solarflow Control and Statuspage part. Unfortunately I am currently 3 hours away from my house but have remote access via vpn tunnel. Given that I am not able to reconfigure the PV Hub via bluetooth. I did a Wireshark sniff an can see the PV Hub sending it's MQTT packages to mqtteu.zen-iot.com as I did the initial setup an configuration to Germany. So while thinking about how I could re-configre it remotely, while not being onsite, I came up with the idea to just fake the dns entry of "mqtteu.zen-iot.com" on my local dns server (leveraged also by my PB Hub) pointing to my local Mosquitto mqqt server. Did somebody ever tried/tested this? Should this work with your control tool? I will test this tomorrow, when I will have more time. Feedback on "faking" DNS is appreceated.
Best
Oliver

@olomberg
Copy link
Author

Update: Seems to be working so far. Just had the chance to set a DNS record of "mqtt.zen-iot.com" pointing to my local mqtt server and disconnected my internet connection so that the PV Hub has to re-establish the connection. After this can see the mqtt messages flying in. At the same time my PV Hub is "Offline" in the Zendure App under My devices.

@reinhard-brandstaedter
Copy link
Owner

Yes, that will work seamlessly.
This split-dns was also my initial setup without changes on the hub side. But since not everyone is able to operate their own DNS I took the generic approach within the hub’s config.

@mavo
Copy link

mavo commented Apr 5, 2024

Hello @olomberg,

as you have the hub2k for some days now, did you manage to have sf-control working with it? I am currently struggeling. Maybe you have an idea what I forgot to do?

reinhard-brandstaedter/solarflow-control#191

@martin-nrw-85
Copy link

Hallo,
ich hoffe hier kann man mir helfen.
Ich habe den Hub1200 offline genommen.
Musste eine Änderung in dem Skript vornehmen:

  • original:
    client = mqtt_client.Client(mqtt_client.CallbackAPIVersion.VERSION1, client_id="solarflow-bt")

  • Anpassung:
    client_id= "solarflow-bt"
    client = mqtt_client.Client(client_id)

Da es immer zu einer Fehlermeldung:
" File "/zendure/solarflow-bt-manager/src/solarflow-bt-manager.py", line 43, in local_mqtt_connect
client = mqtt_client.Client(mqtt_client.CallbackAPIVersion.VERSION1, client_ id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'paho.mqtt.client' has no attribute 'CallbackAPIVersion'"

Im MQTT Explorer bekomme ich jedoch nur "0{"messageId":"123","method":"device","deviceId":"xxxxx","timestamp":1712852073,"offData":0,"data":{"eventId":3,"startTime":1712851893,"endTime":1712852073,"inout":2,"mode":2,"electric":0}}"
angezeigt sonst kommen keine Ereignisse.

@ninjadriver
Copy link

Yes, that will work seamlessly. This split-dns was also my initial setup without changes on the hub side. But since not everyone is able to operate their own DNS I took the generic approach within the hub’s config.

Hi,
could you push or send me an short information about how you started with faking the DNS Entry?
Background:

  • I have alread a TSUN Proxy in Place, which is operating on that way: DNS Entry is faked to my Server, Sends Information to MQTT and then Forward the information to the TSUN Server.
  • Now i'm looking for the same solution without using BT. So I want to Fake DNS Entry für MQTT Connection to my local MQTT Server and i want to forward the incoming MQTT Messages to the MQTT Adress of Zendure. Do you know if this could work? Would be very happy if you have a solution for me :) Thanks in Advance

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

5 participants