Shims SetUp

Posted on
Sun Feb 16, 2020 9:58 am
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Shims SetUp

JSON - typo

Posted on
Sun Feb 16, 2020 9:58 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Shims SetUp

What kind of Generator/Interface is this? Is the MQTT API documented anywhere?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 16, 2020 10:00 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Shims SetUp

farberm wrote:
JSON - typo


Oh, if you can have it send actual JSON instead of Raw, you might be able to get this to work. Please just post the output from the MQTT monitoring tool first. Skip all the other screenshots.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 16, 2020 10:08 am
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Shims SetUp

On the MQTT device (the generator) I have the option to return numeric values in the Status topic as a JSON string which can be converted to an object with integer or float values.

When that is turned on some topics have value included but not the Ambient Temperature Sensor, but I get values for Voltage....

When I turn this option off I get no values for any topics just what you see below.
Attachments
Screen Shot 2020-02-16 at 11.04.00 AM.png
Screen Shot 2020-02-16 at 11.04.00 AM.png (116.5 KiB) Viewed 2172 times

Posted on
Sun Feb 16, 2020 10:09 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Shims SetUp

Post the output with the option on.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 16, 2020 10:15 am
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Shims SetUp

Here is is with it on. Some of the topics have value... Specifically Utility Voltage/value
Attachments
Screen Shot 2020-02-16 at 11.14.35 AM.png
Screen Shot 2020-02-16 at 11.14.35 AM.png (98.21 KiB) Viewed 2184 times

Posted on
Sun Feb 16, 2020 10:19 am
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Shims SetUp

Also if I add "Match: value" to the topic component in the temperature trigger then I never see an event in the event log suggesting that the trigger never occurs... therefore no value for that topic. If I stop sending JSON as value then the other triggers never occur also suggestion that it stops sending values. I guess it is only sending values for certain topics?

Posted on
Sun Feb 16, 2020 10:20 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Shims SetUp

What's the EXACT wording on that option? Better yet, post a screen shot of the configuration page.

What's the model of this device? Is there a link to the configuration options?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 16, 2020 10:24 am
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Shims SetUp

here is the screenshot. I can ask the programmer to see if they can be included. The device is a Generac Generator
Attachments
Screen Shot 2020-02-16 at 11.04.40 AM.png
Screen Shot 2020-02-16 at 11.04.40 AM.png (46.85 KiB) Viewed 2177 times

Posted on
Sun Feb 16, 2020 10:27 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Shims SetUp

Third and last time: What device is this? Manufacturer? Model? Website?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 16, 2020 10:38 am
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Shims SetUp

Sorry for not responding with the clearest of answers.
Specifics:
The device that I am connecting to is a Generac Generator Evolution 2 Model 22KW. I have a Raspberry Pi connected to it running a program that interfaces with it to collect data and notify me when the generator is running etc.

The Github project that detailes the interface to the generator is https://github.com/jgyates/genmon.

I have been searching thru the github issue pages for additional information.

This is all I have found so far.

If you enabled the Genmon MQTT option on the Add-Ons page "JSON for Numerics" it will return numeric values instead of strings for all numeric items on the Status page. You can also export the numeric data in JSON format with the command "generator: status_num_json". To issue the command you can either use the myclient.py python library or issue a socket call to port 9082, sending the text "generator: status_num_json" .

Not sure if that would help however.

The specific topic I am reading is this one : https://github.com/jgyates/genmon/issues/223 among others. But not found an answer yet.

Posted on
Sun Feb 16, 2020 10:47 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Shims SetUp

Sounds like to get actual JSON you need to do the command "generator: status_num_json" thing. That option is misleading because that just changes the value fields in the JSON output from string to numbers, but doesn't actually turn on JSON output.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 16, 2020 10:54 am
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Shims SetUp

Thanks for all your help. I will start to work with the genmon programmer to see what we can come up with. Appreciate your time and willingness to help.

Posted on
Sun Feb 16, 2020 12:52 pm
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Shims SetUp

The developer for genmon will try and add values for the other topics in the next few updates. Thanks for your help

Posted on
Sun Feb 16, 2020 12:53 pm
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Shims SetUp

farberm wrote:
The developer for genmon will try and add values for the other topics in the next few updates. Thanks for your help


Sounds like a plan.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Who is online

Users browsing this forum: No registered users and 1 guest