Hi All,
I have this common Code in My 7" Displays.
The Power Toggle Works for Off but not On with My Samsung & JVC (Aussie Big W Cheapy).
- button:
id: Tv_pwr
height: 100%
flex_grow: 1
# styles: s_rlybtn
widgets:
- label:
text: "Power\nOn/Off"
styles: s_rlybtn
checked:
styles: s_rlybtn_ck
on_click:
- homeassistant.action:
action: remote.toggle
data:
entity_id: remote.${mplayer_id}
- button:
id: Tv_vol_dn
height: 100%
flex_grow: 2
# styles: s_rlybtn
widgets:
- label:
text: "Volume\nDown"
styles: s_rlybtn
checked:
styles: s_rlybtn_ck
on_click:
- homeassistant.action:
action: media_player.volume_down
data:
entity_id: media_player.${mplayer_id}
...
...
...
(It Did Work on the Samsung a few Days ago, but Yesterday received a notification that WoL was Depreciated in the Samsung Integration).
I have now found that a WoL integration in HA actually turns the JVC on.
Was thinking olong the lines of sending it AFTER the remote.toggle,
Assuming the Toggle will fail to turn the TV on when it's off,
but hopefully the Subsequent WoL after the Off won't Turn it back on.
Something Like this...
- button:
id: Tv_pwr
height: 100%
flex_grow: 1
# styles: s_rlybtn
widgets:
- label:
text: "Power\nOn/Off"
styles: s_rlybtn
checked:
styles: s_rlybtn_ck
on_click:
- homeassistant.action:
action: remote.toggle
data:
entity_id: remote.${mplayer_id}
- Other Action to Send WoL Command.