Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sony Bravia TV - events to trigger appear twice but only one works #141443

Open
muibeta opened this issue Mar 26, 2025 · 10 comments
Open

Sony Bravia TV - events to trigger appear twice but only one works #141443

muibeta opened this issue Mar 26, 2025 · 10 comments

Comments

@muibeta
Copy link

muibeta commented Mar 26, 2025

The problem

I have two Sony Bravia TVs where I want to trigger automations when each TV turns on. When creating automations using the visual editor, some of the available trigger events are listed twice. For one of the TVs, only the first instance of "TV turned on" will trigger. On the other TV, I have to choose the second instance of "TV turned on" to have it trigger. Included are two screen grabs. The highlighted "TV turned on" is the one that will trigger.

Image
Image

What version of Home Assistant Core has the issue?

core-2025.3.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

@home-assistant
Copy link

Hey there @bieniu, @Drafteed, mind taking a look at this issue as it has been labeled with an integration (braviatv) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of braviatv can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign braviatv Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


braviatv documentation
braviatv source
(message by IssueLinks)

@bieniu
Copy link
Member

bieniu commented Mar 26, 2025

Is the device also configured with another integration than BraviaTV? For example, AndroidTV Remote?

@muibeta
Copy link
Author

muibeta commented Mar 26, 2025

Both TVs were auto discovered by androidtv_remote and dlna_dms. These integrations were "ignored" for both TVs so they should not be configured.

BraviaTV lists the TVs by their Sony model numbers. I can also control them using media_player code where they are also found by their names; Study TV and Family TV. In the active list of integrations, the TVs only appear under BraviaTV.

@bieniu
Copy link
Member

bieniu commented Mar 26, 2025

Show me please the device info panel, something like this.

Image

@muibeta
Copy link
Author

muibeta commented Mar 26, 2025

Image

@muibeta
Copy link
Author

muibeta commented Mar 26, 2025

Please note, in the Logbook entries tuned off and turned on appear twice at exactly the same time.

@bieniu
Copy link
Member

bieniu commented Mar 26, 2025

I think I understand the problem. You have both media_player and remote entities enabled. For both automation triggers are generated and both generate events in the log.
Could you change the name of one of the entities to add a distinction between them?

@muibeta
Copy link
Author

muibeta commented Mar 26, 2025

For the TV in the Study, I renamed the remote entity "Study TV remote". This now clearly distinguishes media_player and remote. See the two screen grabs of the Device info with Logbook identifying them separately and as well as for Automation trigger events. As a feature request, could the auto entity naming be adjusted to save having to manually rename?

Image
Image

Thanks for your help!

@bieniu
Copy link
Member

bieniu commented Mar 26, 2025

For which entity trigger does not work?

@muibeta
Copy link
Author

muibeta commented Mar 26, 2025

I also renamed the remote entity for the Family TV to "Family TV remote". With media_player and remote not having duplicate entity names, triggering on either is now working in a quick test of both TVs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants