tomaae / homeassistant-portainer

Portainer integration for Home Assistant
Apache License 2.0
80 stars 5 forks source link

[Feature]Add servicies to start/stop/restart #30

Open Rihan9 opened 4 months ago

Rihan9 commented 4 months ago

Is your feature request related to a problem? Please describe.

Hi, I would like to start/stop but mostly restart my containers. This is because it sometimes happens, for example, that Zigbee2mqtt needs a restart when some devices stop responding correctly.

The best thing would be if the "recreate" function were also included, allowing updates to the containers directly from Home Assistant.

Describe the solution you'd like

a bunch of services:

all of them should accept the sensor entity created by this integration to know which container should be the target.

Additional context

portainer documentation: https://app.swaggerhub.com/apis/portainer/portainer-ce/2.19.4 the docker endpoints shold be wrapped in this portainer endpoint: https://[[HOSTNAME]]/api/endpoints/2/docker/containers/

anktababa commented 4 months ago

That would be amazing. I was looking for a creating a script to restart a container and found this integration. Very good for monitoring but stop/start/restart can be perfect

Thanks

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 3 months ago

This issue was closed because it has been stalled for 5 days with no activity.