Zendure Hyper2000 and MQTT
Moderator: leecollings
-
- Posts: 18
- Joined: Wednesday 01 February 2017 8:21
- Target OS: Windows
- Domoticz version: Beta
- Location: France
- Contact:
Zendure Hyper2000 and MQTT
Hello everyone,
I bought a Zendure battery with a Hyper2000. It is possible to retrieve data from the Hyper200 via MQTT (Zendure has developed an API for this). https://zendure.com/
I tested with MQTT Explorer and I can see the data.
In Domoticz it's impossible to get anything (no data seen by Domoticz) even though the connection is made to the Zendure site:
2024-12-11 09:35:32.444 Status: MQTT Zendure: Connecting to mqtt-eu.zen-iot.com:1883
2024-12-11 09:35:32.877 Status: MQTT Zendure: Connected to: mqtt-eu.zen-iot.com:1883
Has anyone been able to retrieve data from Zendure's Hyper200 and/or modify Hyper2000 settings from Domoticz?
My settings in Domoticz :
Data retreived using MQTT Explorer :
Thanks to anyone who can help me, as I'm just starting out with MQTT.
I bought a Zendure battery with a Hyper2000. It is possible to retrieve data from the Hyper200 via MQTT (Zendure has developed an API for this). https://zendure.com/
I tested with MQTT Explorer and I can see the data.
In Domoticz it's impossible to get anything (no data seen by Domoticz) even though the connection is made to the Zendure site:
2024-12-11 09:35:32.444 Status: MQTT Zendure: Connecting to mqtt-eu.zen-iot.com:1883
2024-12-11 09:35:32.877 Status: MQTT Zendure: Connected to: mqtt-eu.zen-iot.com:1883
Has anyone been able to retrieve data from Zendure's Hyper200 and/or modify Hyper2000 settings from Domoticz?
My settings in Domoticz :
Data retreived using MQTT Explorer :
Thanks to anyone who can help me, as I'm just starting out with MQTT.
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Zendure Hyper2000 and MQTT
If zendure is able to send Home Assistant discover topics then you could use the Domoticz MQTT AutoDiscover gateway.
If zendure is not able to do that you can use the MQTTmapper python plugin in which you can create a mapping file to map Domoticz device to zendure topics.
If zendure is not able to do that you can use the MQTTmapper python plugin in which you can create a mapping file to map Domoticz device to zendure topics.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Zendure Hyper2000 and MQTT
Hi,
I understand why you don't see anything in Domoticz.
The Zendure MQTT server (broker) is cloud based and I assume, you are looking in MQTT Explorer to that Zendure MQTT server.
As you can see at https://github.com/Zendure/developer-device-data-report there is a list of supported products:
Did you follow the steps as described under: Steps to Subscribe to Device Data?
As you can see Home assistant is supported.
It is correct in MQTT Explorer, as otherwise, you did not see anything there.
You still use as discovery prefix "homeassistant" in Domoticz and I do not believe that your appKey equals "homeassistant".
So there is something to check.
Regards
Regards
I understand why you don't see anything in Domoticz.
The Zendure MQTT server (broker) is cloud based and I assume, you are looking in MQTT Explorer to that Zendure MQTT server.
As you can see at https://github.com/Zendure/developer-device-data-report there is a list of supported products:
Is your product supported?Supported products
Currently supports devices connected to WIFI
SuperBase V
6400
4600
Satellite Battery
6400
4600
SolarFlow
Did you follow the steps as described under: Steps to Subscribe to Device Data?
As you can see Home assistant is supported.
Did you insert the correct appkey and appsecret also in Domoticz, so that it complies with the data you received while applying as a developer?1. Select devices and services in Home Assistant, and add MQTT integration services. Use appKey as the username and appSecret as the password to connect to the MQTT broker.
2. Replace the integrated Mqtt Discovery prefix with your appKey.
It is correct in MQTT Explorer, as otherwise, you did not see anything there.
You still use as discovery prefix "homeassistant" in Domoticz and I do not believe that your appKey equals "homeassistant".
So there is something to check.
Regards
Regards
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Zendure Hyper2000 and MQTT
There exist a few other posts, that might be of interest:
See: https://huebschen.wtf/smart-battery-wit ... nd-nodered
or: https://www.justiot.de/smart-home/anlei ... einbinden/ (in German)
See: https://huebschen.wtf/smart-battery-wit ... nd-nodered
or: https://www.justiot.de/smart-home/anlei ... einbinden/ (in German)
-
- Posts: 18
- Joined: Wednesday 01 February 2017 8:21
- Target OS: Windows
- Domoticz version: Beta
- Location: France
- Contact:
Re: Zendure Hyper2000 and MQTT
Hi,waltervl wrote: ↑Wednesday 11 December 2024 14:32 If zendure is able to send Home Assistant discover topics then you could use the Domoticz MQTT AutoDiscover gateway.
If zendure is not able to do that you can use the MQTTmapper python plugin in which you can create a mapping file to map Domoticz device to zendure topics.
I already use MQTT AutoDiscover gateway as you can see in the first image I put in my first message.
The connection is OK with the brocker but no device appears in "config".
-
- Posts: 18
- Joined: Wednesday 01 February 2017 8:21
- Target OS: Windows
- Domoticz version: Beta
- Location: France
- Contact:
Re: Zendure Hyper2000 and MQTT
Hi,FireWizard wrote: ↑Wednesday 11 December 2024 15:25 Hi,
I understand why you don't see anything in Domoticz.
The Zendure MQTT server (broker) is cloud based and I assume, you are looking in MQTT Explorer to that Zendure MQTT server.
As you can see at https://github.com/Zendure/developer-device-data-report there is a list of supported products:
Is your product supported?Supported products
Currently supports devices connected to WIFI
SuperBase V
6400
4600
Satellite Battery
6400
4600
SolarFlow
Did you follow the steps as described under: Steps to Subscribe to Device Data?
As you can see Home assistant is supported.
Did you insert the correct appkey and appsecret also in Domoticz, so that it complies with the data you received while applying as a developer?1. Select devices and services in Home Assistant, and add MQTT integration services. Use appKey as the username and appSecret as the password to connect to the MQTT broker.
2. Replace the integrated Mqtt Discovery prefix with your appKey.
It is correct in MQTT Explorer, as otherwise, you did not see anything there.
You still use as discovery prefix "homeassistant" in Domoticz and I do not believe that your appKey equals "homeassistant".
So there is something to check.
Regards
Regards
- yes the device is supported (SolarFlow = Hyper2000)
- yes the appkey and secret are OK
- I have tried to use my appkey in prefix but still the things, no device in config section :
-
- Posts: 18
- Joined: Wednesday 01 February 2017 8:21
- Target OS: Windows
- Domoticz version: Beta
- Location: France
- Contact:
Re: Zendure Hyper2000 and MQTT
Thanks for these links, I take a look at them.FireWizard wrote: ↑Wednesday 11 December 2024 15:39 There exist a few other posts, that might be of interest:
See: https://huebschen.wtf/smart-battery-wit ... nd-nodered
or: https://www.justiot.de/smart-home/anlei ... einbinden/ (in German)
-
- Posts: 18
- Joined: Wednesday 01 February 2017 8:21
- Target OS: Windows
- Domoticz version: Beta
- Location: France
- Contact:
Re: Zendure Hyper2000 and MQTT
@FireWizard
I have retried to use my appkey in prefix and now it work
I get some devices
I have just one error in Domoticz logs for one device :
MQTT Zendure: Exception (GetValueFromTemplate): Type is not convertible to string! (Template: value_json.packData)
at the moment I have no idea to solve this problem...
Thanks at all for your time and your help.
I have retried to use my appkey in prefix and now it work
I get some devices
I have just one error in Domoticz logs for one device :
MQTT Zendure: Exception (GetValueFromTemplate): Type is not convertible to string! (Template: value_json.packData)
at the moment I have no idea to solve this problem...
Thanks at all for your time and your help.
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Zendure Hyper2000 and MQTT
Hi @PHIL63,
You wrote:
MQTT Zendure: Exception (GetValueFromTemplate): Type is not convertible to string! (Template: value_json.packData)
If you have found it, what does that device show? See MQTT Explorer.
I do not use MQTT AD, only the standard, so maybe another experienced user might jump in.
Regards
You wrote:
GreatI have retried to use my appkey in prefix and now it work
Only some? Or all the devices that you showed us in MQTT Explorer?I have just one error in Domoticz logs for one device :I get some devices
MQTT Zendure: Exception (GetValueFromTemplate): Type is not convertible to string! (Template: value_json.packData)
You said "for one device". Do you know which device?I have just one error in Domoticz logs for one device :
MQTT Zendure: Exception (GetValueFromTemplate): Type is not convertible to string! (Template: value_json.packData)
If you have found it, what does that device show? See MQTT Explorer.
I do not use MQTT AD, only the standard, so maybe another experienced user might jump in.
Regards
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Zendure Hyper2000 and MQTT
For Domoticz MQTT AutoDiscover to work properly in your config screenshot)it needs a topic named homeassistant where the config topics for all the devices are listed. I do not see that in your mqtt explorer screenshot. Perhaps change the value homeassistant to the correct value (second line of your mqtt)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 18
- Joined: Wednesday 01 February 2017 8:21
- Target OS: Windows
- Domoticz version: Beta
- Location: France
- Contact:
Re: Zendure Hyper2000 and MQTT
@FireWizard
I think the missing devices are related to the error MQTT Zendure: Exception (GetValueFromTemplate): Type is not convertible to string! (Template: value_json.packData)
These devices must be in some sort of array.
Thanks for your answer
I think the missing devices are related to the error MQTT Zendure: Exception (GetValueFromTemplate): Type is not convertible to string! (Template: value_json.packData)
These devices must be in some sort of array.
Thanks for your answer
-
- Posts: 18
- Joined: Wednesday 01 February 2017 8:21
- Target OS: Windows
- Domoticz version: Beta
- Location: France
- Contact:
Re: Zendure Hyper2000 and MQTT
Sorry, I'm new to MQTT and I can't see where to put the homeassistant value. If it's in the Prefix discovery field, I've already tried but nothing works.waltervl wrote: ↑Thursday 12 December 2024 16:45 For Domoticz MQTT AutoDiscover to work properly in your config screenshot)it needs a topic named homeassistant where the config topics for all the devices are listed. I do not see that in your mqtt explorer screenshot. Perhaps change the value homeassistant to the correct value (second line of your mqtt)
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Zendure Hyper2000 and MQTT
Indeed the AutoDiscover prefix should be the topic where the config statements should be.
But is seems zendure mqtt is using one topic fo config and state topics. Domoticz MQTT does not really like this. So zendure is not following the rules for AutoDiscover. Perhaps you can change that on the zendure side?
On this wiki page on the very end you see an example https://wiki.domoticz.com/MQTT_AD_Report_Problems
If it does not work with AutoDiscover then take the node red route or use the MQTTmapper plugin route to send the data to Domoticz. It will take you some extra work.
But is seems zendure mqtt is using one topic fo config and state topics. Domoticz MQTT does not really like this. So zendure is not following the rules for AutoDiscover. Perhaps you can change that on the zendure side?
On this wiki page on the very end you see an example https://wiki.domoticz.com/MQTT_AD_Report_Problems
If it does not work with AutoDiscover then take the node red route or use the MQTTmapper plugin route to send the data to Domoticz. It will take you some extra work.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest