IR Blaster Post Request


#1

1) Give a description of the problem
my web requests seem to be getting changed and are not being received correctly

2) What is the expected behaviour?
(PUT YOUR INFO HERE)
when I make a change on the virtual thermastat it should send a web request POST to my tasmota IR blaster

3) What is happening/not happening?
(PUT YOUR INFO HERE)
the IR Blaster does not seem to receive the command correctly

4) Post a Green Snapshot of the piston!
(UPLOAD YOUR IMAGE HERE)

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

8/11/2020, 9:00:39 PM +357ms
+119ms â•”Subscribing to devices...
+5394ms â•‘Device missing from piston. Loading all from parent (5271ms)
+5554ms â•‘Using Attribute subscription
+5557ms â•‘Subscribing to Office Thermostat - 1.coolingSetpoint...
+5586ms ╚Finished subscribing (5472ms)
+5611ms â•‘Comparison (enum) cool is (string) cool = true (2ms)
+5613ms â•‘Cancelling condition #56's schedules...
+5615ms â•‘Cancelling condition #55's schedules...
+5633ms â•‘Comparison (dynamic) 68.0 is (integer) 61 = false (4ms)
+5637ms â•‘executeStatement: Execution time exceeded by 4336ms, Waiting for 150ms; lastPause: null
+5805ms â•‘Comparison (dynamic) 68.0 is (integer) 62 = false (4ms)
+5828ms â•‘Comparison (dynamic) 68.0 is (integer) 63 = false (7ms)
+5848ms â•‘Comparison (dynamic) 68.0 is (integer) 64 = false (4ms)
+5867ms â•‘Comparison (dynamic) 68.0 is (integer) 65 = false (4ms)
+5887ms â•‘Comparison (dynamic) 68.0 is (integer) 66 = false (4ms)
+5907ms â•‘Comparison (dynamic) 68.0 is (integer) 67 = false (4ms)
+5926ms â•‘Comparison (dynamic) 68.0 is (integer) 68 = true (4ms)
+5929ms â•‘Cancelling condition #82's schedules...
+5931ms â•‘Cancelling condition #81's schedules...
+5951ms â•‘Comparison (dynamic) 68.0 is (integer) 69 = false (3ms)
+5974ms â•‘Comparison (dynamic) 68.0 is (integer) 70 = false (6ms)
+5996ms â•‘Comparison (dynamic) 68.0 is (integer) 71 = false (4ms)
+6018ms â•‘Comparison (dynamic) 68.0 is (integer) 72 = false (4ms)
+6040ms â•‘Comparison (dynamic) 68.0 is (integer) 73 = false (4ms)
+6065ms â•‘Comparison (dynamic) 68.0 is (integer) 74 = false (4ms)
+6087ms â•‘Comparison (dynamic) 68.0 is (integer) 75 = false (4ms)
+6110ms â•‘Comparison (dynamic) 68.0 is (integer) 76 = false (5ms)
+6129ms â•‘Comparison (dynamic) 68.0 is (integer) 77 = false (3ms)
+6148ms â•‘Comparison (dynamic) 68.0 is (integer) 78 = false (4ms)
+6167ms â•‘Comparison (dynamic) 68.0 is (integer) 79 = false (4ms)
+6184ms â•‘Comparison (dynamic) 68.0 is (integer) 80 = false (3ms)
+6201ms â•‘Comparison (dynamic) 68.0 is (integer) 81 = false (3ms)
+6217ms â•‘Comparison (dynamic) 68.0 is (integer) 82 = false (4ms)
+6234ms â•‘Comparison (dynamic) 68.0 is (integer) 83 = false (3ms)
+6251ms â•‘Comparison (dynamic) 68.0 is (integer) 84 = false (3ms)
+6267ms â•‘Comparison (dynamic) 68.0 is (integer) 85 = false (4ms)
+6284ms â•‘Comparison (dynamic) 68.0 is (integer) 86 = false (3ms)
+6301ms â•‘Comparison (dynamic) 68.0 is (integer) 87 = false (4ms)
+6319ms â•‘Comparison (dynamic) 68.0 is (integer) 88 = false (4ms)
+6338ms â•”Starting piston... (v0.3.110.20200716_HE)
+6339ms ╚Piston successfully started (6228ms)

Clear

Full

I am trying to get a virtual thermostat to work i seem to have the integration working for that but cannot seem to get it to send the correct web requests. below is a few full line of what i am trying to send. i have tried adding the {} but that does not seem to fix the problem

http://192.168.1.64/cm?cmnd=IRhvac /{“Vendor”:“Mitsubishi_AC”, “Power”: “1”,“Mode”: “Cool”, “FanSpeed”: “Auto”, “Celsius”: “Off”, “Temp”: “70”/}

http://192.168.1.64/cm?cmnd=IRhvac {“Vendor”:“Mitsubishi_AC”, “Power”: “1”,“Mode”: “Cool”, “FanSpeed”: “Auto”, “Celsius”: “Off”, “Temp”: “70”}

any help is appreciated!


#2

Did you try a trigger instead of a condition…

IF thermostat CHANGES TO X


#3

If you are using an Expression box, I believe that { and } must be escaped with a backslash \
… not a forward slash /

For example:

(also note the single quotes vs the double quotes)


#4

I will give this a try and let you know


#5

Well I changed my code to the \ and still does not work. Interesting fact is it works on webcore from SmartThings but not webcore from Hubitat any reason for that?


#6

I believe Hubitat began with an older version of webCoRE… so the development path branched off at that point.


#7

Do I was finally able to get it working with some help on another post


#8

Thanks for reporting back… Perhaps you can share the solution to help others in the future?


#9

Sorry you bet
I had to %22 for all double quotes. Once I did that it began working below is the post from Hubitat. Also they are not set to async any longer

Screenshot_20200831-161611_webCoRE


split this topic #10

A post was split to a new topic: Modify the RHVAC code to be sent by an IR Tuya with Tasmota