ollo69 / ha-samsungtv-smart

📺 Home Assistant SamsungTV Smart Component with simplified SmartThings API Support configurable from User Interface.
Apache License 2.0
445 stars 59 forks source link

TV State does not work for automation #100

Closed GEORGE-VASS closed 1 year ago

GEORGE-VASS commented 3 years ago

Describe the bug When using an automation for state "TV" it won't work. but with state org.tizen.netflix-app the automation will trigger.

Expected behavior When turning off Netflix and the state goes from Netflix to tv and action must be run.

What could the simple tv State be? my tv is AU7172UXX

mendoncart commented 2 years ago

Try to monitor the attribute media_title.

Ey3scr34m commented 2 years ago

Try to monitor the attribute media_title.

This used to work for me, but it does not work anymore. Has anything changed?

Edit: It seems like the attribute media_title is gone?

3raser95 commented 2 years ago

I am facing a similar issue. I have an automation that checks whether I'm watching a specific channel and it used to work by checking {{ states.media_player.samsung_q60_series_65_2.attributes["media_title"] }} but it hasn't been working for the last month or so. It used to report the channel name but now it gives an error UndefinedError: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'media_title'. Also in the developer tools in the attributes of the device there are no media_title or media_channel attributes that used to be there before.

Ey3scr34m commented 2 years ago

Actually I think that I found the problem or at least how to get the missing attributes back. You have to open your smart things app from time to time, so that it kind of syncs your TV.

3raser95 commented 2 years ago

Yeah I actually found out that the TV had some sort of error in smart things where it was showing there but it reported as offline always even when the TV was on and connected to the internet. All the controls worked still through HA like changing channel and so forth but I'm guessing the smart things API wasn't working? I now fixed it by removing the TV from smart things and adding it back and now the "media_title" is working again.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.