DD - Automatic area-based dashboard for desktop, tablet and mobile - V3.7.0

maybe i understood you wrong, but you could use addons: and just modify the button.yaml you use for button_path:

1 Like

I have a couple more questions :slight_smile:

Is it possible to include the garbage collection card on the home page header or directly in house information? Currently I use some of the features like hide before so I only see the bins being collected that week:

This is my old config for that:

                        "entities": [
                            {
                                "entity": "sensor.black_refuse",
                                "hide_before": 6,
                                "icon_color": "black",
                                "type": "custom:garbage-collection-card"
                            },
                            {
                                "entity": "sensor.blue_paper",
                                "hide_before": 6,
                                "icon_color": "blue",
                                "type": "custom:garbage-collection-card"
                            },
                            {
                                "entity": "sensor.brown_recyclables",
                                "hide_before": 6,
                                "icon_color": "brown",
                                "type": "custom:garbage-collection-card"
                            },
                            {
                                "entity": "sensor.green_bio_waste",
                                "hide_before": 6,
                                "icon_color": "green",
                                "type": "custom:garbage-collection-card"
                            }
                        ],
                        "title": "Refuse Collection Rota",
                        "type": "entities" 

It would be really cool if it could be integrated in to the theme.

I’ve got the person pages working fairly well now, and notice they have the “addons” option. This seems to work by embedding those cards directly on the person page. Is this possible to do something similar on the house information page or the main page?

My final question is around the map history feature that was recently released. https://www.home-assistant.io/blog/2020/04/08/release-108/#lovelace-map-history Is it possible to enable this on the person page map and if so how would I do this?

Many thanks

Andy

1 Like

I have a iFan03 and its works great. This is a addon for my master bedroom.
And the icons spin when on.

First is the fan.yaml which goes in /config/packages.

homeassistant:
  customize:

    fan.master_bedroom_fan:
      friendly_name: Main Fan
      persistent: true

    fan.master_bedroom_light:
      friendly_name: Main Light
      persistent: true

###############################################################

sensor:
  - platform: template
    sensors:
      master_fan_speed:
        value_template: >
            {% if states.fan.master_bedroom_fan.state == 'off' -%}off
            {% else %}
              {{ state_attr("fan.master_bedroom_fan", "speed") }}
            {% endif %}

###############################################################

script:
  fan_master_bedroom_command:
      sequence:
        - service: fan.set_speed
          entity_id: fan.master_bedroom_fan
          data_template:
            speed: '{{option}}'

###############################################################

fan:
  - platform: mqtt
    name: "Master Bedroom Fan"
    command_topic: "cmnd/sonoff_MBR_fan/FanSpeed"
    speed_command_topic: "cmnd/sonoff_MBR_fan/FanSpeed"
    state_topic: "stat/sonoff_MBR_fan/RESULT"
    speed_state_topic: "stat/sonoff_MBR_fan/RESULT"
    state_value_template: >
      {% if value_json.FanSpeed is defined %}
        {% if value_json.FanSpeed == 0 -%}0{%- elif value_json.FanSpeed > 0 -%}4{%- endif %}
      {% else %}
        {% if states.fan.master_bedroom_fan.state == 'off' -%}0{%- elif states.fan.master_bedroom_fan.state == 'on' -%}4{%- endif %}
      {% endif %}
    speed_value_template: "{{ value_json.FanSpeed }}"
    availability_topic: tele/sonoff_MBR_fan/LWT
    payload_off: "0"
    payload_on: "4"
    payload_low_speed: "1"
    payload_medium_speed: "2"
    payload_high_speed: "3"
    payload_available: Online
    payload_not_available: Offline
    speeds:
      - "off"
      - low
      - medium
      - high

  - platform: mqtt
    name: "Master Bedroom Light"
    command_topic: "cmnd/sonoff_MBR_fan/power1"
    state_topic: "stat/sonoff_MBR_fan/POWER1"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    retain: false

Then in /config/dwains-theme/addons/rooms/masterbedroom/fan. Add two files.
The first file page.yaml


- type: vertical-stack
  cards:
    - type: custom:dwains-flexbox-card
      padding: true
      items_classes: 'col-lg-6 col-md-6 col-sm-12 col-xs-12'
      cards:
        - type: horizontal-stack
          cards:
          - type: custom:button-card
            style: |
                ha-card {
                  background: var(--dwains-theme-primary);
                  border-radius: 10px;
                  box-shadow: 10px;
                  font-weight: bold;
                  opacity: 0.8;
                }
            icon: mdi:fan
            name: 'Off'
            tap_action:
              action: call-service
              service: script.fan_master_bedroom_command
              service_data:
                  option: 'off'
            styles:
              icon:
                - color: >
                    [[[ if (states['sensor.master_fan_speed'].state == 'off') return '#299ec2'; return 'grey' ; ]]]

          - type: custom:button-card
            style: |
                ha-card {
                  background: var(--dwains-theme-primary);
                  border-radius: 10px;
                  box-shadow: 10px;
                  font-weight: bold;
                  opacity: 0.8;
                }
            icon: mdi:fan
            name: 'Low'
            tap_action:
              action: call-service
              service: script.fan_master_bedroom_command
              service_data:
                  option: 'low'
            state:
              - operator: template
                value: >
                    [[[ if (states['sensor.master_fan_speed'].state == 'low') return 'on' ; ]]]
                spin: true
            styles:
              icon:
                - color: >
                    [[[ if (states['sensor.master_fan_speed'].state == 'low') return '#299ec2'; return 'grey' ; ]]]

          - type: custom:button-card
            style: |
                ha-card {
                  background: var(--dwains-theme-primary);
                  border-radius: 10px;
                  box-shadow: 10px;
                  font-weight: bold;
                  opacity: 0.8;
                }
            icon: mdi:fan
            name: 'Med'
            tap_action:
              action: call-service
              service: script.fan_master_bedroom_command
              service_data:
                  option: 'medium'
            state:
              - operator: template
                value: >
                    [[[ if (states['sensor.master_fan_speed'].state == 'medium') return 'on' ; ]]]
                spin: true
            styles:
              icon:
                - color: >
                    [[[ if (states['sensor.master_fan_speed'].state == 'medium') return '#299ec2'; return 'grey' ; ]]]

          - type: custom:button-card
            style: |
                ha-card {
                  background: var(--dwains-theme-primary);
                  border-radius: 10px;
                  box-shadow: 10px;
                  font-weight: bold;
                  opacity: 0.8;
                }
            icon: mdi:fan
            name: 'High'
            tap_action:
              action: call-service
              service: script.fan_master_bedroom_command
              service_data:
                  option: 'high'
            state:
              - operator: template
                value: >
                    [[[ if (states['sensor.master_fan_speed'].state == 'high') return 'on' ; ]]]
                spin: true
            styles:
              icon:
                - color: >
                    [[[ if (states['sensor.master_fan_speed'].state == 'high') return '#299ec2'; return 'grey' ; ]]]

