Screen off state not reflecting 1st time
Run into a minor issue with screen control service - the switch that's created does work in turning the screen on and off, however when I turn the switch off in HomeKit the switch stays on even though the screen is off. If I turn the switch off again in HomeKit the switch turns off OK (and the screen stays off). If I then turn the switch on again in HomeKit, the screen turns on as expected. It's every time I turn off the screen I have to press the switch in HomeKit twice.

I also tried this in the Homebridge interface and the switch works as expected, only having to press it once when turning the screen off.

I turned on debug logging (and the extra for the plugin), here's the output is below. My TV is running webOSTV 6.0 with firmware revision 03.20.12. I have only tried it today, so I can't say if it worked previously with earlier firmware versions.



```[29/09/2021, 11:11:56] [webostv] [Lounge TV HB] power service - turnOffScreen requested. 
[29/09/2021, 11:11:56] [webostv] [Lounge TV HB] Message from TV 

[29/09/2021, 11:11:56] [webostv] [Lounge TV HB]  {
  type: 'utf8',
  utf8Data: '{"type":"response","id":"926babc00007","payload":{"returnValue":true,"state":"Screen Off"}}'
}
[29/09/2021, 11:11:56] [webostv] [Lounge TV HB] {
  "returnValue": true,
  "state": "Screen Off"
}
[29/09/2021, 11:11:56] [webostv] [Lounge TV HB] TV power status changed, status:  state: Screen Off,
[29/09/2021, 11:11:56] [webostv] [Lounge TV HB] Message from TV 

[29/09/2021, 11:11:56] [webostv] [Lounge TV HB]  {
  type: 'utf8',
  utf8Data: '{"type":"response","id":"926babc0000f","payload":{"returnValue":true,"state":"Screen Off"}}'
}
[29/09/2021, 11:11:56] [webostv] [Lounge TV HB] {
  "returnValue": true,
  "state": "Screen Off"
}
[29/09/2021, 11:12:03] [webostv] [Lounge TV HB] power service - turnOffScreen requested. 
[29/09/2021, 11:12:03] [webostv] [Lounge TV HB] Message from TV 

[29/09/2021, 11:12:03] [webostv] [Lounge TV HB]  {
  type: 'utf8',
  utf8Data: `{"type":"error","id":"926babc00010","error":"500 Application error","payload":{"returnValue":false,"state":"Screen Off","errorCode":"-101","errorText":"The current state must be 'Active'"}}`
}
[29/09/2021, 11:12:03] [webostv] [Lounge TV HB] Request failed. Error text: The current state must be 'Active', Error code: -101
[29/09/2021, 11:12:10] [webostv] [Lounge TV HB] power service - turnOnScreen requested. 
[29/09/2021, 11:12:10] [webostv] [Lounge TV HB] Message from TV 

[29/09/2021, 11:12:10] [webostv] [Lounge TV HB]  {
  type: 'utf8',
  utf8Data: '{"type":"response","id":"926babc00007","payload":{"returnValue":true,"state":"Screen Off","processing":"Screen On"}}'
}
[29/09/2021, 11:12:10] [webostv] [Lounge TV HB] {
  "returnValue": true,
  "state": "Screen Off",
  "processing": "Screen On"
}
[29/09/2021, 11:12:10] [webostv] [Lounge TV HB] TV power status changed, status:  state: Screen Off, processing: Screen On,
[29/09/2021, 11:12:10] [webostv] [Lounge TV HB] Message from TV 

[29/09/2021, 11:12:10] [webostv] [Lounge TV HB]  {
  type: 'utf8',
  utf8Data: '{"type":"response","id":"926babc00011","payload":{"returnValue":true,"state":"Active"}}'
}
[29/09/2021, 11:12:10] [webostv] [Lounge TV HB] {
  "returnValue": true,
  "state": "Active"
}
[29/09/2021, 11:12:10] [webostv] [Lounge TV HB] Message from TV 

[29/09/2021, 11:12:10] [webostv] [Lounge TV HB]  {
  type: 'utf8',
  utf8Data: '{"type":"response","id":"926babc00007","payload":{"returnValue":true,"state":"Active"}}'
}
[29/09/2021, 11:12:10] [webostv] [Lounge TV HB] {
  "returnValue": true,
  "state": "Active"
}
[29/09/2021, 11:12:10] [webostv] [Lounge TV HB] TV power status changed, status:  state: Active,
[29/09/2021, 11:12:16] [webostv] [Lounge TV HB] power service - turnOffScreen requested. 
[29/09/2021, 11:12:16] [webostv] [Lounge TV HB] Message from TV 

[29/09/2021, 11:12:16] [webostv] [Lounge TV HB]  {
  type: 'utf8',
  utf8Data: '{"type":"response","id":"926babc00007","payload":{"returnValue":true,"state":"Screen Off"}}'
}
[29/09/2021, 11:12:16] [webostv] [Lounge TV HB] {
  "returnValue": true,
  "state": "Screen Off"
}
[29/09/2021, 11:12:16] [webostv] [Lounge TV HB] TV power status changed, status:  state: Screen Off,
[29/09/2021, 11:12:16] [webostv] [Lounge TV HB] Message from TV 

[29/09/2021, 11:12:16] [webostv] [Lounge TV HB]  {
  type: 'utf8',
  utf8Data: '{"type":"response","id":"926babc00012","payload":{"returnValue":true,"state":"Screen Off"}}'
}
[29/09/2021, 11:12:16] [webostv] [Lounge TV HB] {
  "returnValue": true,
  "state": "Screen Off"
}
[29/09/2021, 11:12:23] [webostv] [Lounge TV HB] power service - turnOffScreen requested. 
[29/09/2021, 11:12:23] [webostv] [Lounge TV HB] Message from TV 
[29/09/2021, 11:12:23] [webostv] [Lounge TV HB]  {
  type: 'utf8',
  utf8Data: `{"type":"error","id":"926babc00013","error":"500 Application error","payload":{"returnValue":false,"state":"Screen Off","errorCode":"-101","errorText":"The current state must be 'Active'"}}`
}
[29/09/2021, 11:12:23] [webostv] [Lounge TV HB] Request failed. Error text: The current state must be 'Active', Error code: -101

```