HTTP Get to change a value - no return value needed

I want to be able to change the profile setting in Blue Iris from HABPanel. I can change that to 6 for example from Postman with stmt shown below   

So, I try to make that happen from a rule - Lots of ways but this is best so far but no joy.

rule "OH teaching me with a stick"
	Item ohProfileNum changed
    var String str1
    var String str2
    // str1 = ("")
    str2 = ohProfileNum.state.toString
    sendHttpGetRequest("" + str2)

This is what I see in the log.

2020-04-13 14:53:21.859 [ome.event.ItemCommandEvent] - Item 'ohProfileNum' received command 6

2020-04-13 14:53:21.872 [vent.ItemStateChangedEvent] - ohProfileNum changed from 4 to 6

==> /var/log/openhab2/openhab.log <==

2020-04-13 14:53:21.883 [INFO ] [admin?user=user&pw=password&profile=] - 6

You’re missing the = after &profile in the request

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.