Thats how I wrote it.
Couldt it be something to do with the type? Mine is a Broadlink rm mini 3. Or maybe i have to assign a port in my router to use for the Broadlink traffic?
And as I wrote…the HA UI came up, and a new switch appeared ( switch.samsung_tv_power )
The only thing i did was to adding type, and after that i deleted the type and did a new restart af HA
hummm…
But thanks for the input! I seemes to be working now
Well, as it turned out, i had to add Type: rm_mini below the mac-address. My broadlink ir is a RMmini3. But the only option is rm_mini, and it worked.
Also, I had to make a new on off button in customized.yaml to make a normal switch:
switch.samsung_tv_power
assumed_state: false
icon: mdi:television
friendly_name: TV kontrol
this is how the switch looked like before customizing:
And this is the final result after customizing (assumed_state: false) did the trick (thanks DanielH)