Device is requested to turn on

The Device is requested to turn on trigger fires when Home Assistant requests an LG Netcast TV to power on. Use it to react to that request and perform the actual turn-on action, such as sending a Wake-on-LAN packet or an HDMI-CEC command.

LG Netcast TVs cannot be turned on by Home Assistant directly. Instead, Home Assistant fires this trigger when something (an automation, a script, or the UI) calls the turn-on action for the device. You can then use an automation to carry out whichever method your TV supports, such as Wake-on-LAN.

Using this trigger from the user interface

If you prefer building automations visually, Home Assistant walks you through this trigger step by step. You pick what to watch, tweak a few options, and save. No YAML knowledge required.

To use this trigger in an automation:

  1. Go to Settings > Automations & scenes.
  2. Open an existing automation, or select Create automation > Create new automation.
  3. In the When section, select Add trigger.
  4. Under By device, select your LG Netcast device.
  5. From the triggers shown for that device, select Device is requested to turn on.
  6. Select Save.

Options in the UI

Device

The LG Netcast device to watch for a turn-on request.

Using this trigger in YAML

If you work directly in YAML, or you want to know exactly what Home Assistant does under the hood, this section has the technical reference. It lists the field names you use in YAML, their types, and which ones are required.

In YAML, refer to this trigger as lg_netcast.turn_on. A basic example looks like this:

TriggerA trigger is a set of values or conditions of a platform that are defined to cause an automation to run. [Learn more]
trigger: lg_netcast.turn_on
entity_id: media_player.lg_netcast_tv

This fires when something requests the LG Netcast TV to turn on.

Options in YAML

YAML sometimes provides additional options for more complex use cases that are not available through the UI.

trigger string Required

The trigger type. For this trigger, use lg_netcast.turn_on.

device_id string | list

One or more device IDs of LG Netcast devices to watch. At least one of device_id or entity_id must be set.

entity_id string | list

One or more entity IDs of LG Netcast entities to watch. At least one of device_id or entity_id must be set.

Good to know

  • This trigger fires when Home Assistant requests the TV to turn on, not when the TV reports that it turned on. You need to provide an action (such as Wake-on-LAN or HDMI-CEC) to actually power on the device.
  • Both media_player and remote entities for the same LG Netcast device share the same turn-on trigger.
  • If you want to react when the TV actually reports that it is on, use Media player turned on instead.

Try it yourself

Ready to test this? Go to Settings > Automations & scenes, create a new automation, and add this trigger. Save the automation, then change the state of the targeted entity to watch the trigger fire on your actual entitiesAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more].

More examples

Real scenarios where this trigger fires in automations and scripts. Copy any example and adapt it to your setup.

Tip

You don’t need to edit YAML to use these examples. Copy a YAML snippet from this page, open the automation editor in Home Assistant, and press Ctrl+V (or Cmd+V on Mac). Home Assistant automatically converts the pasted YAML into the visual editor format, whether it’s a full automation, a single trigger, a condition, or an action.

Automation: turn on the TV with Wake-on-LAN

When something requests the LG Netcast TV to turn on, send a Wake-on-LAN magic packet to power it on over the network.

  • Trigger: Device is requested to turn on
    • Device: Living room LG TV (media_player.lg_netcast_tv)
  • Action: Send magic packet
    • MAC address: AA:BB:CC:DD:EE:FF
YAML example for turning on the TV with Wake-on-LAN
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Turn on LG Netcast TV with Wake-on-LAN"
triggers:
  - trigger: lg_netcast.turn_on
    entity_id: media_player.lg_netcast_tv
actions:
  - action: wake_on_lan.send_magic_packet
    data:
      mac: "AA:BB:CC:DD:EE:FF"

Automation: send a notification when the TV is requested to turn on

When something requests the LG Netcast TV to turn on, send a notification to your phone.

  • Trigger: Device is requested to turn on
    • Device: Living room LG TV (media_player.lg_netcast_tv)
  • Action: Send a notification message
    • Target: My Device (notify.my_device)
YAML example for sending a notification when the TV is requested to turn on
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Notify when LG Netcast TV is requested to turn on"
triggers:
  - trigger: lg_netcast.turn_on
    entity_id: media_player.lg_netcast_tv
actions:
  - action: notify.send_message
    target:
      entity_id: notify.my_device
    data:
      message: "The living room TV was requested to turn on."

Still stuck?

The Home Assistant community is quick to help: join Discord for real-time chat, post on the community forum with the trigger you’re using and what you expected to happen, or share on our subreddit /r/homeassistant.

Tip

AI assistants like ChatGPT or Claude can also explain triggers or suggest the right one when you describe what you want in plain language.

Related triggers

These triggers work well alongside this one: