you are viewing a single comment's thread
view the rest of the comments
[โ€“] 1 point 9 months ago* (last edited 9 months ago) (4 children)

Sorry, that would help wouldn't it aha
In templatesensors.yaml:

  - switch:
      unique_id: pc_admin_controls
      name: Admin Controls
      icon: mdi:shield-crown-outline
      turn_on: []
      turn_off: []

I made it a while ago. I believe it could also be made in helpers UI now, in Settings > Devices and Services > Helpers > Create Helper > Toggle, and setting a name and icon, and saving. It'll be input_boolean.switch_name and is functionally the same, as my conditional cards do the actions

  • source
  • parent
  • hideshow 4 child comments
  • [โ€“] 2 points 9 months ago (3 children)

    I was just curious what functions you were running on the PC that you wanted to control via HA.

  • source
  • parent
  • hideshow 3 child comments
  • I used to use Has Agent, now I have LNXlink, which had quick buttons for lock, log out, ctrl-F4 and alt-F4, and power controls. I also have media player functions for watching stuff and controlling from the couch. I tried to share yaml but I think it bypassed a comment limit

  • source
  • parent