Hi Guys!
Today i got the following message:
I know how to resolve this, so i can turn on the tv over Wake-On-LAN.
Does anybody know how to TURN OFF the TV in the future?
How do i obtain the current status if the TV is ON or OFF?
TIA
BenSmartHome
My Automation to turn it ON:
The media player entity will show its on/off state and you can turn it on and off with the media player entity. The on action from the media player will cause the WOL automation to run:
alias: Turn On Living Room TV with WakeOnLan
triggers:
- trigger: samsungtv.turn_on
entity_id: media_player.living_room_tv
actions:
- action: wake_on_lan.send_magic_packet
data:
mac: xx:xx:xx:xx:xx:xx
Thank you, I obviously made a mistake in my thinking.
I thought it was related to turning it off, but it’s only the WoL function that’s changed in the integration. All other commands don’t use WoL.
This is my automation now for turning it on:
alias: Bedroom TV on by nightlight
description: ""
triggers:
- type: turned_on
device_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
entity_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
domain: light
trigger: device
for:
hours: 0
minutes: 0
seconds: 10
conditions:
- condition: time
after: "21:00:00"
before: "08:30:00"
actions:
- action: wake_on_lan.send_magic_packet
data:
mac: xx:xx:xx:xx:xx:xx
mode: single
That will work for that automation, but if you try and turn on the TV with the media player entity it won’t work
Hello together,
I have also the same message, but am not using any automation with wake-on-lan. I have only something like that:
alias: Wohnzimmer - Nacht - Beleuchtung TV an
description: ""
triggers:
- device_id: ead65913da373911c4bc959e48fe1f7a
domain: media_player
entity_id: 28e43b6e0f4dbf0da348fd0bc4ecbcfb
type: turned_on
trigger: device
conditions:
- condition: sun
after: sunset
before: sunrise
- condition: device
type: is_off
device_id: 032e37bb61ff604f50d8cb7eea23af8b
entity_id: 65ec8ce2d43866a0d49c6b82217e7cb9
domain: light
actions:
- target:
device_id: 032e37bb61ff604f50d8cb7eea23af8b
data:
brightness_pct: 15
rgb_color:
- 255
- 255
- 255
action: light.turn_on
mode: single
This I have to power the light on and off, but nothing for the device itself.
For sure I have in my configuration yaml that:
# Enable Wake_on_Lan
wake_on_lan:
To be honest, I am completely lost what now is my issue.
Just create the automation I posted above with your tv’s entity_id and it should be fine with the automation you already have
I saw your code, but I have no action on the TV itself, I am not powering it, only checking the state.
This is why I am wondering that I get that message too.
So I only have the Samsung TV as trigger, not as action.
Must be because you are using the Samsung TV integration you get that message ?
Must be yes!
I will just wait and see.