Michael:
First let me say you have really outdone yourself, again, with the plugin. I was a long time user of your mcsXAP programs and this has that same look and feel.
I just started using mcsMQTT (V5.1.1.7) over the weekend.
I have a Raspberry Pi running JGYates's GENMON python scripts to monitor my Generac 22kW generator. This comes pre-built with an add-on for MQTT and that is how I plan on getting the generator status information into HS3.
As of this morning I have MQTT running on HS and genmon program and passing data from the Pi to HS3. I am still experimenting but have several HS devices set up. The genmon MQTT program has the option to use JSON for numeric values and I have that enabled.
So here's a sample of my HS devices:
For the first device, the battery voltage I manually went to the device management page in HS3 and changed the name of this device to "Battery voltage". I also manually added the suffix "V" to show the unt. The second device has not been touched and this leads me to my question:
Is there a way to automatically parse the payload and change the name of the device within mcsMQTT. Looking at the address of the 2nd device, you'll see "generator/Status/Line/Utility Voltage/value". The name of this device should be "Utility Voltage". In addition to naming the device, I get the type and unit definition from the JSON decode which is shown below for the 2nd device shown above.
What would really be nice is if i could automatically set the name and add the "unit" as a suffix to the device so that, for instance, the device with reference 511 would end up looking like the device ref 512 where I manually changed the device in the device management page of HS3.
I have read your PDF and perhaps I missed it, but did not find any reference to doing this particular operation on subscribed data.
First let me say you have really outdone yourself, again, with the plugin. I was a long time user of your mcsXAP programs and this has that same look and feel.
I just started using mcsMQTT (V5.1.1.7) over the weekend.
I have a Raspberry Pi running JGYates's GENMON python scripts to monitor my Generac 22kW generator. This comes pre-built with an add-on for MQTT and that is how I plan on getting the generator status information into HS3.
As of this morning I have MQTT running on HS and genmon program and passing data from the Pi to HS3. I am still experimenting but have several HS devices set up. The genmon MQTT program has the option to use JSON for numeric values and I have that enabled.
So here's a sample of my HS devices:
For the first device, the battery voltage I manually went to the device management page in HS3 and changed the name of this device to "Battery voltage". I also manually added the suffix "V" to show the unt. The second device has not been touched and this leads me to my question:
Is there a way to automatically parse the payload and change the name of the device within mcsMQTT. Looking at the address of the 2nd device, you'll see "generator/Status/Line/Utility Voltage/value". The name of this device should be "Utility Voltage". In addition to naming the device, I get the type and unit definition from the JSON decode which is shown below for the 2nd device shown above.
What would really be nice is if i could automatically set the name and add the "unit" as a suffix to the device so that, for instance, the device with reference 511 would end up looking like the device ref 512 where I manually changed the device in the device management page of HS3.
I have read your PDF and perhaps I missed it, but did not find any reference to doing this particular operation on subscribed data.
Comment