Samsung Hubitat TV Integration (2016 and later)

Please see the instructions at this post.

Dave

@djgutheinz Want to thank you for this. I was piecing crap together, got some hodge podge http requests -- and then I found this, and IT JUST WORKED .. thank you

Got connected, and things seemed to be working until I tried it today. It seems the NIC is in deep sleep. I Tried Boot me up scottie and an am not sure how to make that work in a rule. I tried Ping to the IP address and it doesn't repsond. I read earlier in this thread that this has WOL. I saw in the Setting for the device that there is a setting called Alternate MAC WOL. I tried turning that on and still nothing.

Any assitance would be welcome. The TV is a 2018 I think. The model is QN55Q65FM

The on command in the driver sends a WOL. The only other thing is to use the manufacturer's remote to force the restart. Then try later and see of the WOL works.

Did you find a solution for the dishwasher?

Did his get fixed? I am experiencing the same thing. If not, here are my logs:

dev:3792022-01-09 12:53:18.336 pm errorgroovyx.net.http.ResponseParseException: status code: 403, reason phrase: Forbidden on line 470 (method contUpdate)
dev:3792022-01-09 12:53:17.841 pm info[null, 2.0.0]:: getDeviceData: Updated Device Data.
dev:3792022-01-09 12:53:17.834 pm info[null, 2.0.0]:: getDeviceData: year = 2020, frameTv = true, tokenSupport = true
dev:3792022-01-09 12:53:12.828 pm warn[null, 2.0.0]:: parseUpnp: Unhandled return. resp =
[mac:XXXX, XXXX, port:23ed, headers:[HTTP/1.1 412 Precondition Failed:null, 
CONTENT-LENGTH:0], body:null, header:HTTP/1.1 412 Precondition Failed
CONTENT-LENGTH: 0
]
dev:3792022-01-09 12:53:12.695 pm debug[null, 2.0.0]:: upnpUnsubscribe: rcSid = 
dev:3792022-01-09 12:53:12.688 pm info[null, 2.0.0]:: updated

I should note, this API key did work at some point. However, I haven't looked at this since the big ST smartapp changes. I don't know how to find the API key any longer to see if it's valid, or generate a new one... any ideas?

Did not get it fixed - need a day or so to investigate. May need more data.

I turned off the SmartThings integration and things* are working again. An event that should probably have been local (volume, mute, etc) were blocked by the failing HTTP request to ST. When I turn off ST integration those work again. So, maybe some of those exceptions should be handled softly so the local operation can continue. I'm not sure what operations need ST. I don't know how to find the API key in ST any longer to see if it's still valid. As a note, I don't have a ST hub any longer (maybe this is where things went south), but I do have the ST app on my phone still, so the TV shows in SmartThings even though there's no hub.

*Interestingly, Art Mode works via the device button, but Ambient Mode doesn't. Maybe that needs ST integration for some reason? Pressing "Ambient Mode" just shows this (and only this) in the logs:

[dev:379](http://XXXX/logs#dev379)2022-01-09 02:10:54.848 pm [debug](http://XXXX/device/edit/379)[null, 2.0.0]:: ambientMode: frameTv = true

Ah... because of line 659

if (getDataValue("frameTv") == "true") { return }

FrameTV does support Ambient Mode... I just tested that if I change true to false it launches Ambient Mode just fine. I'm not sure if there's a ambientModeStatus similar to the artModeStatus but that would be great to report if so.

I wonder if Ambient Mode was added in 2019? I have a QN65LS03RAFXZA, if that matters...

I apologize in advance, Im sure this has been asked on the thread (having trouble finding the answer)...what is the recommended way to automate turning a tv on directly into art mode?

normal on/off seems to be working just fine, along with most of the rest of the available commands.

Thanks!

There is currently no single button that does what you want. I would consider a rule (when tv switch turns on, wait xx seconds the set art mode.

I will consider a drop-down preference for on mode that will allow to set to art mode, frame mode, TV mode, or last HDMI input mode and then modify the on command to execute accordingly.

I am long overdue updating. Hopefully in the next two weeks. (73 yo retiree, so busy (or lazy)....) Currently trying to make Kasa Integration user-proof.

Ah, thanks for the quick reply and all the hard work here. Aside from this its working great for me.

It always astonished me that smartthings never exposed this either. Anyone with a frame TV doing home automation definitely has situations where they want to turn the tv on directly (or as close to directly as possible) into artmode. IE in the morning, or when returning from away, or if the unit is off and occupancy/motion is detected in the room.

Looking forward to trying out whatever solution you come up with.

Hi,

I have a quick question, I am looking into to buying a Samsung frame TV. Would this integration allow to send a command to open a webpage, ie Hubitat dashboard, on the tv browser?

no. It is designed as a remote-control device (i.e., simple remote commands).

When my frame TV is on (i.e. I'm watching TV), if I click the "off" button in the device page, the TV goes into art mode. If I hold down the "off" button in the device page, the TV completely turns off.

This is good, and desired, and works like the TV's remote control.

Any idea how I can make a rule "hold down" the off button to force the TV to turn completely off?

Will check when I get some time. I owe the community an update - hopefully next week.
Dave

I've been trying to figure this out as well.

I get a lot of inconsistent behavior powering on into art mode, and powering off completely. Maybe half the time it works as I'd expect it to.

Interestingly, asking alexa to turn the tv off always seems to work. but off() via hubitat can end up cycling me between modes.

I've seen the same thing even without art mode. I think for me it happens if I don't leave enough time between turning on and off (or vice versa), but I've not analysed it closely.

When you turn the TV on, you are using WakeOnLan. Give the TV time to wake up.

When turning off, it takes 30 seconds for the TV to shut down and be ready for another WoL message. This can cause problems.

Dave