DaveGut / HubitatActive

Hubitat Environment Developments
64 stars 87 forks source link

HVAC - Set Display On/Off #23

Closed andrepintorj closed 2 years ago

andrepintorj commented 2 years ago

Hi Dave, first of all: AMAZING job on writing and sharing these drivers with HE community!

I'd like to know if there are any plans to make a feature to set the display OFF on the HVAC driver, I know its is in beta state but that would be great!

Thank You!

DaveGut commented 2 years ago

Thanks for the kind comment. I will be updating; however, looking at the ST's Samsung HVAC capabilities and data, there is apparently no SmartThings capability/command for display on/off. There is a RemoteControlStatus capability; however, it is specifically "disabled" within the data set.

Dave

andrepintorj commented 2 years ago

Hi Dave, I've seen this on a forum not sure if it helps: https://community.smartthings.com/t/rest-api-for-display-light-on-samsung-windfree-ac/195928/16

But looks like there is an API for that.

DaveGut commented 2 years ago

Reopening. it is an execute command (no api documentation). But your reference gives the api to set.

Dave

DaveGut commented 2 years ago

I have updated the driver (significantly). Changes:

Need confirmation that I did not fully mess up. Your comments are appreciate.

Link to TEST CODE: https://raw.githubusercontent.com/DaveGut/Test-Code/master/Samsung_HVAC.groovy

andrepintorj commented 2 years ago

Hi Dave! I just started testing the new code, and regarding the set light mode feature its not working, unfortunately.

