Help to get this to Http request

Hi!

I have a ventilation system that has a local web interface(192.168.0.71). When i press a button in that web interface the fan is forced to go on high for two hours.
I have located the code that is used for that and it looks like this:
{$.post(REQUEST_ADDR,GetPostStr([[40202,2]])

Can this one be used with the HTTP Request app or something else?
//K

You can possibly use the built-in Logic card “Make a METHOD request”, but it’s unclear what GetPostStr() does, so please provide a link to the code.

1 Like

https://drive.google.com/file/d/1YwxdoEq-zbfDjY4hHFBfC7y7Mq7jtY-u/view?usp=drivesdk

If I use an modbus client on my phone i can send the command 2 to address 40202. But unfortunately homey does not have modbus client.

You’re going to have to find out what the specific HTTP request is that needs to be made, I’m not going to decipher what that blob of code means :grimacing:

1 Like

:joy: I will keep looking! Thank you!

Hey Robert!
Thank you for guiding me in the right direction!
I went in to Chrome browser and pressed f12 and there I found it when clicking on the button!

1 Like