ericboehs / smartthings-roku-tv

MIT License
17 stars 19 forks source link

Device Status not appropriately reflected #2

Open nakenyon opened 6 years ago

nakenyon commented 6 years ago

I'll preface this with the fact that I'm using a Insignia Roku TV and not a TCL, which could potentially be my issue.

The device powers on and powers off appropriately based on the actual status of the device. However, the tile always switches right back to off regardless of whether or not the TV is actually on.

For what it's worth, it doesn't appear the TV is actually returning any information when polled/refreshed.

Any suggestions?

nakenyon commented 6 years ago

Upon further review, the TV returns this when queried on port 8060.

299c0002-0c0b-10c6-80af-000000000000 YW0023771759 5WD672771759 d3cb2058-1cbe-5726-9d4d-89852669dcbe Insignia Insignia NS-55DR710NA17 6303X US 55 5 ATSC true 54:8c:a0:09:a0:ce 00:24:67:26:b9:da ethernet 7.7.0 4154 true en US en_US US/Eastern -240 PowerOn true false true false true true true true false true false 0.5 true true true true true true

This seems to match what the device handler is looking for, but for some reason the information doesn't seem to be converting to display correctly in the smart things app.

Not sure why.

Dave6024 commented 6 years ago

For starters, thanks very much for creating this. I'm seeing identical behavior as reported by nakenyon, and this is a true TCL TV (model TCL 40FS3750). Would love to be able to check the power state as a ST event trigger. Realize this is niche, but hoping you revisit it some day.

ericboehs commented 6 years ago

I'm not sure. Perhaps it's not able to parse the lan hub command. Maybe your Device Network ID isn't right? All the handler is looking for is "PowerOn" to be in the response body for device-info.

ericboehs commented 6 years ago

By the way, I've updated the handler to include buttons for volume, input selection and a couple of example app launchings.

bandidom9 commented 5 years ago

Instead of using the IP HEX of the device try using the MAC as the Device Network Id if with No delimiters and all UPPERCASE