Another StatusPattern help request
Closed this issue · 1 comments
ravedoglv commented
First off, I’ve never gotten RegEx so I’m hoping for some help. I have a device that handles a bunch of relays and sensors. I’m trying to figure out a correct status pattern
here is the result when you query the device:
<datavalues>
<digitalInput1>1</digitalInput1>
<digitalInput2>1</digitalInput2>
<digitalInput3>0</digitalInput3>
<digitalInput4>0</digitalInput4>
<relay2>0</relay2>
<relay3>0</relay3>
<relay4>0</relay4>
<vin>11.9</vin>
<register1>0</register1>
<relay5>0</relay5>
<relay6>0</relay6>
<relay7>0</relay7>
<relay8>0</relay8>
<oneWireSensor1>73.3</oneWireSensor1>
<oneWireSensor2>87.6</oneWireSensor2>
<oneWireSensor3>66.1</oneWireSensor3>
<utcTime>1635793003</utcTime>
<timezoneOffset>-25200</timezoneOffset>
<downloadSettings>1</downloadSettings>
</datavalues>
I’m looking to get the status for say relay5…
could anyone help me with the correct status pattern for this? Thank you so much.
ravedoglv commented
Looks like I can’t read. It’s simple, if you look for a status pattern you define, in my case
<relay5>1
then that is considered on, doesn’t find it, then it’s off. It works brilliantly