• ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    3 days ago

    That’s a good solution. What is your PC controls yaml if it isn’t too private?

    • Lyra_Lycan@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      2 days ago

      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