homeassistant-config icon indicating copy to clipboard operation
homeassistant-config copied to clipboard

Dynamic Starting Dashboard

Open dannytsang opened this issue 3 years ago • 5 comments

Create a changing dashboard baased on what is going on. The scope is on the starting page to give relevant information for what is going on. Some of this already exists for #40 however there are more situations when something is relevant especially when something is not right.

Example relevant information:

  • [x] 🤖🧹 Robot vacuum
  • [x] ⛈Severe/bad weather
  • [ ] 🚗🚆Travel information
  • [x] 💧🏡House sensors like leaks
  • [ ] 🚶Room based detection and context

dannytsang avatar May 15 '22 11:05 dannytsang

Dynamic card for the vacuum:

  - type: custom:mushroom-chips-card
    chips:
      - type: conditional
        conditions:
          - entity: vacuum.t8
            state_not: docked
        chip:
          type: entity
          entity: vacuum.t8

dannytsang avatar Jun 07 '22 21:06 dannytsang

Dynamic card for bad weather:

  - type: custom:mushroom-chips-card
    chips:
      - type: conditional
        conditions:
          - entity: sensor.met_office_rss_weather_warnings
            state_not: '0'
        chip:
          type: weather
          entity: weather.openweathermap
          show_conditions: true
          show_temperature: true

dannytsang avatar Jun 07 '22 21:06 dannytsang

Keep getting failed connection trying to use Waze integration with entities.

dannytsang avatar Jun 29 '22 21:06 dannytsang

Using mushroom conditional chips to show leaks detected.

square: false
columns: 1
type: grid
cards:
  - type: grid
    columns: 1
    cards:
      - type: custom:mushroom-chips-card
        chips:
          - type: conditional
            conditions:
              - entity: binary_sensor.conservatory_bucket_water
                state: on
            chip:
              type: entity
              entity: binary_sensor.conservatory_bucket_water
          - type: conditional
            conditions:
              - entity: binary_sensor.kitchen_sink_water
                state: on
            chip:
              type: entity
              entity: binary_sensor.kitchen_sink_water
          - type: conditional
            conditions:
              - entity: binary_sensor.bathroom_water
                state: on
            chip:
              type: entity
              entity: binary_sensor.bathroom_water
          

dannytsang avatar Jul 31 '22 08:07 dannytsang

Added more chips if devices are turned on. It's particularly useful for things like white goods that are not in view like our washing machine.

image

I use a power monitoring device like a smart plug or shelly and if the device draws power over a threshold then it will deem it as on. The template sensor uses the device class running.

template:
  - trigger:
    binary_sensor:
      - name: "Washing Machine Powered On"
        unique_id: ac5bc0d6-2199-4a2a-8d23-c2f81e8fe0dd
        device_class: "running"
        icon: "mdi:washing-machine{{ '' if states('sensor.washing_machine_current_consumption') | float(0) > 9 else '-off' }}"
        state: "{{ states('sensor.washing_machine_current_consumption') | float(0) > 9 }}"

Add the template sensor to a conditional chip like above:

type: custom:mushroom-chips-card
chips:
  - type: conditional
    conditions:
      - entity: binary_sensor.washing_machine_powered_on
        state: 'on'
    chip:
      type: entity
      entity: binary_sensor.washing_machine_powered_on

dannytsang avatar Oct 01 '22 10:10 dannytsang