kinghat / tabbed-card

a custom card for home assistant that utilizes tabs to segregate individual cards.
MIT License
87 stars 10 forks source link

Doesnt work with "Simple Thermostat" #68

Closed Bone84 closed 1 year ago

Bone84 commented 1 year ago

Hi,

there is a Bug with Simple Thermostat.

If I use "type: custom:simple-thermostat" the Tab with Simple Thermostat shows Nothing below the Tab. If I change the type to "thermostat" or "custom:better-thermostat-ui-card" it works fine.

type: custom:tabbed-card
tabs:
  - attributes:
      label: Bad
    card:
      type: vertical-stack
      cards:
        - type: custom:vertical-stack-in-card
          cards:
            - type: custom:better-thermostat-ui-card
              entity: climate.bad_bt
              disable_window: true
              name: Bad
              eco_temperature: 19
            - type: glance
              show_icon: true
              show_name: false
              entities:
                - entity: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening
                - entity: binary_sensor.shellyflood_349454713515_flood
  - attributes:
      label: Wohnzimmer
    card:
      type: vertical-stack
      cards:
        - type: custom:vertical-stack-in-card
          cards:
            - type: custom:simple-thermostat
              entity: climate.heizung
            - type: glance
              show_icon: true
              show_name: false
              entities:
                - entity: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening
                - entity: binary_sensor.shellyflood_349454713515_flood
  - attributes:
      label: Arbeitszimmer
    card:
      type: vertical-stack
      cards:
        - type: custom:vertical-stack-in-card
          cards:
            - type: thermostat
              entity: climate.heizung_az
              header: null
            - type: glance
              show_icon: false
              entities:
                - entity: sensor.heizung_az_next_scheduled_change_time
                  name: Änderung
                - entity: sensor.heizung_az_comfort_temperature
                  name: Komfort
                - entity: sensor.heizung_az_eco_temperature
                  name: Eco

Screen1 Screen2 Screen3

kinghat commented 1 year ago

that repo says to use the updated card: https://github.com/dadge/simple_thermostat#warning--this-repo-is-not-longer-maintained-please-consider-switch-tho-the-new-one--httpsgithubcomdadgeawesome_thermostat

not saying thats the problem but i would check that out. otherwise im not sure what the issue could be offhand. try moving the order of card around. it could be related to: https://github.com/kinghat/tabbed-card/issues/30

Bone84 commented 1 year ago

sorry, i linked the wrong simple thermostat... https://github.com/nervetattoo/simple-thermostat[this is the right one](https://github.com/nervetattoo/simple-thermostat)

moving the order of the cards has no effect. always the tab with simple thermostat is empty.

kinghat commented 1 year ago

@Bone84, so its all good now?

Bone84 commented 1 year ago

no it still doesnt work, accidentally clicked on the close button, sorry.

kinghat commented 1 year ago

no it still doesnt work, accidentally clicked on the close button, sorry.

thanks for the reply. i tried with the equivalent stock ha cards and its seems fine:

https://user-images.githubusercontent.com/16073360/213304968-4ed31132-58f9-408a-9c66-9f05bfed7662.mp4

that config:

type: custom:tabbed-card
tabs:
  - card:
      type: vertical-stack
      cards:
        - type: thermostat
          entity: climate.ecobee
          name: bad
        - type: glance
          entities:
            - sensor.hacs
            - sensor.carbon_dioxide
            - sensor.carbon_monoxide
    attributes:
      label: Bad
  - card:
      type: vertical-stack
      cards:
        - type: thermostat
          entity: climate.ecobee
        - show_name: false
          show_icon: true
          show_state: true
          type: glance
          entities:
            - sensor.hacs
            - sensor.carbon_dioxide
            - sensor.carbon_monoxide
    attributes:
      label: Wohnzimmer
  - card:
      type: vertical-stack
      cards:
        - type: thermostat
          entity: climate.ecobee
        - show_name: true
          show_icon: false
          show_state: true
          type: glance
          entities:
            - sensor.hacs
            - sensor.carbon_dioxide
            - sensor.carbon_monoxide
    attributes:
      label: Arbeitszimmer

maybe try that config and see if it works or not. also you have a header: null in your third tab that probably shouldnt be there.