I enabled the debug mode and hope this brings some light: search [dev:1504](http://hubitat/logs?device=1504#pastdev1504)2022-08-01 23:39:50.610 [info](http://hubitat/device/edit/1504)HVAC Quarto B0.2: updateOperation: [thermostatOperatingState:idle] [dev:1504](http://hubitat/logs?device=1504#pastdev1504)2022-08-01 23:39:49.869 [info](http://hubitat/device/edit/1504)HVAC Quarto B0.2: setLight [cmd: Light_On, [status:FAILED, errorMsg:non-HTTP Error]] [dev:1504](http://hubitat/logs?device=1504#pastdev1504)2022-08-01 23:39:49.867 [warn](http://hubitat/device/edit/1504)HVAC Quarto B0.2: deviceCommand: [cmdData:[component:main, capability:execute, command:execute, arguments:[[mode/vs/0:[x.com.samsung.da.options:[Light_On]]]]], respData:[status:FAILED, errorMsg:non-HTTP Error]] [dev:1504](http://hubitat/logs?device=1504#pastdev1504)2022-08-01 23:39:49.864 [warn](http://hubitat/device/edit/1504)HVAC Quarto B0.2: syncPost: [status:ERROR, cmdData:[component:main, capability:execute, command:execute, arguments:[[mode/vs/0:[x.com.samsung.da.options:[Light_On]]]]], httpCode:No Response, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity] [dev:1504](http://hubitat/logs?device=1504#pastdev1504)2022-08-01 23:39:49.188 [debug](http://hubitat/device/edit/1504)HVAC Quarto B0.2: syncPost: [path:/devices/bc0039b0-5ef6-dceb-1fe1-redactedf7fa/commands, cmdData:[component:main, capability:execute, command:execute, arguments:[[mode/vs/0:[x.com.samsung.da.options:[Light_On]]]]]] [dev:1504](http://hubitat/logs?device=1504#pastdev1504)2022-08-01 23:39:48.623 [info](http://hubitat/device/edit/1504)HVAC Quarto B0.2: statusParse: [lightStatus:[null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]] [dev:1504](http://hubitat/logs?device=1504#pastdev1504)2022-08-01 23:39:48.071 [info](http://hubitat/device/edit/1504)HVAC Quarto B0.2: statusParse: [thermostatSetpoint:20.0, lightStatus:[null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]] [dev:1504](http://hubitat/logs?device=1504#pastdev1504)2022-08-01 23:39:47.863 [debug](http://hubitat/device/edit/1504)HVAC Quarto B0.2: asyncGet: [path:/devices/bc0039b0-5ef6-dceb-1fe1-redactedf7fa/status, parse:distResp], statusParse [dev:1504](http://hubitat/logs?device=1504#pastdev1504)2022-08-01 23:39:47.860 [debug](http://hubitat/device/edit/1504)HVAC Quarto B0.2: deviceCommand: [cmdData:[component:main, capability:refresh, command:refresh, arguments:[]], respData:[status:OK, results:[[id:b0c80687-d585-4deb-adf8-redacted0234, status:ACCEPTED]]]] Other than that I'll continue testing the other features, if you need any info to help you debug, please let me know!

andrepintorj commented 2 years ago

Not sure if this helps, but statusParse for light status is now returning this: HVAC Quarto B0.2: statusParse: [lightStatus:[Sleep_0, ArtificialWorking_Off, ComfortAICooling_Off, AiTempChanged_Off, AiTemp_240, OutdoorTemp_75, CoolCapa_26, WarmCapa_26, Light_On, Volume_Mute, OptionCode_56376, ExtendOptionCode_525, RacInfo_None, UpdateAllow_NotAllowed, DurationOn_154, WelcomeCoolingState_Off]]

DaveGut commented 2 years ago

Updated code based on your last post and a review of earlier data. Two corrections:

See how it works. You should see the attribute "lightStatus" change from Light_On to Light_Off. Note: your reference blog indicated that when state was Light_Off, the panel was off.

andrepintorj commented 2 years ago

Yesterday I focused my test on light on/off feature. With the new code today B0.5, I'm completely unable to heat, turn device off, looks like I lost control of the device, not sure if this was happening on B.02 too. Here it is my latest log: [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:31:04.570 [info](http://hubitat/device/edit/1504)HVAC Quarto B0.5: setOnOff: [cmd: null, [status:FAILED, errorMsg:non-HTTP Error]] [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:31:04.567 [warn](http://hubitat/device/edit/1504)HVAC Quarto B0.5: deviceCommand: [cmdData:[component:main, capability:switch, command:null, arguments:[]], respData:[status:FAILED, errorMsg:non-HTTP Error]] [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:31:04.563 [warn](http://hubitat/device/edit/1504)HVAC Quarto B0.5: syncPost: [status:ERROR, cmdData:[component:main, capability:switch, command:null, arguments:[]], httpCode:No Response, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity] [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:31:03.866 [debug](http://hubitat/device/edit/1504)HVAC Quarto B0.5: syncPost: [path:/devices/bc0039b0-5ef6-dceb-1fe1-9885bde9f7fa/commands, cmdData:[component:main, capability:switch, command:null, arguments:[]]] [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:29:58.308 [info](http://hubitat/device/edit/1504)HVAC Quarto B0.5: setThermostatMode: [cmd: heat, [status:OK, results:[[id:10c9fc29-5f48-4873-9714-3fbc426c30f4, status:ACCEPTED]]]] [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:29:58.305 [debug](http://hubitat/device/edit/1504)HVAC Quarto B0.5: asyncGet: [path:/devices/bc0039b0-5ef6-dceb-1fe1-9885bde9f7fa/status, parse:distResp], statusParse [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:29:58.302 [debug](http://hubitat/device/edit/1504)HVAC Quarto B0.5: deviceCommand: [cmdData:[component:main, capability:refresh, command:refresh, arguments:[]], respData:[status:OK, results:[[id:b6c71357-a101-4486-9c6f-2cba53c50825, status:ACCEPTED]]]] [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:29:56.877 [debug](http://hubitat/device/edit/1504)HVAC Quarto B0.5: syncPost: [path:/devices/bc0039b0-5ef6-dceb-1fe1-9885bde9f7fa/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:29:56.874 [debug](http://hubitat/device/edit/1504)HVAC Quarto B0.5: deviceCommand: [cmdData:[component:main, capability:airConditionerMode, command:setAirConditionerMode, arguments:[heat]], respData:[status:OK, results:[[id:10c9fc29-5f48-4873-9714-3fbc426c30f4, status:ACCEPTED]]]] [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:29:56.354 [info](http://hubitat/device/edit/1504)HVAC Quarto B0.5: setOnOff: [cmd: null, [status:FAILED, errorMsg:non-HTTP Error]] [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:29:56.351 [warn](http://hubitat/device/edit/1504)HVAC Quarto B0.5: deviceCommand: [cmdData:[component:main, capability:switch, command:null, arguments:[]], respData:[status:FAILED, errorMsg:non-HTTP Error]] [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:29:56.348 [warn](http://hubitat/device/edit/1504)HVAC Quarto B0.5: syncPost: [status:ERROR, cmdData:[component:main, capability:switch, command:null, arguments:[]], httpCode:No Response, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity] [dev:1504](http://hubitat/logs?device=1504#dev1504)2022-08-02 19:29:55.682 [debug](http://hubitat/device/edit/1504)HVAC Quarto B0.5: syncPost: [path:/devices/bc0039b0-5ef6-dceb-1fe1-9885bde9f7fa/commands, cmdData:[component:main, capability:switch, command:null, arguments:[]]]

DaveGut commented 2 years ago

Updated code at same location. Only two things: fixed off command to not pass null and added a listing of attributes after successful parsing of the results.

"cmdData:[component:main, capability:switch, command:null, arguments:[]]]" Found error in OFF command. All other logs indicate successful (ACCEPTED) commands and appropriate follow-on.

[cmdData:[component:main, capability:airConditionerMode, command:setAirConditionerMode, arguments:[heat]], respData:[status:OK, results:[[id:10c9fc29-5f48-4873-9714-3fbc426c30f4, status:ACCEPTED]]]] Command to mode heat was accepted. This apparently was not a change.

Also, slow down pushing the buttons. It may cause some errors. While testing, allow at least 5 seconds between executing a user command.

One big change is the use of OFF. I think I am handling this properly; however, I only have limited data from users.

Dave

andrepintorj commented 2 years ago

Looks like now I'm able to turn it off and heat, the light management still fails.

The actions performed were: heat, light_off, light_on, off.

[dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:36:27.564 [info](http://hubitat/device/edit/1600)HVAC Sala B0.1: updateOperation: [thermostatSetpoint:null] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:36:27.560 [info](http://hubitat/device/edit/1600)HVAC Sala B0.1: setThermostatSetpoint: [cmd: null, [status:FAILED, errorMsg:non-HTTP Error]] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:36:27.556 [warn](http://hubitat/device/edit/1600)HVAC Sala B0.1: deviceCommand: [cmdData:[component:main, capability:thermostatCoolingSetpoint, command:setCoolingSetpoint, arguments:[null]], respData:[status:FAILED, errorMsg:non-HTTP Error]] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:36:27.551 [warn](http://hubitat/device/edit/1600)HVAC Sala B0.1: syncPost: [status:ERROR, cmdData:[component:main, capability:thermostatCoolingSetpoint, command:setCoolingSetpoint, arguments:[null]], httpCode:No Response, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:36:24.167 [info](http://hubitat/device/edit/1600)HVAC Sala B0.1: off: [cmd: null, [status:OK, results:[[id:757e762f-da9b-446c-9fcc-79247a6a7885, status:ACCEPTED]]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:36:13.956 [info](http://hubitat/device/edit/1600)HVAC Sala B0.1: setLight [cmd: Light_On, [status:FAILED, errorMsg:non-HTTP Error]] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:36:13.952 [warn](http://hubitat/device/edit/1600)HVAC Sala B0.1: deviceCommand: [cmdData:[component:main, capability:execute, command:execute, arguments:[mode/vs/0:[x.com.samsung.da.options:[Light_On]]]], respData:[status:FAILED, errorMsg:non-HTTP Error]] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:36:13.948 [warn](http://hubitat/device/edit/1600)HVAC Sala B0.1: syncPost: [status:ERROR, cmdData:[component:main, capability:execute, command:execute, arguments:[mode/vs/0:[x.com.samsung.da.options:[Light_On]]]], httpCode:No Response, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:35:59.225 [info](http://hubitat/device/edit/1600)HVAC Sala B0.1: setLight [cmd: Light_Off, [status:FAILED, errorMsg:non-HTTP Error]] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:35:59.220 [warn](http://hubitat/device/edit/1600)HVAC Sala B0.1: deviceCommand: [cmdData:[component:main, capability:execute, command:execute, arguments:[mode/vs/0:[x.com.samsung.da.options:[Light_Off]]]], respData:[status:FAILED, errorMsg:non-HTTP Error]] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:35:59.215 [warn](http://hubitat/device/edit/1600)HVAC Sala B0.1: syncPost: [status:ERROR, cmdData:[component:main, capability:execute, command:execute, arguments:[mode/vs/0:[x.com.samsung.da.options:[Light_Off]]]], httpCode:No Response, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:35:40.277 [info](http://hubitat/device/edit/1600)HVAC Sala B0.1: updateOperation: [thermostatSetpoint:null] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:35:40.273 [info](http://hubitat/device/edit/1600)HVAC Sala B0.1: setThermostatSetpoint: [cmd: null, [status:FAILED, errorMsg:non-HTTP Error]] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:35:40.269 [warn](http://hubitat/device/edit/1600)HVAC Sala B0.1: deviceCommand: [cmdData:[component:main, capability:thermostatCoolingSetpoint, command:setCoolingSetpoint, arguments:[null]], respData:[status:FAILED, errorMsg:non-HTTP Error]] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:35:40.264 [warn](http://hubitat/device/edit/1600)HVAC Sala B0.1: syncPost: [status:ERROR, cmdData:[component:main, capability:thermostatCoolingSetpoint, command:setCoolingSetpoint, arguments:[null]], httpCode:No Response, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity] [dev:1600](http://hubitat/logs#dev1600)2022-08-02 20:35:36.857 [info](http://hubitat/device/edit/1600)HVAC Sala B0.1: setThermostatMode: [cmd: heat, [status:OK, results:[[id:7b666702-8ccb-4401-b6c7-54a229a3cd44, status:ACCEPTED]]]]

After this test, I had an idea and disabled the light with the remote control and tried to refresh the device status, the light status was still Light_On.

DaveGut commented 2 years ago

Still see some errors. Will work tomorrow.

DaveGut commented 2 years ago

_"After this test, I had an idea and disabled the light with the remote control and tried to refresh the device status, the light status was still LightOn."
If you look at the link you provided, they state the the status are flip-flopped.

"Ironically, as Ronaldo mentioned above, Light_On = display off Light_Off = display on"

andrepintorj commented 2 years ago

Light Status is confirmed to be working as you described above. Still, it is not possible to set it through the feature. We have a progress here :)

DaveGut commented 2 years ago

Driver has been updated to correct some issues. Location is the same. Testing included updating simulator and running test against simulator.

Made the corrections below and need testing using the User Actions below.

Light_Off / Light_On

thermostatSetpoint

DaveGut commented 2 years ago

Error closing

andrepintorj commented 2 years ago

There you go:

Light_Off / Light_On Scenario: Saved preferences, turned mode Heat, AC display is turned on, lightStatus is On. Toggled panel light, nothing happened.

Logs:

[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:34:29.766 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:turbo, temperature:24.0, switch:on, coolingSetpoint:28, lightStatus:on, thermostatMode:heat, thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:34:25.020 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:34:22.541 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:turbo, temperature:24.0, switch:on, coolingSetpoint:28, lightStatus:on, thermostatMode:heat, thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:34:18.515 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: statusParse: [temperature:24.0]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:34:17.706 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: setLight [newOnOff: off, cmd: Light_On, [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:34:17.702 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:34:16.247 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:34:15.542 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:[[mode/vs/0:[x.com.samsung.da.options:[Light_On]]]]]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:33:29.785 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:turbo, temperature:25.0, switch:on, coolingSetpoint:28, lightStatus:on, thermostatMode:heat, thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:33:25.021 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:33:11.774 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:turbo, temperature:25.0, switch:on, coolingSetpoint:28, lightStatus:on, thermostatMode:heat, thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:33:07.747 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: statusParse: [switch:on, thermostatSetpoint:24.0, thermostatMode:heat, thermostatFanMode:turbo]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:33:06.947 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: setThermostatMode: [cmd: heat, [status:OK, results:[[id:13b14f2b-df2b-41d8-a895-71907e716ec6, status:ACCEPTED]]]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:33:06.943 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:33:05.344 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:33:04.139 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:airConditionerMode, command:setAirConditionerMode, arguments:[heat]]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:33:01.380 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:auto, temperature:25.0, switch:off, coolingSetpoint:28, lightStatus:on, thermostatMode:cool, thermostatSetpoint:28.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:32:56.615 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:32:55.079 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:32:54.868 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:auto, temperature:25.0, switch:off, coolingSetpoint:28, lightStatus:on, thermostatMode:cool, thermostatSetpoint:28.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:32:50.810 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: deviceSetupParse: [tempUnit:C, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off], supportedThermostatFanModes:[auto, low, medium, high, turbo]]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:32:50.091 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], deviceSetup
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:32:50.088 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: updated: [status:OK, stDeviceId:da259855-780e-50aa-9b37-a680e0cc953d, debugLog:true, infoLog:null, pollInterval:1]
[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:32:50.030 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: setPollInterval: 1
andrepintorj commented 2 years ago

setThermostat scenario:

[dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:39:33.480 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:turbo, temperature:24.0, switch:on, coolingSetpoint:28, lightStatus:on, thermostatMode:heat, thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:39:28.709 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: setThermostatMode: [cmd: heat, [status:OK, results:[[id:7d4ad91b-f1e9-43f4-a116-5fe2dbc27016, status:ACCEPTED]]]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:39:28.706 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:39:27.188 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:39:25.967 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:airConditionerMode, command:setAirConditionerMode, arguments:[heat]]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:38:56.822 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:turbo, temperature:24.0, switch:on, coolingSetpoint:28, lightStatus:on, thermostatMode:heat, thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:38:52.024 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:38:50.905 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: setThermostatMode: [cmd: off, [status:OK, results:[[id:a04ec181-f1df-4c0b-b9c3-a1c92da16b80, status:ACCEPTED]]]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:38:50.902 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:38:49.345 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:38:47.128 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:airConditionerMode, command:setAirConditionerMode, arguments:[off]]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:37:56.799 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:turbo, temperature:24.0, switch:on, coolingSetpoint:28, lightStatus:on, thermostatMode:heat, thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:37:52.023 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:37:48.544 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:turbo, temperature:24.0, switch:on, coolingSetpoint:28, lightStatus:on, thermostatMode:heat, thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:37:43.737 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:37:42.179 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:37:41.968 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:turbo, temperature:24.0, switch:on, coolingSetpoint:28, lightStatus:on, thermostatMode:heat, thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:37:37.900 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: deviceSetupParse: [tempUnit:C, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off], supportedThermostatFanModes:[auto, low, medium, high, turbo]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:37:37.191 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], deviceSetup [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:37:37.188 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: updated: [status:OK, stDeviceId:da259855-780e-50aa-9b37-a680e0cc953d, debugLog:true, infoLog:null, pollInterval:1] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:37:37.128 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.56: setPollInterval: 1 [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 16:37:29.800 [info](http://hubitat/device/edit/1600)HVAC Sala B0.56: Attributes: [samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatOperatingState:idle, heatingSetpoint:24, thermostatFanMode:turbo, temperature:24.0, switch:on, coolingSetpoint:28, lightStatus:on, thermostatMode:heat, thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]]

additional information: Set ThermostatMode to "off" command didn't change anything on the AC itself or its status... it didnt beep. All other thermostat modes worked fine and the AC unit beeped while receiving the commands. I wonder if thermostat mode "off" should be removed or make the AC switch to off...

DaveGut commented 2 years ago

First - THANKS for the assist. The next update is available to test the following corrections:

Toggle Panel Light Failure

Thermostat Mode Off

andrepintorj commented 2 years ago

Toggle Panel Failure

The toggle feature still fails. Although I made the test below confirming that the lightStatus is working fine when toggling the display through the remote control. lightStatus is on when display is actually on, and lightStatus is off when display is actually off. [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 22:33:35.773 [info](http://hubitat/device/edit/1600)HVAC Sala B0.60: statusParse: [lightStatus:on] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 22:33:35.021 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.60: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 22:32:39.840 [info](http://hubitat/device/edit/1600)HVAC Sala B0.60: Attributes: [temperature:24.0, thermostatFanMode:turbo, lightStatus:off, heatingSetpoint:24, switch:on, samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off], thermostatMode:heat, coolingSetpoint:28, thermostatOperatingState:idle] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 22:32:35.813 [info](http://hubitat/device/edit/1600)HVAC Sala B0.60: statusParse: [lightStatus:off] The error below is thrown while trying to toggle the light status: [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 22:37:23.126 [info](http://hubitat/device/edit/1600)HVAC Sala B0.60: Attributes: [temperature:24.0, thermostatFanMode:turbo, lightStatus:on, heatingSetpoint:24, switch:on, samsungAutoSetpoint:24, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off], thermostatMode:heat, coolingSetpoint:28, thermostatOperatingState:idle] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 22:37:18.319 [info](http://hubitat/device/edit/1600)HVAC Sala B0.60: setLight [newOnOff: off, cmd: Light_On, [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 22:37:18.315 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.60: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 22:37:16.662 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.60: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs?device=1600#dev1600)2022-08-03 22:37:15.968 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.60: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:[[mode/vs/0:[x.com.samsung.da.options:[Light_On]]]]]]

andrepintorj commented 2 years ago

Thermostat mode "off"

The set thermostat mode to off now turns off the device correctly. The switch changes to off, but the thermostatMode keeps as "heat". If I turn the device on through the heat command, the switch changes to on and the thermostatMode is set to heat. I did more tests using the dry mode and actually the thermostatMode keeps its value when setting thermostat mode to off, in this case it stayed on dry state. Not sure if this is a problem, at least, for me this not an issue since the switch status is displayed correctly. So, if the switch is off then I know that the thermostatMode can be ignored even if it displays heat, dry or any other mode.

DaveGut commented 2 years ago

Mode Off / Heat

Toggle Light Panel

andrepintorj commented 2 years ago

Mode Off / Heat

Works as you designed flawlessly!

Toggle Light Panel

Still doesn't work.. Light still keeps on all the time. Please find logs below:

2022-08-04 14:14:57.963 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:50.961 [trace](http://hubitat/device/edit/1600)JJ[cmdData: [component:main, capability:execute, command:execute, arguments:[mode/vs/0, "{x.com.samsung.da.options:[Light_On]}"]], [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:50.957 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:49.396 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:48.729 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:[mode/vs/0, "{x.com.samsung.da.options:[Light_On]}"]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:48.725 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:41.724 [trace](http://hubitat/device/edit/1600)II [cmdData: [component:main, capability:execute, command:execute, arguments:[mode/vs/0, "{x.com.samsung.da.options:[Light_Off]}"]], [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:41.720 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:40.179 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:39.518 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:[mode/vs/0, "{x.com.samsung.da.options:[Light_Off]}"]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:39.514 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:32.513 [trace](http://hubitat/device/edit/1600)HH [cmdData: [component:main, capability:execute, command:execute, arguments:"[mode/vs/0,{x.com.samsung.da.options:[Light_On]}]"], [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:32.509 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:30.956 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:30.291 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:"[mode/vs/0,{x.com.samsung.da.options:[Light_On]}]"]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:30.287 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:23.286 [trace](http://hubitat/device/edit/1600)GG [cmdData: [component:main, capability:execute, command:execute, arguments:"[mode/vs/0,{x.com.samsung.da.options:[Light_Off]}]"], [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:23.282 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:21.745 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:21.077 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:"[mode/vs/0,{x.com.samsung.da.options:[Light_Off]}]"]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:21.073 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:14.072 [trace](http://hubitat/device/edit/1600)FF [cmdData: [component:main, capability:execute, command:execute, arguments:[mode/vs/0,{x.com.samsung.da.options:[Light_On]}]], [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:14.068 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:12.568 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:11.897 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:[mode/vs/0,{x.com.samsung.da.options:[Light_On]}]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:11.893 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:04.889 [trace](http://hubitat/device/edit/1600)EE [cmdData: [component:main, capability:execute, command:execute, arguments:[mode/vs/0,{x.com.samsung.da.options:[Light_Off]}]], [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:04.873 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:03.320 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:02.649 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:[mode/vs/0,{x.com.samsung.da.options:[Light_Off]}]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:14:02.645 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:55.644 [trace](http://hubitat/device/edit/1600)DD [cmdData: [component:main, capability:execute, command:execute, arguments:[mode/vs/0:[x.com.samsung.da.options:[Light_On]]]], [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:55.639 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:53.984 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:53.335 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:[mode/vs/0:[x.com.samsung.da.options:[Light_On]]]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:53.331 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:46.329 [trace](http://hubitat/device/edit/1600)CC [cmdData: [component:main, capability:execute, command:execute, arguments:[mode/vs/0:[x.com.samsung.da.options:[Light_Off]]]], [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:46.325 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:44.830 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:44.133 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:[mode/vs/0:[x.com.samsung.da.options:[Light_Off]]]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:44.129 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:37.128 [trace](http://hubitat/device/edit/1600)BB [cmdData: [component:main, capability:execute, command:execute, arguments:[[mode/vs/0:[x.com.samsung.da.options:[Light_On]]]]], [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:37.123 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:35.568 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:34.904 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:[[mode/vs/0:[x.com.samsung.da.options:[Light_On]]]]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:34.900 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:27.899 [trace](http://hubitat/device/edit/1600)AA [cmdData: [component:main, capability:execute, command:execute, arguments:[[mode/vs/0:[x.com.samsung.da.options:[Light_Off]]]]], [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:27.894 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:26.339 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:refresh, command:refresh, arguments:[]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:25.671 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: syncPost: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/commands, cmdData:[component:main, capability:execute, command:execute, arguments:[[mode/vs/0:[x.com.samsung.da.options:[Light_Off]]]]]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:25.667 [info](http://hubitat/device/edit/1600)HVAC Sala B0.62: Debug logging is false. [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:21.078 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: Attributes: [thermostatFanMode:low, thermostatOperatingState:wind, temperature:25.0, samsungAutoSetpoint:24, heatingSetpoint:24, thermostatMode:wind, lightStatus:on, coolingSetpoint:28, supportedThermostatFanModes:[auto, low, medium, high, turbo], thermostatSetpoint:24.0, supportedThermostatModes:[auto, cool, dry, wind, heat, samsungAuto, off]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 14:13:21.021 [debug](http://hubitat/device/edit/1600)HVAC Sala B0.62: asyncGet: [path:/devices/da259855-780e-50aa-9b37-a680e0cc953d/status, parse:distResp], statusParse

DaveGut commented 2 years ago

New version. Going back to very basic, text code (not parsed JSON). May work. Pre-tested on a command with arguments on my Samsung TV and the general format worked.

Testing

andrepintorj commented 2 years ago

Hi Dave, still no luck operating the light. Maybe wrong position of the curly braces? Please find the logs below:

2022-08-04 17:39:30.393 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 17:39:20.391 [warn](http://hubitat/device/edit/1600)DD [{"commands":[{"component": "main","capability": "execute","command": "execute","arguments": ["mode/vs/0",{"x.com.samsung.da.options":[Light_On}]}]}: [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 17:39:19.706 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 17:39:09.704 [warn](http://hubitat/device/edit/1600)CC [{"commands":[{"component": "main","capability": "execute","command": "execute","arguments": ["mode/vs/0",{"x.com.samsung.da.options":[Light_Off}]}]}: [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 17:39:09.024 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 17:38:59.020 [warn](http://hubitat/device/edit/1600)BB [{"commands":[{"component": "main","capability": "execute","command": "execute","arguments": ["mode/vs/0",{"x.com.samsung.da.options":["Light_On"}]}]}: [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 17:38:58.359 [trace](http://hubitat/device/edit/1600)on [dev:1600](http://hubitat/logs#dev1600)2022-08-04 17:38:48.357 [warn](http://hubitat/device/edit/1600)AA [{"commands":[{"component": "main","capability": "execute","command": "execute","arguments": ["mode/vs/0",{"x.com.samsung.da.options":["Light_Off"}]}]}: [status:FAILED, httpCode:Timeout, errorMsg:groovyx.net.http.HttpResponseException: status code: 422, reason phrase: Unprocessable Entity]] [dev:1600](http://hubitat/logs#dev1600)2022-08-04 17:38:47.682 [info](http://hubitat/device/edit/1600)HVAC Sala B0.64: Debug logging is false.

DaveGut commented 2 years ago

Hate brackets. Always give me a headache. Found some errors and corrected. I DO NOT NEED LOGS unless it works!!!!! Same instructions.

andrepintorj commented 2 years ago

It works!!!!!! Amazing, Dave! Good job! :D

andrepintorj commented 2 years ago

Btw, the commands that worked are the AA and BB ones ;)

DaveGut commented 2 years ago

YEA. Give me a few days to integrate the solution into the code. The test code is inelegant; however, I will figure a way to make this sow's ear look like a silk purse.

DaveGut commented 2 years ago

I have completed a final version for your review. Same location. Will update formal location later.

First off, I apologize that I can't translate to Portuguese. Never picked to language up during a lot of trips there earlier in my career.

Second. Thanks for the assist. This has allowed me to push the driver to a good design. It also allowed me to develop a solid simulator capability for this and other drivers.

NOTES on Driver Operations with Samsung HVAC

Operations are really a hybrid approach using a standard thermostat operation as the baseline then adding the capability to access the Samsung HVAC Auto mode separately. This allows full use of the Hubitat dashboard as well as other Hubitat thermostat scheduling tools.

Notes on Operation

andrepintorj commented 2 years ago

Wow! it looks pretty nice using the thermostat template! It's working as expected from your definition :)

andrepintorj commented 2 years ago

Helping you on testing the driver was a pleasure! As a developer myself, I need to spare some time to code in groovy and learn how to write drivers myself but lately it seems impossible to do so since I have to kids to play during my free time. It was a pleasure help you develop this to this level and I'm sure this driver will be used a lot worldwide.

DaveGut commented 2 years ago

I enjoyed cleaning things up.

DaveGut commented 1 year ago

Great result. Minor code changes to reflect off mode, the Hubitat design ♥️

Dave Gutheinz


From: André Pinto @.> Sent: Wednesday, August 3, 2022 8:46:58 PM To: DaveGut/HubitatActive @.> Cc: David Gutheinz @.>; State change @.> Subject: Re: [DaveGut/HubitatActive] HVAC - Set Display On/Off (Issue #23)

Thermostat mode "off"

The set thermostat mode to off now turns off the device correctly. The switch changes to off, but the thermostatMode keeps as "heat". If I turn the device through the heat command, the switch changes to on and the thermostatMode is set to heat. I did more tests using the dry mode and actually the thermostat mode keeps its value when setting thermostat mode to off. Not sure if this is a problem, at least, for me its not an issue since the switch status is displayed correctly. So, if the switch is off then I know that the thermostatMode can be ignored even if it displays heat, dry or any other mode.

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FDaveGut%2FHubitatActive%2Fissues%2F23%23issuecomment-1204664608&data=05%7C01%7C%7C99c67bfd9f7c47a0d01308da75bb38b4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637951744220331825%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9kZ2raBua4RVWV9OiZSY8%2FV%2BK2KhQiI3bVEkgCJ4oLs%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGAI4M4UERSDR332SUJS3HDVXMOJFANCNFSM5ZJM4WVQ&data=05%7C01%7C%7C99c67bfd9f7c47a0d01308da75bb38b4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637951744220488059%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6o%2BzuBcNsxXd0zHGWdySX2u9kehll6ytQfVSVeG10FE%3D&reserved=0. You are receiving this because you modified the open/close state.Message ID: @.***>