In dozens of posts online I’m seeing this below as part of the process for turning on a webOS LG tv using an automation, along with the Wake on LAN: Send magic packet. Where do you get this Platform from?
Thank you fried cheese. Didn’t know I needed all that in configuration.yaml, I thought it was part of an automation. I must admit, as a new user I don’t understand when and why things go into configuration.yaml.
Anyway, when I put it in, I get an error, Duplicate key, the word “Automation”. Can you take a look:
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
binary_sensor: !include binary_sensor.yaml
homeassistant:
!include customize.yaml
ffmpeg:
# To have LG TV turn on
wake_on_lan:
automation:
- alias: "Turn On Living Room TV with WakeOnLan"
trigger:
- platform: webostv.turn_on
entity_id: media_player.lg_webos_smart_tv
action:
- service: wake_on_lan.send_magic_packet
data:
mac: HI:DD:EN:MA:C#:ID
Sorry, I’m still confused. The automations.yaml file has all my automations in it. Where do I put these lines? Will it show up when I go into Settings → Automations?
automation:
- alias: "Turn On Living Room TV with WakeOnLan"
trigger:
- platform: webostv.turn_on
entity_id: media_player.lg_webos_smart_tv
action:
- service: wake_on_lan.send_magic_packet
data:
mac: HI:DD:EN:MA:C#:ID