2024.8: Beautiful badges!

I rolled back to 2024.7.4 for now. Actually I thought it was broken in 2024.8.0 and fixed in .1

I think I have found the culprit. The following code will display a blank screen when saved. The if statement when used directly under action: will always result in a blank screen; when used under sequence: will not result in a blank screen.

alias: New Automation
description: ''
trigger: []
condition: []
action:
  - if:
    - condition: template
      value_template: "{{ states('input_boolean.xxx') == 'on' }}"
    then: null
mode: single

It does not matter what template is used, as it is the if statement which causes the issue.

1 Like

Hi,
I noticed that cards show the states of entity as raw data. I mean; without the unit of measure, time stamps for time entity (for sun next dawn it shows 2024-08-12T03:40:03+00:00 instead of August 12, 2024 at 5:40 AM), on/off instead of locked unlocked for locks, on/off instead of connected/disconnected for fritzbox internet connection, etcā€¦
(supervisor 2024.08, core 2024.8.1)
Iā€™ve rolled back to 2024.7 and all works fine.
Can someone help me?
Thanks for the great work
Stefano

Appears to be documented here - OTA Configuration Ā· zigpy/zigpy Wiki Ā· GitHub

My DB is smaller, around 9GB, but it took ~80 minutes to convert. But Iā€™m running it on quite decent HW:

  • HA as VM on ESXi (Core i9, Gen 13), 4 performance cores, 4GB of RAM
  • MariaDB in docker on Synology NAS (RS2418+) and SSD Volume in RAID-0
  • 10Gb link between ESX and NAS.

DB conversion is very high IOPS demanding operation, so if your DB is on normal HDD you should probably increase timing by factor of x5. CPU is less the problem in such scenario.

Is your suggestion related to this issue?

I donā€™t have any entities for my Yamaha because it wasnā€™t initialized at all.

Yes. You must have another issue.

I tired it on my DS218+ with two Samsung 8TB QVO drives.
One Core was all the time at 100% usage. Also, I guess those Drives arenā€™t really suitable for SQL workloadsā€¦

Yes, I did read it. I changed the entity ID but the result is still the same. The only integration I added is ZHA and IRobot and with whatever_entity belongs to homeassistant I am not messing around. Itā€™s good to know it is not an error but limitation still I am not able to update it via UI, Terminal nor VM itself. Everything freeze and the result is only killing the VM helps reboot the system. Couple or restarts did not help either. The only thing I did not try yet is changing the entity ID to something totally different like bunch of numbers or whatever nonsense characters.

Changing the entity ID wonā€™t help. Unique ID is a different property which can only be found by messing with the hidden storage folder.

Either way, you shouldnā€™t have gotten that notification for update.home_assistant_core_update because that should be automatically generated by the system, including a unique ID which allows you to edit from the UI.

By any chance, did you define it in yaml? Can you show your configuration.yaml with any personal details & passwords masked out?

That is my configuration.yaml

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:

themes: !include_dir_merge_named themes
 
automation: !include automations.yaml
 
script: !include scripts.yaml
 
scene: !include scenes.yaml

scripts.yaml, scenes.yaml are empty.

I donā€™t know anything about that themes: And there are some blueprints probably made by system for motion sensors, motion_light.yaml, notify_leaving_zone.yaml and confirmable_notification.yaml

automations.yaml

- id: '1722448417755'
  alias: chodba_pohyb
  description: ''
  trigger:
  - type: motion
    platform: device
    device_id: 3a97b2732d5965cb4bf351df0372eabc
    entity_id: 8847dbccc7403ed3a0c1d4fa2023422a
    domain: binary_sensor
  condition: []
  action:
  - type: turn_on
    device_id: da6da9f2045475a3e2dba68479a4a3d9
    entity_id: 180223f81e622000f0bd8f560fb2b687
    domain: light
  mode: single
- id: '1722448464485'
  alias: chodba_klid
  description: ''
  trigger:
  - type: no_motion
    platform: device
    device_id: 3a97b2732d5965cb4bf351df0372eabc
    entity_id: 8847dbccc7403ed3a0c1d4fa2023422a
    domain: binary_sensor
  condition: []
  action:
  - type: turn_off
    device_id: da6da9f2045475a3e2dba68479a4a3d9
    entity_id: 180223f81e622000f0bd8f560fb2b687
    domain: light
  mode: single
- id: '1722448851917'
  alias: kuchyn_pohyb
  description: ''
  trigger:
  - type: motion
    platform: device
    device_id: 6c00a55febfd4921150b6fb8bd6bd9f1
    entity_id: f10942b408e5112d917fb75b440aab94
    domain: binary_sensor
  condition: []
  action:
  - choose:
    - conditions:
      - type: is_illuminance
        condition: device
        device_id: 0728a8c881b106ef8d1d90d8f01688f2
        entity_id: 602735c498ecb9b628052e32c657c7e9
        domain: sensor
        below: 50
      sequence:
      - type: turn_on
        device_id: e26fa02bd1e64642b61a387fedabdd6c
        entity_id: 6804232ac54fddd31b9df02cacf08b03
        domain: light
      - type: turn_on
        device_id: cf4caea58aefc6827a186c74d643f318
        entity_id: 2d5e4260e6d9249a388be7685da20b97
        domain: light
    - conditions:
      - type: is_illuminance
        condition: device
        device_id: 0728a8c881b106ef8d1d90d8f01688f2
        entity_id: 602735c498ecb9b628052e32c657c7e9
        domain: sensor
        above: 50
      sequence:
      - type: turn_on
        device_id: e26fa02bd1e64642b61a387fedabdd6c
        entity_id: 6804232ac54fddd31b9df02cacf08b03
        domain: light
  mode: single
- id: '1722448889373'
  alias: kuchyn_klid
  description: ''
  trigger:
  - type: no_motion
    platform: device
    device_id: 6c00a55febfd4921150b6fb8bd6bd9f1
    entity_id: f10942b408e5112d917fb75b440aab94
    domain: binary_sensor
  condition: []
  action:
  - type: turn_off
    device_id: cf4caea58aefc6827a186c74d643f318
    entity_id: 2d5e4260e6d9249a388be7685da20b97
    domain: light
  - type: turn_off
    device_id: e26fa02bd1e64642b61a387fedabdd6c
    entity_id: 6804232ac54fddd31b9df02cacf08b03
    domain: light
  mode: single
- id: '1722450530275'
  alias: otevrene_dvere
  description: ''
  trigger:
  - type: opened
    platform: device
    device_id: 90bff7249fce900fc7dd0d101c7947f7
    entity_id: 1e0c86f1b8313741a9ca7f6608ede109
    domain: binary_sensor
  condition: []
  action:
  - service: notify.notify
    metadata: {}
    data:
      title: OtevřenĆ© dveře
      message: Někdo otevřel dveře
  mode: single
- id: '1722464218947'
  alias: loznice_svetlo
  description: ''
  trigger:
  - platform: event
    event_type: ios.action_fired
    event_data:
      actionID: FF876831-3BB0-41C9-8D5C-BA21E0B13F1D
  condition: []
  action:
  - service: light.turn_on
    metadata: {}
    data:
      brightness_pct: 1
      transition: 1
    target:
      device_id:
      - 0457f989248c900c1582958742e57f78
      - 01a21c218f0026d3ce6bf2fd1e303d59
  - delay:
      hours: 1
      minutes: 0
      seconds: 0
      milliseconds: 0
  - service: light.turn_off
    metadata: {}
    data: {}
    target:
      device_id:
      - 0457f989248c900c1582958742e57f78
      - 01a21c218f0026d3ce6bf2fd1e303d59
  mode: single
- id: '1722787881374'
  alias: vypadek_proudu
  description: ''
  trigger:
  - platform: homeassistant
    event: start
  condition: []
  action:
  - service: light.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: light.svetla
  - service: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: switch.zasuvky
  - service: notify.mobile_app_telefon
    metadata: {}
    data:
      message: HA zapnuto
      title: Reset
  mode: single
- id: '1722812276975'
  alias: konec_prani
  description: ''
  trigger:
  - type: no_vibration
    platform: device
    device_id: 6297bf3787ab4b307ab542214a51b347
    entity_id: ead0b61a73e760b54aa61b3735dfc1bf
    domain: binary_sensor
    for:
      hours: 0
      minutes: 20
      seconds: 0
  condition: []
  action:
  - service: notify.notify
    metadata: {}
    data:
      message: Pračka doprala
      title: Pračka
  mode: single
- id: '1722954538293'
  alias: vypnout_svetla
  description: ''
  trigger:
  - platform: zone
    entity_id: person.ja
    zone: zone.home
    event: leave
  condition: []
  action:
  - service: light.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: light.svetla
  - service: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: switch.zasuvky
  mode: single
- id: '1722968693641'
  alias: stetka_dock
  description: ''
  trigger:
  - platform: device
    device_id: 3966060ba97a2c91f48b67d969b78446
    domain: vacuum
    entity_id: dded4482a2b7d8ff2b5f785d1bf572c5
    type: docked
  condition: []
  action:
  - if:
    - type: is_on
      condition: device
      device_id: 3966060ba97a2c91f48b67d969b78446
      entity_id: 18b67ecd2af357226a86d806fc9e342c
      domain: binary_sensor
    then:
    - service: notify.mobile_app_telefon
      metadata: {}
      data:
        message: Å tětka uklidila, vysyp jĆ­ koÅ”
        title: Å tětka uklidila a mĆ” plnej koÅ”
    else:
    - service: notify.mobile_app_telefon
      metadata: {}
      data:
        message: Štětka uklidila
        title: Štětka uklidila
  - service: light.turn_off
    target:
      entity_id:
      - light.svetlo_chodba_dvere_light
      - light.svetlo_kuchyn_strop_linka_light
      - light.svetlo_loznice_strop_light
      - light.svetlo_obyvak_strop_dvere_light
      - light.svetlo_obyvak_strop_okno_light
      - light.svetlo_pracovna_light
    data: {}
  mode: single
