Open tasisale opened 1 year ago
To integrate Fhem with MQTT and subscribe to messages starting with a user's appKey, you can follow these steps:
Install the MQTT plugin in Fhem. You can use the following commands to install the plugin:
update all install MQTT Configure the MQTT connection. Add the following content to the Fhem configuration file:
define mqtt MQTT
Subscribe to messages starting with the user's appKey. Add the following command to the Fhem configuration file:
define my_mqtt_sub MQTT_SUB
After completing these steps, Fhem will be able to connect to the MQTT broker server and subscribe to all MQTT messages starting with appKey. Please note that this assumes you have correctly configured your MQTT client and server and that your Fhem system is able to communicate with the MQTT broker server.
unfortunately it doesn't work that way for me. how do I connect the MQTT to Zendure? what is my app key?
@tasisale To get your app key, follow the readme instructions here: https://github.com/Zendure/developer-device-data-report I used Postman to post the message and get the information
@tasisale To get your app key, follow the readme instructions here: https://github.com/Zendure/developer-device-data-report I used Postman to post the message and get the information
ok, but why? sorry for the bad question. how i will connect it finaly to fhem?
thx for yout help.
no one who can help?
i use NodeRed to read the MQTT Values from the Zendure MQTT Server. Then NodeRed writes some Values to an influxDB/Grafana and some Values i write via MQTT direkt in FHEM Device readings. sounds complicated but it is not.
Can you give a example how to add your code to Fhem?