Try this:
- Open the Drivers code list and edit the YoLink MQTT Listener Device driver code.
- Locate the "...>>>> MQTT ROUTINES <<<<..." section
- Locate the "def establish_MQTT_connection(mqtt_ID) {" routine
- Change the line:
interfaces.mqtt.connect("tcp://api.yosmart.com:8003","${mqtt_ID}",authToken,null)
to:
interfaces.mqtt.connect("tcp://api.yosmart.com:8003","${mqtt_ID}",authToken,null,cleanSession: 1) - Save the code.
- Open the "YoLink MQTT Listener" device and click on the "Initialize" button.
See if the problem still happens. It so:
-
Please send me the full text of the "Unable to locate target device" error message.
-
Collect diagnostic data for me:
-
Run the YoLink Device Service app until you get to the page "YoLink™ Device Service Diagnostics"
-
Set Enable collection of diagnostic data to local file to "True and click "Next"
-
You should get the "Processing Complete" page with the message:
Diagnostic data has been collected. Copy and Paste the text into a PM message to the developer.
View the file at YoLink_Service_Diagnostics.txt -
Click on the "YoLink_Service_Diagnostics.txt" link to display the diagnostic data collected. (This is a local file on the Hubitat, so don't send me the link)
-
Highlight all the collected data by pressing Ctrl+A and then press Ctrl+C to copy it to the clipboard.
-
Open a new email addressed to barcussoftware@gmail.com
-
Press Ctrl+V to paste the text into the body of the email and send it to me.
Thanks.