v3_button_power:
  template: v3_button
  variables:
    power_sensor:
  state_display: |
    [[[
      if (entity?.state === 'off') return 'Off';
      return states[variables.power_sensor].state + " W";
    ]]]
  icon: mdi:power-socket
  tap_action:
    action: more-info
    entity: "[[[return variables.power_sensor]]]"
