[ST Edge] Web Requestor: a driver to issue local POST and GET HTTP requests

Yes, I might be able to provide that as an option. Not sure when I can get to it, but will try within the next couple of weeks.

1 Like

values[0][0]

You need to have this in your settings field for the headers:

Authorization=Basic ZGVtbzpwQDU1dzByZA==

However, before you try this again, confirm that you have Driver Version 2023-01-14T01:14:29.281734849 installed on your hub. This has a minor fix that you’ll need for that to work.

Let me know if you have any more problems.

1 Like

Yeah thought that too, doesnt pull the value tho,

I’ll try to recreate it here.

1 Like

See this Rule: Integration Solutions using MQTT - #193 by TapioX

Alternatively, if I add the option to display the extracted value on the dashboard, would that be sufficient?

So what I do now is just pump it into a virtual temp time so I can display it in actiontiles

Do you think its possible to use the rule engine to take the extracted value and put it into a virtual temp tile?

What can be done using Rules API
Look at this post
[ST Edge] Web Requestor: a driver to issue local POST and GET HTTP requests - Devices & Integrations / Community Created Device Types - SmartThings Community

I’ve extracted a value which is a number. Can I build a rule that checks whether this value is less than a specific number??

Yes

You can use normal APP automations or Rules API.

I don’t have this driver so I can’t make for you an example.

I can’t work it out. As far as I can tell in an automation for this driver you can only check if the extracted value equals a certain string.

Can’t see how I can check that it is less than a value.

I don’t want to use the rules api

There is a type problem when this GET HTTP type is a string and even though the string is a number.
@TAustin can tell more about driver details.

Yes unfortunately right now the extracted value is always a string type. I will have to add a second number- type field for numeric values and then the automation would work.

I think this is important so will try to have it done within a few days. Thanks for bringing this up!

1 Like

That would be awesome. Thanks.

I wonder if something else needs updating to be able to use the value the way I want to.

In the IF section of a routine, if I select my web Req device it gives me these options…

And if I get extracted value I get this…

I think that means I can only search for an exact match. Not sure how I would set the routine to trigger if the value was LESS THAN a selected value.

Because that Extracted key value field is a string, all you can do is type in something that would be tested for a match.

Once I add a numeric field, it will allow you to not only provide a value to test for, but also ‘matches, equal or below, equal or above, range’ comparison options.

2 Likes

I’m converting the text result into a number in SharpTools using the round() expression. Having the result automatically in a numeric field would be great.

1 Like

Thanks, it works now :slight_smile: It was probably the driver version that was not up to date on my device.

I’ve got this done and am testing now. Should have it out soon.

There indeed was a problem with the json key parsing code in the driver. Have it fixed and testing now.