And the second file button.yaml

# dwains_theme
# Custom button for room addon: fan

type: custom:button-card
entity: {{ (data | fromjson)['entity'] }}
template: rooms_child
name: {{ name }}
icon: {{ icon|default('fas:puzzle-piece') }}
tap_action:
  action: navigate
  navigation_path: {{ navigation_path }}
label: >
  [[[
    if(entity){
      return entity.state;
    } else {
      return 'Entity error!';
    }
  ]]]

And in /config/dwains-theme/configs/rooms.yaml add this.
Yours will be different on the first part

  - name: Master Bedroom
    icon: fas:bed
    light: group.master_bedroom_lights
    temperature: sensor.bedroom_temperature
    humidity: sensor.bedroom_humidity
    window: binary_sensor.window_master_main
    media_player: media_player.google_bedroom
    addons: ## Room Page Extra Button 
      - name: Fan Control
        icon: fas:fan
        path: 'dwains-theme/addons/rooms/masterbedroom/fan/page.yaml'
        button_path: 'dwains-theme/addons/rooms/masterbedroom/fan/button.yaml'
        data:
          entity: sensor.master_fan_speed

Hope this is ok for you…

Edit: Also you can look at Dwains Addons here. https://github.com/dwainscheeren/dwains-theme-addons/blob/master/rooms/fan-control/README.md

1 Like

@mcinnes01 I will answer your questions, but please next time take a look in the documentation of the theme and on Github issues. 90% of your questions can be answered by looking in to those things. So take a look here Issues · dwainscheeren/dwains-lovelace-dashboard · GitHub and also look at the closed ones.

This is not possible

This will be fixed in 1.4.0 (There is a FR for)

This is something on the to do list

Not sure what you mean

This will be fixed in 1.4.0 (There is a FR for)

This is not possible. But you can make an automation for it with dwains_theme.notification

No

Not yet

Not yet

I also highly recommend you and all others to join my Dwains Theme discord server, here are all things discussed regarding to my theme. It takes a lot of time for me to answer the same questions over and over, if you ask them there others can help you too who are already pro users of my theme. You can join for free here: Home Assistant Addicts

2 Likes

Great thanks l will check out discord and thanks for answering my questions.

1 Like

@dwains fantastic theme love it documentation is very good as is your repo (anyone that has knows my repo knows the amount of time I dedicated to documentation) so kudos.

I have been away from HA for awhile but isolation has allowed me the time to start to play with this theme lots to go yet but here are some screens of progress.



5 Likes

Thanks! Looking good, also check out some existing addons from people from my Discord server like @noodlemctwoodle and @Klumpke made: GitHub - dwainscheeren/dwains-dashboard-addons: Dwains Dashboard Community Addons
There is also an addon for viewing info about your HA machine already :smiley:

1 Like

well that would have saved me some time :slight_smile:

1 Like

You learn from it, I always say. You can also do a PR for your own addon on my official Github. This is for everyone, who has made a own addon. I want to build a sort of community store with free addons on Github.

1 Like

@dwains,

First of all congratulations for this. It’s simply awesome!

I have a question: is it possible to add more than one plant to one room?

1 Like

Yeah sure no problem, just group them in a HA group.

1 Like

@dwains
Firstly, thanks for the great theme, very nice and easy to use!

Secondly, on the Room temperature page is it possible to change the inside/outside graphs to show only temp on one and only humidity on the other?
Graph 1 = temp inside/outside
Graph 2 = humidity inside/outside

The reason I ask is because with both temp and humidity on the one graph the temp line looks quite flat and I think this is due to the large difference between temp and humidity - temps 18-22 and humidity is 55-70 so the 4 degree temp shift is nothing compared to the 55-70 numbers of humidity.

The other solution would be to use different scales for each - but I don’t think this is possible using that card?

1 Like

Yeap having lots of fun with it atm.

2 Likes

Ok, so I’ve been following this since the beginning but not yet installed it.
I have a potentially stupid question…

Can I just install this alongside my current (YAML mode) Lovelace and (as @jimpower says) play with it?

1 Like

Can you please share the code for your card?

2 Likes

Yes as long as you follow the very well written instructions you will be able to have both running alongside each other. You can choose them based on user login if required or select them manually from the side menu.

2 Likes

I’ll upload it to the link dwains shared above.

1 Like

Has anyone managed to get the keypad of the alarm working?

I have changed some lines in the code to activate the popup but have been unable to have it working on reloading the page.

1 Like

It will be fixed in Dwains Theme v1.4.0

Xiaomi Eco System Addon

1 Like