- id: '1722970841325'
  alias: stetka_uklid
  description: ''
  trigger:
  - platform: state
    entity_id:
    - vacuum.stetka
    from: docked
    to: cleaning
  condition: []
  action:
  - service: light.turn_on
    metadata: {}
    data: {}
    target:
      entity_id:
      - light.svetlo_pracovna_light
      - light.svetlo_chodba_dvere_light
      - light.svetlo_kuchyn_strop_linka_light
      - light.svetlo_loznice_strop_light
      - light.svetlo_obyvak_strop_dvere_light
      - light.svetlo_obyvak_strop_okno_light
  mode: single
- id: '1723065785465'
  alias: loznice_strop
  description: ''
  trigger:
  - platform: event
    event_data:
      actionID: 5935C980-8E8E-463A-9E7E-EC34A5B0CE52
    event_type: ios.action_fired
  condition: []
  action:
  - type: turn_off
    device_id: 0457f989248c900c1582958742e57f78
    entity_id: 80d258d1c63b354ca2471f015968da58
    domain: light
  - type: turn_off
    device_id: 01a21c218f0026d3ce6bf2fd1e303d59
    entity_id: 33d6d2d3707f75239d12e4bf8748e3d6
    domain: light
  - type: turn_on
    device_id: 3863caa0ea78ee789dde217b8ae7a64e
    entity_id: 3120ebcac3b9a5a91f19cf340a29e13b
    domain: light
  - delay:
      hours: 1
      minutes: 0
      seconds: 0
      milliseconds: 0
  - type: turn_off
    device_id: 3863caa0ea78ee789dde217b8ae7a64e
    entity_id: 3120ebcac3b9a5a91f19cf340a29e13b
    domain: light
  mode: single
- id: '1723285949714'
  alias: stetka_zacit_vysavat
  description: ''
  trigger:
  - platform: device
    device_id: c4b153833e4b4e258ca72b4df1f33017
    domain: device_tracker
    entity_id: 2c9bfd59ac0eba08d54505d519036d0b
    type: leaves
    zone: zone.home
  condition: []
  action:
  - service: vacuum.start
    metadata: {}
    data: {}
    target:
      device_id: 3966060ba97a2c91f48b67d969b78446
  mode: single

After 2024.8.1 update, if I restart HA machine, it starts with latest 2024.7 version. Besides, I have not 2024.8 security copy, and if I have it manually, it doesnā€™t exist.

It is the first time I see this behaviour.

It is a known bug?

Regards

J

None. Same as Draghmar. Yamaha is not being initialized as start up. Trying with basic settings still not working.

media_player
  - platform: yamaha
    host: 192.168.0.188
    

Confirmed, then: null line causes the blank page bug. Just change the code to not include true: null lines.

So far everything works fine for me - with one exception: The tile-card does not properly update the status anymore.
It used to work fine and the entities still sport the proper status - but the tile card does not reflect the change from active to inactive anymore and look like the entity is active forever.

I guess thereā€™s no way to hide the icon in badges now? The icon is taking up priceless real state, especially on mobile.

1 Like

that configuration isnā€™t correct.

media_player:
            ^
        MISSING
  - platform: yamaha
    host: 192.168.0.188

If you do have that in your configuration, then look in your log for errors.

The colon is there.

Not sure what happened during the copy/paste.

Log:

Logger: homeassistant.components.media_player
Source: helpers/entity_platform.py:364
integration: Media player (documentation, issues)
First occurred: August 10, 2024 at 8:47:26 PM (1 occurrences)
Last logged: August 10, 2024 at 8:47:26 PM

Error while setting up yamaha platform for media_player
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/usr/src/homeassistant/homeassistant/components/yamaha/media_player.py", line 167, in async_setup_platform
    zone_ctrls = await hass.async_add_executor_job(_discovery, config_info)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/yamaha/media_player.py", line 136, in _discovery
    for recv in rxv.find():
                ^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rxv/__init__.py", line 19, in find
    return [RXV(**ri._asdict()) for ri in ssdp.discover(timeout=timeout)]
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rxv/ssdp.py", line 72, in discover
    res = rxv_details(url)
          ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rxv/ssdp.py", line 83, in rxv_details
    res = cElementTree.XML(requests.get(location).content)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/defusedxml/common.py", line 126, in fromstring
    parser.feed(text)
  File "/usr/local/lib/python3.12/xml/etree/ElementTree.py", line 1706, in feed
    self.parser.Parse(data, False)
ValueError: multi-byte encodings are not supported

I fear every update because Iā€™m forced to fix stuff that worked.
Instead of a home assistant user I feel like my home assistant maintainer.

4 Likes

@Calamar, youā€™re right - weā€™re all beta testers.

2 Likes