[TUTORIAL] Advanced Virtual Device for Eplucon/ Ecoforest TH Touch Heatpump

No worries, happy to see I can improve the tutorial with your trials…

I can check the error tomorrow OR I can help you with a how to script approach:

I used Chatgpt with this instruction:

  • Context Description:

This script is designed to fetch data from a specified API endpoint, extract a particular value from the API response, and use that value to create a tag in your system.

The script sends a request to the API endpoint and expects the API to respond with a text response. The script then processes this response to extract the required data. This extracted data is then used to create a tag in your system.

If the tag creation is successful, the script returns a success message indicating the name of the tag and the value used. If an error occurs during the tag creation or during the fetch request to the API, the script returns an error message detailing the error.

This script is designed to be run in a Homeyscript environment and assumes that a tag function is available in your environment for tag creation.
*

Then you share the script and the error in the same prompt… And ask Chatgpt to rewrite the script…