MiMo2+ polling ADC codes for pressure sensing

Posted on
Thu Mar 02, 2023 1:35 pm
rjeffl offline
Posts: 21
Joined: Sep 28, 2013
Location: Otto, NC

MiMo2+ polling ADC codes for pressure sensing

I have a pair of linear 5v pressure sensors that I need to monitor for a water purification system.
I also have a MiMo2+ available, so my plan is to use the MiMo2 analog inputs with threshold detection disabled to monitor the outputs of the two linear analog sensors.

Unfortunately though the MiMo2+ supports periodic sends of ADC data from SIG1 and SIG2, the minimum interval is 30s, which is too long for the system to take meaningful action in the event of pressure too high or low events. Accordingly, my plan is to disable the periodic send function and poll at a smaller interval of say 2-3 seconds.

I can set up a schedule to issue a status poll every 2-3 seconds, but this seems to clutter the log as I have not found a way to inhibit log posting for this device.
Since I already have a python script created to convert the ADC codes to PSI pressure values, my thought is that I could perform the status read function from within python script.

Given that my indigo python skills are still in their infancy, can someone suggest a python code syntax that would be use to read the ADC status from the MiMo2+ device?
My thought was something like..
adc_code = indigo.devices[123456789].states #where 123456789 is the device ID of the MiMo2+ SIG1 input device

Thanks.

Jeff

Posted on
Fri Mar 03, 2023 4:48 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: MiMo2+ polling ADC codes for pressure sensing

I don't know that trying to do the logic in a script is going to help – it will still results in Event Log lines showing the polling of the device. That is, I think you don't just want to read the state out of that Indigo device, but you want to poll the device to get the current state info (requiring Z-Wave commands) first then read/compare the appropriate device state. I don't believe there is away around the Event Log clutter at this point, but we have adding more granular control over logging on our feature request list.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests