matt8707 / ha-fusion

A modern, easy-to-use and performant custom Home Assistant dashboard
MIT License
2.07k stars 88 forks source link

FR: Custom popups #25

Open anarion80 opened 8 months ago

anarion80 commented 8 months ago

Hello! First of all - great work on this new approach! My Amazon Fire 10 tablet is now usable, while with the previous hass-config dashboard it struggled a lot with all the heavy client-side JS.

Perhaps you are already thinking on popups, but I would like to formally request that ability. For example to be able to click on the weather type item in the sidebar: obraz to have a popup open with more detailed weather view.

Perhaps something like this:

- type: weather
    entity_id: weather.openweathermap
    weather_sensor: sensor.openweathermap_weather
    extra_sensor: sensor.openweathermap_forecast_precipitation_probability
    extra_sensor_icon: mdi:drop
    icon_pack: meteocons
    popup: weather

The popup could use exactly the same mechanics as views and be defined in dashboard.yaml:

popups:
  - name: Weather
    id: 6467602449648
    sections:
      - type: horizontal-stack
        id: 5078078976670
        sections:
          - name: Main
            id: 2171067078835
            items:
              - type: button
                entity_id: sensor.ventilation_info
                id: 5008685947164
                name: Rekuperacja
                icon: mdi:fan
...

Potentially applicable to any button/item in the dashboard.

Disturbx commented 3 months ago

This would be great with the function to just redirect to another view like "?view=weather"

anarion80 commented 3 months ago

Yes, we should keep this one alive :) Now that we have a calendar modal, it would be really great to have a way to trigger that modal via other means than just clicking on the dedicated button.