ualex73 / monitor_docker

Monitor Docker containers from Home Assistant
Apache License 2.0
268 stars 34 forks source link

Feature Request #15

Closed nytram-md closed 4 years ago

nytram-md commented 4 years ago

If the switches have some kind of security feature on them please ?

Its too easy to turn off a container. So maybe a PIN option of long press feature would be handy for mobile phone.

Thanks again

Martyn

ualex73 commented 4 years ago

From the custom_component i can't add a security feature. What is in my mind is to make it possible to disable the switch completely for a specific container.

If you like to have some security, you need to use a custom card like https://github.com/iantrich/restriction-card.

I added the following to my configuration:

      - card:
          entity: switch.docker_hass
        restrictions:
          block: true
        type: custom:restriction-card
        row: true
      - card:
          entity: switch.docker_influxdb
        restrictions:
          block: true
        type: custom:restriction-card
        row: true
      - switch.docker_mosquitto
      - switch.docker_motioneye

Thanks for reporting it, i will add a similar example to the README.

nytram-md commented 4 years ago

Hi

Yes, i was looking at that as an alternative solution if it wasnt possible. Thanks again. Regards

Martyn


From: Alexander notifications@github.com Sent: Thursday, July 2, 2020 12:54:27 PM To: ualex73/monitor_docker monitor_docker@noreply.github.com Cc: nytram-md martyn_dickinson@hotmail.com; Author author@noreply.github.com Subject: Re: [ualex73/monitor_docker] Feature Request (#15)

From the custom_component i can't add a security feature. What is in my mind is to make it possible to disable the switch completely for a specific container.

If you like to have some security, you need to use a custom card like https://github.com/iantrich/restriction-card.

I added the following to my configuration:

  - card:
      entity: switch.docker_hass
    restrictions:
      block: true
    type: custom:restriction-card
    row: true
  - card:
      entity: switch.docker_influxdb
    restrictions:
      block: true
    type: custom:restriction-card
    row: true
  - switch.docker_mosquitto
  - switch.docker_motioneye

Thanks for reporting it, i will add a similar example to the README.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ualex73/monitor_docker/issues/15#issuecomment-652961259, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHZVQD56C37J6LWEGVJQEDRZRYPHANCNFSM4OOEFW6A.

ualex73 commented 4 years ago

I added it to the Q&A section of the README.