ualex73 / monitor_docker

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

How to add to Lovelace dashboard? #98

Closed wormvortex closed 1 month ago

wormvortex commented 2 years ago

I’ve downloaded via HACS, added the line to my docker config and added the info to my home assistant config.yml file but now what???

I can’t work out how to display the information on a card on the dashboard.

mixpix405 commented 2 years ago

Just as you would any other entity. One example card would be:

type: entities
entities:
  - entity: sensor.docker_plex_state
  - entity: sensor.docker_plex_status
  - entity: sensor.docker_plex_memory
title: Plex Container
state_color: true
show_header_toggle: false
wormvortex commented 2 years ago

I've tried that. I cannot seem to find any sensor.docker entities

stnokott commented 2 years ago

Try finding it in the developer tools, you have autocompletion there (for the entity's friendly name too). Also check if you have set the sensorname property in the YAML config as that may be the reason that "docker" is not contained in the entity's ID.

If your entities are not being created, you should rename the issue accordingly since troubleshooting lovelace configuration should not be an issue with an integration itself.