Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: grid
- title: Docker containers
- cards:
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_homeassistant_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_homeassistant_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_homeassistant_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_homeassistant_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_homeassistant_state
- name: home assistant
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_homeassistant
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_organizr_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_organizr_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_organizr_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_organizr_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_organizr_state
- name: organizr
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_organizr
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_node_red_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_node_red_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_node_red_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_node_red_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_node_red_state
- name: node_red
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_node_red
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_mosquitto_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_mosquitto_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_mosquitto_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_mosquitto_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_mosquitto_state
- name: mosquitto
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_mosquitto
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_influxdb_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_influxdb_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_influxdb_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_influxdb_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_influxdb_state
- name: influxdb
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_influxdb
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_grafana_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_grafana_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_grafana_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_grafana_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_grafana_state
- name: grafana
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_grafana
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_portainer_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_portainer_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_portainer_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_portainer_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_portainer_state
- name: portainer
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_portainer
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_motioneye_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_motioneye_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_motioneye_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_motioneye_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_motioneye_state
- name: motioneye
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_motioneye
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_doods_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_doods_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_doods_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_doods_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_doods_state
- name: doods
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_doods
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_rmc_tflite_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_rmc_tflite_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_rmc_tflite_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_rmc_tflite_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_rmc_tflite_state
- name: deepstack light
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_rmc_tflite
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_watchtower_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_watchtower_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_watchtower_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_watchtower_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_watchtower_state
- name: watchtower
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_watchtower
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_mariadb_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_mariadb_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_mariadb_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_mariadb_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_mariadb_state
- name: mariadb
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_mariadb
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.docker_znc_cpu'].state}%</span></span>`
- ]]]
- state: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> State: <span style=color: var(--text-color-sensor);>${states['sensor.docker_znc_state'].state}</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${states['sensor.docker_znc_memory'].state} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> <span style=color: var(--text-color-sensor);>${states['sensor.docker_znc_status'].state}</span></span>`
- ]]]
- entity: sensor.docker_znc_state
- name: znc
- show_entity_picture: true
- show_state: false
- size: 70px
- state:
- - entity_picture: /local/images/docker_2.png
- styles:
- entity_picture:
- - filter: grayscale(90%)
- operator: default
- - entity_picture: /local/images/docker_2.png
- value: running
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: call-service
- service: switch.toggle
- service_data:
- entity_id: switch.docker_znc
- type: custom:button-card
- - custom_fields:
- cpu: |
- [[[
- return `<ha-icon
- icon="mdi:thermometer"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> CPU: <span style=color: var(--text-color-sensor);>${states['sensor.rpi_monitor_raspberrypi'].attributes.temp_cpu_c} °C</span></span>`
- ]]]
- mem: |
- [[[
- return `<ha-icon
- icon="mdi:chip"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> RAM: <span style=color: var(--text-color-sensor);>${Math.round(states['sensor.rpi_monitor_raspberrypi'].attributes.memory.size_mb - states['sensor.rpi_monitor_raspberrypi'].attributes.memory.free_mb)} MB</span></span>`
- ]]]
- up: |
- [[[
- return `<ha-icon
- icon="mdi:power"
- style="width: 20px; height: 20px; color: #B58E31;">
- </ha-icon><span> Up <span style=color: var(--text-color-sensor);>${states['sensor.rpi_monitor_raspberrypi'].attributes.up_time} hours</span></span>`
- ]]]
- entity: sensor.rpi_monitor_raspberrypi
- name: rpi4
- show_entity_picture: true
- show_state: false
- size: 40px
- entity_picture: /local/images/raspberry_logo.png
- styles:
- custom_fields:
- cpu:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- up:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- mem:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- state:
- - padding-bottom: 0px
- - align-self: start
- - padding-left: 2px
- - font-size: 12px
- - justify-self: start
- grid:
- - grid-template-areas: '"i i" "n n" "state state" "up up" "cpu cpu" "mem mem"'
- - grid-template-columns: 1fr 1fr
- - grid-template-rows: 1fr min-content min-content min-content min-content
- name:
- - font-weight: bold
- - font-size: 16px
- - color: rgb(18,154,190)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 4px
- card:
- - height: 165px
- tap_action:
- action: more-info
- type: custom:button-card
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement