Hi Raymon,
I know it's a bit odd that you should use the
DeviceId for topic subscriptions, while topic publishing uses the
ReferenceId. This seems inconsistent, but is due to the fact that both Id's are being used within the topic name and the
DeviceId can contain characters which are not allowed (or are reserved) within a MQTT namespace (such as the
#, and
+ characters ).
Of course, if you like, this behavior can be changed quite easily in a future version of the plugin. For example by using a switch in the configuration file:
UseReferenceIdInTopic = false, which will use the
DeviceId instead of the
ReferenceId in the (auto generated) published topic name.
Please also be aware that this version of the plugin does not catch all the status changes. It only catches the status changes of devices which have their
Supports Status property set (true). I've noticed that many (third party) scripts and plugins create devices without this property set (false). This ends up HomeSeer ignoring the device (and my plugin also) when it changes its status (or value)... I'm currently investigating an alternative event mechanism which should be able the detect 99% of the device status changes. Now, all I need is some free time

Regards,
Ronald