Advertisement
HATHROWAWAY

Toggle Xbox Powerstate via Input Boolean - Script

Jul 14th, 2025
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. alias: Toggle Xbox via Input Boolean
  2. mode: single
  3. sequence:
  4. - choose:
  5. - conditions:
  6. - condition: state
  7. entity_id: input_boolean.tungsten_power_state
  8. state: "off"
  9. sequence:
  10. - data:
  11. entity_id: remote.tungsten_cube_remote
  12. command: power
  13. action: remote.send_command
  14. - target:
  15. entity_id: input_boolean.tungsten_power_state
  16. action: input_boolean.turn_on
  17. data: {}
  18. default:
  19. - data:
  20. entity_id: media_player.tungsten_cube
  21. action: media_player.turn_off
  22. - target:
  23. entity_id: input_boolean.tungsten_power_state
  24. action: input_boolean.turn_off
  25. data: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement