Update ... Oral B IO-Series - Card

Moin, falls jemend eine Oral B IO-Series nutzt und diese gern in HA einbinden möchte. Ich habe eine Karte erstellt mittels der custom:button-card. Der Sektor-Timer scheint aber nicht zu funktionieren, da kommen keine Werte.

Falls jemand Interesse hat … nachfolgend der Code:

type: custom:button-card
entity: sensor.io_series_6_7_0957
name: IO Series 6
entity_picture: https://brands.home-assistant.io/oralb/dark_icon@2x.png
show_name: true
show_state: false
show_icon: false
show_entity_picture: true
section_mode: true
custom_fields:
  time:
    card:
      type: custom:button-card
      name: Time
      entity: sensor.io_series_6_7_0957_dauer
      show_icon: false
      show_state: true
      styles:
        card:
          - background: transparent
          - width: 250px
          - height: 80px
          - border: 0
        name:
          - font-size: 18px
          - color: grey
        state:
          - font-size: 35px
  sektor_time:
    card:
      type: picture-elements
      image: /api/image/serve/3006c7cdf052a3159a6190396c35b357/512x512
      elements:
        - type: conditional
          conditions:
            - condition: state
              entity: sensor.io_series_6_7_0957_sektor
              state: sector 1
          elements:
            - type: image
              entity: sensor.io_series_6_7_0957_sektor
              style:
                top: 26%
                left: 26%
                width: 48%
              image: /api/image/serve/9c392eb08daca59b32218fc73492ad5c/512x512
        - type: conditional
          conditions:
            - condition: state
              entity: sensor.io_series_6_7_0957_sektor
              state: sector 2
          elements:
            - type: image
              entity: sensor.io_series_6_7_0957_sektor
              image: /api/image/serve/3576d69f7ecc66d91893f881b3acb9df/512x512
              style:
                top: 26%
                left: 74%
                width: 48%
        - type: conditional
          conditions:
            - condition: state
              entity: sensor.io_series_6_7_0957_sektor
              state: sector 3
          elements:
            - type: image
              entity: sensor.io_series_6_7_0957_sektor
              image: /api/image/serve/aa248faf27d4a2fb2b2e0cfcc68f523f/512x512
              style:
                top: 77.4%
                left: 25.1%
                width: 50%
        - type: conditional
          conditions:
            - condition: state
              entity: sensor.io_series_6_7_0957_sektor
              state: sector 4
          elements:
            - type: image
              entity: sensor.io_series_6_7_0957_sektor
              image: /api/image/serve/f2b909757875b4c77277d233a81fd86a/512x512
              style:
                top: 77.4%
                left: 75%
                width: 50%
  sektor:
    card:
      type: custom:button-card
      name: Sektor
      entity: sensor.io_series_6_7_0957_sektor
      show_icon: false
      show_state: true
      styles:
        card:
          - background: transparent
          - width: 200px
        name:
          - font-size: 14px
          - color: grey
        state:
          - font-size: 18px
  druck:
    card:
      type: custom:button-card
      name: Druck
      entity: sensor.io_series_6_7_0957_druck
      show_icon: false
      show_state: true
      state:
        - value: normal
          styles:
            card:
              - background: rgba(28, 179, 0, 0.5)
        - value: high
          styles:
            card:
              - background: rgba(179, 0, 0, 0.5)
      styles:
        card:
          - background: transparent
          - width: 200px
        name:
          - font-size: 14px
          - color: grey
        state:
          - font-size: 18px
  sektoren:
    card:
      type: custom:button-card
      name: Sektoren
      entity: sensor.io_series_6_7_0957_anzahl_der_sektoren
      show_icon: false
      show_state: true
      styles:
        card:
          - background: transparent
          - width: 100px
        name:
          - font-size: 14px
          - color: grey
        state:
          - font-size: 18px
  modus:
    card:
      type: custom:button-card
      name: Modus
      entity: sensor.io_series_6_7_0957_bursten_modus
      show_icon: false
      show_state: true
      styles:
        card:
          - background: transparent
          - width: 100px
        name:
          - font-size: 14px
          - color: grey
        state:
          - font-size: 18px
  status:
    card:
      type: custom:button-card
      name: Status
      entity: sensor.io_series_6_7_0957
      show_icon: false
      show_state: true
      styles:
        card:
          - background: transparent
          - width: 100px
        name:
          - font-size: 14px
          - color: grey
        state:
          - font-size: 18px
