I've been playing with this driver using a 2020 Frame TV for a bit now. Using Hubitat, everything (all the buttons) works as I would expect. However, I'm having trouble with Hubitat recognizing it was powered on/off via other means (e.g. Remote).
Hoping someone can help me understand the polling, which seemingly would do what I want. From the debug logs, I don't see anything happening every 30 seconds (my power polling interval), and even with the refresh of 5 minutes I'm not seeing the switch updated to on/off. Eventually, after 15-20 minutes, it seems to give up and turn the switch off, but I'd like to understand what is happening to hopefully make it more streamlined. Here are some logs...
I turned off the T.V. using the physical remote at ~11:27. Every 5 minutes thereafter, I would get logs like this...
2021-10-11 11:40:13.067 pm debug[null, 2.0.0]:: getStDeviceData failed. Data not updated. Preference connectST is false
2021-10-11 11:40:12.079 pm debug[null, 2.0.0]:: parseWebsocket: event = d2d_service_message, artMode status = on
2021-10-11 11:40:12.075 pm debug[null, 2.0.0]:: parseWebsocket: [data:{
"id": "3e1d6fd0-e893-4d15-a4de-4caa05595cde",
"event": "artmode_status",
"value": "on",
"target_client_id": "cba70d7-ced7-4f86-9ad2-eb813bc33d83"
}, from:fb55ea61-b6cd-4c21-9bd2-54511aa13bd, event:d2d_service_message]
2021-10-11 11:40:12.041 pm debug[null, 2.0.0]:: sendMessage: function = frameArt | data = {"method":"ms.channel.emit","params":{"data":"{\"request\":\"get_artmode_status\",\"id\":\"3e1d6fd0-e893-4d15-a4de-4caa05595cde\"}","to":"host","event":"art_app_request"}} | connectType = frameArt
2021-10-11 11:40:12.033 pm debug[null, 2.0.0]:: refresh: getting artMode and SmartThings status data
Nothing changed with the switch state until 11:42:02.062 (from Device Logs). Around that time, a different set of debug logs were seen.
2021-10-11 11:42:50.249 pm debug[null, 2.0.0]:: webSocketStatus: Failure. Closing Socket.
2021-10-11 11:41:36.521 pm debug[null, 2.0.0]:: parseWebsocket: event = d2d_service_message
2021-10-11 11:41:36.510 pm debug[null, 2.0.0]:: parseWebsocket: [data:{
"event": "go_to_standby"
}, from:fb55ea61-b6cd-4c21-9bd2-54511aa13bd, event:d2d_service_message]
Any thoughts on what is failing here?