The automation that I can’t get to work looks like this:
- alias: Turn on lamp when tv turns on
hide_entity: False
trigger:
platform: state
entity_id: media_player.tvcellar
from: 'off'
to: 'on'
action:
service: homeassistant.turn_on
entity_id: switch.gillestugan_golvlampa
I’m thinking if it can have something to do with that I didn’t have to accept Home Assistant in my TV, have read that I should have to do that on a samsung tv, but my tv didn’t ask for that.
Take a look at your states tab. the <> tab in the right menu bar of the front end. Is that state of your TV ‘on’ or ‘On’? Having the wrong state (capitalization matters) will make it not trigger.