styles:
  custom_fields:
    time:
      - position: absolute
      - justify-self: center
      - align-self: null
      - top: 465px
      - z-index: 1
    sektor_time:
      - position: absolute
      - justify-self: center
      - align-self: null
      - top: 380px
      - width: 250px
    sektor:
      - position: absolute
      - justify-self: center
      - align-self: null
      - top: 290px
    druck:
      - position: absolute
      - justify-self: center
      - align-self: null
      - top: 200px
    sektoren:
      - position: absolute
      - justify-self: center
      - align-self: null
      - top: 120px
    modus:
      - position: absolute
      - justify-self: center
      - align-self: null
      - top: 120px
      - right: 10%
    status:
      - position: absolute
      - justify-self: center
      - align-self: null
      - top: 120px
      - left: 10%
  card:
    - border: 10px solid
    - border-inner-radius: 10px
  img_cell:
    - position: absolute
    - justify-content: center
  name:
    - position: absolute
    - justify-self: center
    - align-self: start
    - top: 70px
  state:
    - position: absolute
    - justify-self: start
    - padding-left: 10px
  icon:
    - position: absolute
    - justify-content: center
    - align-items: start
    - top: "-50px"
grid_options:
  rows: 11
  columns: 12

und die einzelnen Bilder:

Hast Du dann beim Zähneputzen in einer Hand das Handy mit der Companion-App und in der anderen Hand die Zahnbürste? :laughing:

grins … nein … der Badezimmerspiegel wird ein klein wenig gepimmt. (noch work in progress)

Ein Teil des Spiegels wird herausgeschnitten und durch halbdurchlässige Spiegelfolie ersetzt. Dahinter wird ein altes Tablet installiert mit einen extra Dashboard in Schwarz-Weiß. Dieses schimmert durch die Folie durch und zeigt einige Infos an, wie Uhrzeit, Datum, Wetter, Musiktitel und -Interpret.

Wenn Zähne geputzt werden geht diese Card als PopUp auf und zeigt dann ihre Infos durch die Spiegelfolie hindurch an.

Here is the updated version of the code you need to better arrange the columns / rows:

