madmicio / LG-WebOS-Remote-Control

Remote Control for LG TV WebOS
393 stars 74 forks source link

Power button not working after Feb 2022 HomeAssistant update #78

Closed HuggyBearUK closed 2 years ago

HuggyBearUK commented 2 years ago

Breaking changes has the following text for the latest release of HA.

LG webOS Smart TV The LG webOS Smart TV integration migrated to configuration via the UI. Configuring LG webOS Smart TV via YAML configuration has been deprecated and will be removed in a future Home Assistant release.

Your existing YAML configuration is automatically imported on upgrade to this release; and thus can be safely removed from your YAML configuration after upgrading.

The turn on action for turning on the TV via WakeOnLan or HDMI-CEC was using a service call via YAML, and the turn on action is changed to use a custom automation trigger webostv.turn_on or a device trigger automation that can be setup from the UI.

https://www.home-assistant.io/integrations/webostv/

You can create an automation from the user interface, from the device create a new automation and select the Device is requested to turn on automation. Automations can also be created using an automation action:

This resolves the issue and the 'Power' button works once more.

tempmaseg commented 2 years ago

@HuggyBearUK did you create an automation so it still works or is just for the developer to know how to fix it?

HuggyBearUK commented 2 years ago

Hi,

I created an automation using the Home Assistant GUI The trigger has the platform device and type 'Device is requested to turn on'. The action calls the service _wake_on_lan.send_magic_packet_ with the MAC address of the TV.

My configuration.yaml file no longer contains any configuration for the webostv integration but _wake_onlan: still must be present in the config.

image

image image

image

HuggyBearUK commented 2 years ago

I do not think the developer needs to do anything. My post was to share my experience.

tempmaseg commented 2 years ago

Great, thank you! 👍

raffpapalia commented 2 years ago

@HuggyBearUK thanks for this, i'll give it a try. This will work to turn the TV on, how about turning it off?

madmicio commented 2 years ago

fixed