I have added integration of YoLink devices to HS with mcsMQTT plugin. I have made attempts to get engineering information about the YoLink hub in hopes of providing local integration, but it is clear now that YoLink is not interested in supporting this. What I have done is used their published API for integration via the cloud. Responsiveness is excellent, but does depend upon the internet.
There are two sets of information available from a YoLink device. One is the "response" that describes the device characteristics. The other is the "report" which occurs with a change of status. The only information that anybody would like to use is the status to map into a HS device. The other pieces of information may be of interest, but not needed for HS events etc.


mcsMQTT will report on the Topic starting with YoLink/deviceId where deviceId is the identification being reported by the YoLink device.
At this time I have not attempted control of the YoLink devices. I believe it can be done, but this is a good first step for the things one would actually use YoLink in favor of other technologies. I do not have any YoLink output devices so this would require that I obtain one that could have potential use. Things like thermostats would not fit this category as I would never want to depend upon my internet for this purpose.
The user is responsible to identify a YoLink device with its 32 character QR code. A smartphone QR scanner can provide this. It is entered on the first tab of the TCP page. YoLink and IPRelay share the same tab as a matter of space conservation.

The plugin is now at version 5.17.0.0 with changed files at:
HS3: http://mcsSprinklers.com/MCSMQTT_51700.zip
HS4: http://mcsSprinklers.com/MCSMQTTHS4_51700.zip
If there is interest I can explore adding the ability to control YoLink plugs and other devices in the family.
I have requested information about the LoRa characteristics beyond the 923.3 MHz frequency. With or without it I will attempt to see if I can receive and decode the communication between the sensor and the hub using a ESP32/LoRa. If they did a good engineering job this should be difficult and I will abandon. If they were not concerned with hacks the I may be able to replace the hub with a ESP32/LoRa and eliminate the cloud.
There are two sets of information available from a YoLink device. One is the "response" that describes the device characteristics. The other is the "report" which occurs with a change of status. The only information that anybody would like to use is the status to map into a HS device. The other pieces of information may be of interest, but not needed for HS events etc.
mcsMQTT will report on the Topic starting with YoLink/deviceId where deviceId is the identification being reported by the YoLink device.
At this time I have not attempted control of the YoLink devices. I believe it can be done, but this is a good first step for the things one would actually use YoLink in favor of other technologies. I do not have any YoLink output devices so this would require that I obtain one that could have potential use. Things like thermostats would not fit this category as I would never want to depend upon my internet for this purpose.
The user is responsible to identify a YoLink device with its 32 character QR code. A smartphone QR scanner can provide this. It is entered on the first tab of the TCP page. YoLink and IPRelay share the same tab as a matter of space conservation.
The plugin is now at version 5.17.0.0 with changed files at:
HS3: http://mcsSprinklers.com/MCSMQTT_51700.zip
HS4: http://mcsSprinklers.com/MCSMQTTHS4_51700.zip
If there is interest I can explore adding the ability to control YoLink plugs and other devices in the family.
I have requested information about the LoRa characteristics beyond the 923.3 MHz frequency. With or without it I will attempt to see if I can receive and decode the communication between the sensor and the hub using a ESP32/LoRa. If they did a good engineering job this should be difficult and I will abandon. If they were not concerned with hacks the I may be able to replace the hub with a ESP32/LoRa and eliminate the cloud.
Comment