type: custom:button-card
entity: sensor.io_series_6_7_0957_stats
name: Child Toothbrush Habbits
entity_picture: https://brands.home-assistant.io/oralb/dark_icon@2x.png
show_name: true
show_state: false
show_icon: false
show_entity_picture: true
section_mode: true
custom_fields:
  sector_time:
    card:
      type: custom:button-card
      styles:
        grid:
          - grid-template-areas: "\"i\""
          - grid-template-columns: 1fr
          - grid-template-rows: min-content
          - justify-items: center
          - align-items: center
        card:
          - background: none
          - border: none
        custom_fields:
          pictures:
            - grid-area: i
          time:
            - grid-area: i
            - z-index: 2
      custom_fields:
        pictures:
          card:
            type: picture-elements
            image: /local/bespoke/oralb/toothbrush-full.png
            elements:
              - type: conditional
                conditions:
                  - condition: state
                    entity: sensor.io_series_6_7_0957_stats_sector
                    state: sector_1
                elements:
                  - type: image
                    entity: sensor.io_series_6_7_0957_stats_sector
                    style:
                      top: 26%
                      left: 26%
                      width: 48%
                    image: /local/bespoke/oralb/toothbrush-section-tl.png
              - type: conditional
                conditions:
                  - condition: state
                    entity: sensor.io_series_6_7_0957_stats_sector
                    state: sector_2
                elements:
                  - type: image
                    entity: sensor.io_series_6_7_0957_stats_sector
                    image: /local/bespoke/oralb/toothbrush-section-tr.png
                    style:
                      top: 26%
                      left: 74%
                      width: 48%
              - type: conditional
                conditions:
                  - condition: state
                    entity: sensor.io_series_6_7_0957_stats_sector
                    state: sector_3
                elements:
                  - type: image
                    entity: sensor.io_series_6_7_0957_stats_sector
                    image: /local/bespoke/oralb/toothbrush-section-bl.png
                    style:
                      top: 77.4%
                      left: 25.1%
                      width: 50%
              - type: conditional
                conditions:
                  - condition: state
                    entity: sensor.io_series_6_7_0957_stats_sector
                    state: sector_4
                elements:
                  - type: image
                    entity: sensor.io_series_6_7_0957_stats_sector
                    image: /local/bespoke/oralb/toothbrush-section-br.png
                    style:
                      top: 77.4%
                      left: 75%
                      width: 50%
        time:
          card:
            type: custom:button-card
            name: Time
            entity: sensor.io_series_6_7_0957_stats_duration
            show_icon: false
            show_state: true
            styles:
              card:
                - background: transparent
                - width: 250px
                - height: 80px
                - border: 0
              name:
                - font-size: 18px
                - color: grey
              state:
                - font-size: 35px
  sector:
    card:
      type: custom:button-card
      name: Sector
      entity: sensor.io_series_6_7_0957_stats_sector
      show_icon: false
      show_state: true
      styles:
        card:
          - background: transparent
          - width: 200px
        name:
          - font-size: 14px
          - color: grey
        state:
          - font-size: 18px
  pressure:
    card:
      type: custom:button-card
      name: Pressure
      entity: sensor.io_series_6_7_0957_stats_pressure
      show_icon: false
      show_state: true
      state:
        - value: normal
          styles:
            card:
              - background: rgba(28, 179, 0, 0.5)
        - value: high
          styles:
            card:
              - background: rgba(179, 0, 0, 0.5)
      styles:
        card:
          - background: transparent
          - width: 200px
        name:
          - font-size: 14px
          - color: grey
        state:
          - font-size: 18px
  sectors:
    card:
      type: custom:button-card
      name: Sectors
      entity: sensor.io_series_6_7_0957_stats_number_of_sectors
      show_icon: false
      show_state: true
      styles:
        card:
          - background: transparent
          - width: 100px
        name:
          - font-size: 14px
          - color: grey
        state:
          - font-size: 18px
  mode:
    card:
      type: custom:button-card
      name: Mode
      entity: sensor.io_series_6_7_0957_stats_brushing_mode
      show_icon: false
      show_state: true
      styles:
        card:
          - background: transparent
          - width: 100px
        name:
          - font-size: 14px
          - color: grey
        state:
          - font-size: 18px
  status:
    card:
      type: custom:button-card
      name: Status
      entity: sensor.io_series_6_7_0957_stats
      show_icon: false
      show_state: true
      styles:
        card:
          - background: transparent
          - width: 100px
        name:
          - font-size: 14px
          - color: grey
        state:
          - font-size: 18px
styles:
  grid:
    - grid-template-areas: |
        "i i i"
        "n n n"
        "status sectors mode"
        "pressure pressure pressure"
        "sector sector sector"
        "sector_time sector_time sector_time"
        "time time time"
    - grid-template-columns: 1fr 1fr 1fr
    - grid-template-rows: >-
        60px min-content min-content min-content min-content min-content
        min-content
    - justify-items: center
  name:
    - padding: 10px
  custom_fields:
    time: null
    sector_time:
      - padding: 10px
    sector:
      - padding: 10px
    pressure:
      - padding: 10px
    sectors:
      - padding: 10px
    mode: null
    status: null
    card: null
    img_cell: null
    name: null
    state: null
    icon: null

I like this one: