Quantcast
Channel: Configuration - Home Assistant Community
Viewing all 108185 articles
Browse latest View live

Voice PE not handling long replies

$
0
0

I have noticed when my Ollama LLM has a pretty long reply back to me the Voice PE starts great and is talking and after a bit just kills the speaker and led ring while it was still trying to talk. Is there some default delay/shutdown setting I can adjust for this? Or some kind of stay awake command I can embed in its speech? Anything that keeps them from shutting the mic off on my poor LLM :slight_smile: Thanks!

1 post - 1 participant

Read full topic


NUT Ups alert: battery needs to be replaced?

$
0
0

All of a sudden my phone got delivered these alerts… Still new to the UPS and NUT (been running it for a week or 2 now).
Which makes the notification all the more remarkable to me. It is a new device, so I wouldnt expect the battery to be in need of replacement at all :wink:

Otoh, the entity does show it is from 2001 ??

Ive considered that a NUT issue, but give the notification now I start to wonder…

Running the default automation(well, after this I now added a timestamp in the message) from the documentation, so at least I am sure now events are emitted, and picked up correctly

  - id: ups_changed_state
    alias: UPS changed state
    trigger:
      - platform: event
        event_type: nut.ups_event
    action:
      - service: notify.mobile_app_me
        data:
          title: UPS changed state
          message: >
            {{now().strftime('%X')}}: {{ trigger.event.data.notify_msg }}
          data:
            push:
              sound:
                name: default
                critical: 1
                volume: 1.0

1 post - 1 participant

Read full topic

Card-mod issue when in conditional card

$
0
0

Hi,

I put on a picture-elements card exact the same state-icon twice, except only the first one within a conditional card.

When switch.smart_plug_luchtbevochtiger_on_off is off :

When switch.smart_plug_luchtbevochtiger_on_off is on :

Only the second state-icon works fine as expected.

Any idea ?

type: picture-elements
elements:
  - type: conditional
    conditions:
      - condition: state
        entity: input_boolean.toggle_verwittigen_vullen_watertank_luchtbevochtiger
        state: "on"
    elements:
      - type: state-icon
        style:
          top: 71%
          left: 84%
        entity: switch.smart_plug_luchtbevochtiger_on_off
        icon: mdi:cup-water
        tap_action:
          action: toggle
        hold_action:
          action: perform-action
          target: {}
          perform_action: script.teller_watertank_luchtbevochtiger_initialiseren
        card_mod:
          style:
            state-badge:
              $:
                ha-state-icon:
                  $:
                    ha-icon:
                      $: |
                        ha-svg-icon {
                          {% if is_state('switch.smart_plug_luchtbevochtiger_on_off', 'on') %}
                            color: yellow;
                          {% else %}
                            color: white;
                          {% endif %}
                        }
  - type: state-icon
    style:
      top: 82%
      left: 84%
    entity: switch.smart_plug_luchtbevochtiger_on_off
    icon: mdi:cup-water
    tap_action:
      action: toggle
    hold_action:
      action: perform-action
      target: {}
      perform_action: script.teller_watertank_luchtbevochtiger_initialiseren
    card_mod:
      style:
        state-badge:
          $:
            ha-state-icon:
              $:
                ha-icon:
                  $: |
                    ha-svg-icon {
                      {% if is_state('switch.smart_plug_luchtbevochtiger_on_off', 'on') %}
                        color: yellow;
                      {% else %}
                        color: white;
                      {% endif %}
                    }
image: /local/images/floorplan/downstairs/a downstairs floorplan.png

1 post - 1 participant

Read full topic

BUG: yaml editor search error in automation

$
0
0

It looks there is search error in yaml editor of automations. When searching for a word that is out of view, the editor do not move to the position that is found. If you do so in yaml of raw dashboard it works fine ?

1 post - 1 participant

Read full topic

Trying to use marquee with state_attr

$
0
0

Hello, I’m trying to configure a marquee card with what music I’m playing into my smartphone.
I used the following code into a button-card:

custom_fields:
      media: |
        [[[
          return `<marquee> <ha-icon
            icon="mdi:music"
            style="width: 20px; height: 20px;"></ha-icon
            <span> ${{ state_attr('sensor.m2007j22g_media_session', 'album_com.maxmpz.audioplayer') }}
               </marquee>`
        ]]]

But I get the error:

How to do to get the album title?

1 post - 1 participant

Read full topic

LLM Agent for Google Search with Assist in Home Assistant

$
0
0

Since Google Generative AI now supports live web search, I created a second conversation agent in Home Assistant — I call it google_search — dedicated only to online queries.

Meanwhile, my main agent handles home automation commands.



How it works

  1. I created an intent_script called search_on_google
  2. When I say “Search with Google [query]”, Assist:
  • routes the query to the google_search agent via conversation.process
  • extracts the LLM response from response.speech.plain.speech
  • reads it aloud as speech

intent script

search_on_google:
  description: >
    # This is your search tool for the Google Search System.
    # Returns:
    #   speech: 'Textual answer generated by the Google Search assistant'
    # Voice Assistant Tips:
    #   Use this intent to ask the assistant anything via Google.
    #   Just provide a clear query.
    #   Say: "search on google [your query]"
    #   Example: "search on google what's the current value of Bitcoin"
    #   The assistant will search and speak the answer for your human.
    #   You can also trigger it programmatically like:
    #     search_on_google{"query": "what's the current value of Bitcoin"}
    parameters:
      query: # The question or search term for Google
        required: true
    action:
      - action: conversation.process
        metadata: {}
        data:
          text: "{{ query }}"
          agent_id: conversation.google_search
        response_variable: response_text
      - stop: ""
        response_variable: response_text
    speech:
      text: >
        that's what i found for you:
        {{ action_response.response.speech.plain.speech if action_response.response.speech.plain.speech is defined else "sorry, no results." }

and on config/custom_sentences/en/slot_types.yaml

# config/custom_sentences/en/slot_types.yaml
lists:

query:
  wildcard: true

And in the system prompt of Google Generative AI (main assistant):

# Google Search:
- When the user says "search with Google [query]", use:
  intent: search_on_google
- The query must be textual, clear, and complete.
- The assistant should reply with a spoken summary of the search result.
- Valid examples:
  - "Search with Google the meaning of entropy"
  - "Search with Google what's the value of Bitcoin"
- If the query is empty or too generic, ask the user to rephrase it.

Now, when I say “search with Google [anything]”, I get the response generated by the google_search agent.


1 post - 1 participant

Read full topic

Sonoff E Plus Stick - Flashing

$
0
0

After some advice on here, Ive just purchased two of these;

The aim being to flash them with Router firmware and extend my zigbee network into another building.

However, when following various guides online, and specifically youtube, I cant get it completed.

I can plug the dongle into my laptop, and it shows up in device manager (windows 10). Initially it showed up with a yellow warning, so I downloaded the CP210x USB to UART Bridge VCP Drivers from Silicon Labs. It now shows up on COM5

I then installed 3 python scripts;

Backup Dongle
python -m pip install --upgrade pip
pip install wheel pyserial intelhex python-magic
pip install zigpy-znp

All good. However, when I then try to backup the dongle, which I guess is the first form of communication, it all falls over and I just get a timeout error;

python -m zigpy_znp.tools.nvram_read COM5 -o nvram_backup.json

results in

raise TimeoutError from exc_val

TimeoutError

Things I have done to test;

I found this online tool, which doesnt flash with the router firmware I want to use, but I thought would be usefulf to test if any communication could happen;

It came back with an error and couldnt connect to the dongle.

As I bought two, Ive also tried everything with both dongles, so I assume I can rule-out broken hardware. The two dongles show up on different com ports (one com6 one com5), and Ive tried adjusting the script accordingly.

I also read that there can be issues with the latest version of the vcp drivers, so I completly uninstalled, and downgraded to an older version. The outcome was the same.

Does anyone know how I might be able to flash thee with the router firmware?

Thanks guys.

2 posts - 2 participants

Read full topic

Speak German dates nicely using Piper

$
0
0

Unfortunately, the current German Piper voice models

  • don’t have a built-in date conversion
  • can’t speak ordinal numbers
  • and we don’t (yet?) have even rudimentary SSML support like we had in Larynx, a Piper predecessor.

This leads to German dates like 2025-04-15 or 15.04.2025 being spoken as 2025 Strich 04 Strich 15, or 15 Punkt 04 Punkt 2025. Ordinal numbers in dates like 15. April are spoken as 15 (sentence pause) April.

After a while, this tends to get on one’s nerves, especially when you’re still half-sleepy and your otherwise fine-tuned Good Morning wakeup routine can’t even speak today’s date or that of your next calendar appointment correctly. It also makes for a bad WAF… (PAF?)

So until we get better language models or at least a rudimentary SSML, I came up with some templating code that converts a datetime value like now() into a nicely speakable date string. This is for German, you might want to adapt it for your language. You can use it in scripts and automations.

Here is an example of what it does, using Developer Tools → Templates:

And here is the templating code from this example:

{% set datum = now() %}
{# This is how you can use an arbitrary date #}
{# set datum = now().fromisoformat('2025-12-24') #}

{% set weekday = datum.weekday() %} {# 0..6 = Mon..Sun #}
{% set day = datum.day %}
{% set month = datum.month %}
{% set year = datum.year %}

{# 0..6 = Monday .. Sunday #}
{% set weekdays = [
  'Montag',
  'Dienstag',
  'Mittwoch',
  'Donnerstag',
  'Freitag',
  'Samstag',
  'Sonntag'
  ] %}

{# 0..31 ordinal day names for TTS #}
{% set ordinal = [
  None,
  'erste',
  'zweite',
  'dritte',
  'vierte',
  'fünfte',
  'sechste',
  'siebte',
  'achte',
  'neunte',
  'zehnte',
  'elfte',
  'zwölfte',
  'dreizehnte',
  'vierzehnte',
  'fünfzehnte',
  'sechzehnte',
  'siebzehnte',
  'achtzehnte',
  'neunzehnte',
  'zwanzigste',
  'einundzwanzigste',
  'zweiundzwanzigste',
  'dreiundzwanzigste',
  'vierundzwanzigste',
  'fünfundzwanzigste',
  'sechsundzwanzigste',
  'siebenundzwanzigste',
  'achtundzwanzigste',
  'neunundzwanzigste',
  'dreißigste',
  'einunddreißigste'
  ] %}

{# month names #}
{% set months = [
  None,
  'Januar',
  'Februar',
  'März',
  'April',
  'Mai',
  'Juni',
  'Juli',
  'August',
  'September',
  'Oktober',
  'November',
  'Dezember'
  ] %}

{{ datum }}

{{ weekdays[weekday]}}, der {{ ordinal[day] }} {{ ordinal[month] | capitalize }} {{ year }}.
{{ weekdays[weekday]}}, der {{ ordinal[day] }} {{ months[month] | capitalize }} {{ year }}.
Am {{ weekdays[weekday]}}, dem {{ ordinal[day] }}n {{ ordinal[month] | capitalize }}n {{ year }} …
Am {{ weekdays[weekday]}}, dem {{ ordinal[day] }}n {{ months[month] }} {{ year }} …
Es ist {{ datum.strftime('%H:%M')}}.

Note: The current German language models already speak a time like 11:44 as Elf Uhr vierundvierzig.

It’s a lengthy workaround, but it makes for a much higher TTS acceptance, especially with family members and guests.

For easier re-use, we could maybe even make it into a macro, or a script. Suggestions welcome.

1 post - 1 participant

Read full topic


Zigbee2MQTT watchdog gives up? How to configure?

$
0
0

I woke up this morning to my smart home not functioning and it turns out that Zigbee2MQTT was not running. I told it to start, and everything was OK. Looking back at the logs, it appears that around 3am it couldn’t connect to the coordinator. It appears that it tried to start and connect exactly 10 times, before giving up. I’m still trying to figure out what happened to the coordinator, as the coordinator logs report no issues, but I’m also wondering why Zigbee2MQTT gave up after 10 retries as I think eventually it would have connected. Is there a way to configure this? I’m assuming this was watchdog that is starting it even though it says “Starting Zigbee2MQTT without watchdog”?

I’m using Home Assistant:

  • Core2025.4.2
  • Supervisor2025.04.0
  • Operating System15.1

Zigbee2MQTT is installed as an addon.

03:12:54] INFO: Preparing to start...
[03:12:54] INFO: Socat not enabled
[03:12:55] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-04-15 03:12:56] info: 	z2m: Logging to console, file (filename: log.log)
[2025-04-15 03:12:56] info: 	z2m: Starting Zigbee2MQTT version 2.2.1 (commit #unknown)
[2025-04-15 03:12:56] info: 	z2m: Starting zigbee-herdsman (3.4.11)
[2025-04-15 03:12:56] info: 	zh:ember: Using default stack config.
[2025-04-15 03:12:56] info: 	zh:ember: ======== Ember Adapter Starting ========
[2025-04-15 03:12:56] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash: ASH COUNTERS since last clear:
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Total frames: RX=0, TX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Cancelled   : RX=0, TX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   DATA frames : RX=0, TX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   DATA bytes  : RX=0, TX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Retry frames: RX=0, TX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   ACK frames  : RX=0, TX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   NAK frames  : RX=0, TX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   nRdy frames : RX=0, TX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   CRC errors      : RX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Comm errors     : RX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Length < minimum: RX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Length > maximum: RX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Bad controls    : RX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Bad lengths     : RX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Bad ACK numbers : RX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Out of buffers  : RX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Retry dupes     : RX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   Out of sequence : RX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash:   ACK timeouts    : RX=0
[2025-04-15 03:12:56] info: 	zh:ember:uart:ash: ======== ASH stopped ========
[2025-04-15 03:12:56] error: 	zh:ember:uart:ash: Failed to init port with error Error: getaddrinfo ENOTFOUND slzb-06m.local
[2025-04-15 03:12:56] error: 	z2m: Error while starting zigbee-herdsman
[2025-04-15 03:12:56] error: 	z2m: Failed to start zigbee-herdsman
[2025-04-15 03:12:56] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-04-15 03:12:56] error: 	z2m: Exiting...
[2025-04-15 03:12:56] error: 	z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
    at EmberAdapter.initEzsp (/app/node_modules/.pnpm/zigbee-herdsman@3.4.11/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:672:19)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at EmberAdapter.start (/app/node_modules/.pnpm/zigbee-herdsman@3.4.11/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1538:24)
    at Controller.start (/app/node_modules/.pnpm/zigbee-herdsman@3.4.11/node_modules/zigbee-herdsman/src/controller/controller.ts:136:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:104:13)
    at start (/app/index.js:149:5)
[03:12:57] INFO: Preparing to start...
[03:12:57] INFO: Socat not enabled
[03:12:57] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.

1 post - 1 participant

Read full topic

Issue with formatting Sensor States

$
0
0

Hi, New to HA and coding in YAML etc, so please be gentle!

I have been integrating HA with Crestron and it seems to be going OK.

To the issue.
I have a number of temo sensors in HA and am successfully sending the info to Crestron but I have a couple of issues.
When I use

"{{states('sensor.hall_room_stat_current_temperature', with_unit=True, rounded=False)}}"

I get a strange hex character between the temp and degrees C - Hex C2
16.7 \xC2\xB0C

My first question is
How do I get it not to insert the hex C2 character please
Idealy I would prefer the temp, degree symbol and C or a line like this
16.7\xB0C - which a Crestron TP would understand and display it correctly.

2nd
When the temp is say 18 how do I format it so it becomes 18.0, please

TIA,
Paul

2 posts - 2 participants

Read full topic

TypeError: 'str' object is not callable

$
0
0

Hi folks,

I’m having a problem with a script:

It says:

Error: Error rendering data template: TypeError: ‘str’ object is not callable

action: input_datetime.set_datetime
target:
  entity_id: input_datetime.last_time_detected_false_bedroom
data:
  timestamp: '{{ now().timestamp() }}'

I’m testing using the dev tools templates and it works just fine.

Also if a change the line ‘{{ now().timestamp() }}’ for a unix timestamp directly the whole script works, so the issue is in that line.

According to the doc Input Datetime - Home Assistant thats the way to set the timestamp so I don’t understand why is not working in the runtime of the script

Any help is greatly appreciated. Thanks!

2 posts - 2 participants

Read full topic

Whatsapp Mitra Tokopedia 082227273511

$
0
0

Anda dapat menghubungi Tokopedia melalui WhatsApp di nomor 082227273511

1 post - 1 participant

Read full topic

No response from llama on voice PE

$
0
0

My speech-to-phrase pipeline has Dolphin3 AI running locally for the conversation agent. My pipeline is set to prefer handling commands locally. Piper is used for text to speech. When I give it a controll command it says “done” when it finishes. When I type in a quesition using Assist I get a good answer in about 3 seconds. The question is: “What can you tell me about the Lusitania?”. When I use my Voice PE with the same pipeline I get no response. There’s nothing in the logs. Does my question get flushed if there’s nothing to control? If not, what am I doing wrong or am I just expecting more than the system provides?

4 posts - 2 participants

Read full topic

EVCC MQTT KNX - How do I use HA as MQTT Broker to connect EVCC to KNX entity?

$
0
0

Goal:
I want to turn a KNX switch on/off based on EVCC charger as heatpump, based on excess energy. KNX switch allows Heatpump for pool to work if target temp != actual temp.

Plan:
EVCC publishes on topic evcc/loadpoints/2/Freigabe_WP_Teich = true which is command_topic of switch.freigabe_waermepumpe_teich_mqtt = true if sufficient excess Energy is available at home.
This change triggers an automation Automation_Freigabe_Waermepumpe_Teich_EIN
Automation turns on switch.freigabe_waermepumpe_teich_knx
Heatpump is allowed to heat and warm water in pool based on PV Energy :1st_place_medal:

Workings:
MQTT Mosquitto Plugin running :white_check_mark:
EVCC connected and pub to MQTT Broker. Confirmed on EVCC and used in HA as badge :white_check_mark:
MQTT Switch exists as HA Entity switch.freigabe_waermepumpe_teich_mqtt :white_check_mark:
KNX Switch integrated as HA Entity switch.freigabe_waermepumpe_teich_knx :white_check_mark:
KNX HA Entity changes/updates bidirectionally correctly send on/received from KNX bus :white_check_mark:
KNX Switch Config:

switch:
  #KNX Switches
  #UG Technik
  - address: "3/7/11"
    name: Freigabe Waermepumpe Teich KNX
    state_address: "3/7/21"

Issues:

  1. EVCC seems not to be able to subscribe to MQTT topic. Changes made to switch are published to broker - visible in MQTT Explorer:

MQTT based switch config - tried via value_template, state_on/off and payload_on/off:

switch:
  - name: "Freigabe Waermepumpe Teich MQTT"
    unique_id: freigabe_waermepumpe_teich_mqtt
    command_topic: "evcc/loadpoints/2/Freigabe_WP_Teich"
    state_topic: "evcc/loadpoints/2/Freigabe_WP_Teich_Status"
    payload_on: "true"
    payload_off: "false"
    #    state_on: "true"
    #    state_off: "false"
    optimistic: false
    qos: 0
    retain: true
#    value_template: "{{ True | typeof }}"
  1. EVCC changes are not published to MQTT Topic in Broker. Log Entries Trace on MQTT from EVCC when making changes:
[mqtt ] TRACE 2025/04/15 12:15:58 send evcc/loadpoints/1/chargePower: '0'
[mqtt ] TRACE 2025/04/15 12:16:05 send evcc/loadpoints/2/batteryBoost: 'false'
[mqtt ] TRACE 2025/04/15 12:16:05 send evcc/loadpoints/2/mode: 'now'
[mqtt ] TRACE 2025/04/15 12:16:05 send evcc/updated: '1744712165'
[mqtt ] TRACE 2025/04/15 12:16:06 send evcc/loadpoints/2/batteryBoost: 'false'
[mqtt ] TRACE 2025/04/15 12:16:06 send evcc/loadpoints/2/mode: 'off'
[mqtt ] TRACE 2025/04/15 12:16:06 send evcc/updated: '1744712166
  1. Automation does not work. Changing state manually on MQTT Switch, does not lead to a state change in KNX switch.
alias: Automation_Freigabe_Waermepumpe_Teich_EIN
description: ""
triggers:
  - trigger: state
    entity_id:
      - switch.freigabe_waermepumpe_teich_mqtt
    from: "false"
    to: "true"
conditions: []
actions:
  - action: switch.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: switch.freigabe_waermepumpe_teich_knx
mode: single

Setup:
EVCC 203.1 running on RaspiPi5 as service
HA running on RaspiPi4B booting from SSD Drive (Core 2025.4.2; Supervisor 2025.04.0; Operating System 15.1)
MQTT Mosquitto integration running on HA

1 post - 1 participant

Read full topic

Zigbee dinge integration with Zigbee2MQTT

$
0
0

Hi all,

I recently installed Zigbee2MQTT. To get It working I needed to remove the automatic discovered USB dongle integration. Everything works perfect, only now in the integration section the dongle is recognized again.

Do I add the dongle here too or do I just ignore that it has been found?

Don’t want to break everything again :confused:

Regards,
Gijs

1 post - 1 participant

Read full topic


"starting conversations" as notification e.g. garage door open

$
0
0

After watching the State of the Open Home 2025 and re-reading the release notes for 2025.4 I’m focusing in on the new ability for voice assistants to “start conversations”. For my first go at this, I am interested in the exact scenario outlined in the notes: having my VPE notify me that my garage door is still open and prompting me to close it.

I have already built automations that notify me every 5m if I’ve left my garage door open and allowing me to close them by simple button press on my phone/watch. Is there a simple way to extend these automations?

I’m hoping someone can share the work they’ve done on a notification automation. Bonus points if it includes the ability to “announce” (i.e. temporarily mute media players).

Thank you in advance!
J

1 post - 1 participant

Read full topic

Looking for a digital Butler

$
0
0

Hello,

for quite some Time I got an idea in my head and I think it would be incredibly useful, but I don’t have the knowledge to solve it.

I’d love to have an way to store random “knowledge” in HA and get it back later.

Example input / output (preferrably via voice)

Wife: Salmon the fridge
Me: 9 x 45 Screw in drawer 9
Me: ESP32 Board in Kitchen Cabinet
Wife: Ice Cream in the Freezer
Wife: Salmon out of the fridge

Me: Where are my ESP32 boards?
Me: Do we still have salmon?

And HA could give appropriate answers. Anyone ever created somehting like this? I think it should be absolutley doable via an LLM but I have no idea where I’d save the data from the inputs persitant.

Have a great week

1 post - 1 participant

Read full topic

Reload blueprint after changing an option

$
0
0

Hi,
I’ve just started building some blueprints. To test them, I would like to edit the automation from the UI where I can change entities, booleans, etc. However, after saving it, when I execute the automation, it still runs with the original presettings, despite showing the new ones when editing it. I’ve tried reloading the automations and all the yaml but had no luck. What’s the best course of action?
Thanks

1 post - 1 participant

Read full topic

Struggling to get the Template sensor to work

$
0
0

I have 2x HomeWizard batteries, integrated with Home Assistant (2025.4.2).

Looking to add a “Maximum State of Charge % Today” sensor.

  • The sensor must reset to 0% at midnight
  • The sensor must maintain the maximum percentage,
  • as well as the time that the max was last updated

Statistics sensors do not reset at midnight, and after a lot of searching it seems that Home Assistant does not have this capability. Template Sensors seem to be the way to go, so I copied an example from this forum. I had to modify it due to (new) syntax changes.

My idea is to add a time trigger that fires at 00:00, resetting the value to 0%. The sensor should also evaluate and update whenever the input sensors change.

The code below does not work as expected; I added additional numeric_state triggers (above -1) to hopefully update the value but that does not work either.

The inputs are sensor.homewizard_accu_1_laadpercentage and sensor.homewizard_accu_2_laadpercentage.

The derived “max value today” sensors are “HomeWizard Accu 1 max lading vandaag” and “HomeWizard Accu 2 max lading vandaag”

I was hoping this would be easy, but it seems I need some help :wink:
Does anyone have suggestions on how to get this working? Thanks!

template:
  - trigger:
      - trigger: time_pattern
        hours: "0"
        minutes: "0"
      - trigger: numeric_state
        entity_id: sensor.homewizard_accu_1_laadpercentage
        above: -1
      - trigger: numeric_state
        entity_id: sensor.homewizard_accu_2_laadpercentage
        above: -1
    sensor:
      - name: HomeWizard Accu 1 max lading vandaag
        unit_of_measurement: "%"
        state_class: measurement
        device_class: battery
        availability: "{{ states('sensor.homewizard_accu_1_laadpercentage') | is_number}}"
        state: >
          {% set pct_new = states('sensor.homewizard_accu_1_laadpercentage') | float(0) %}
          {{ [pct_new, this.state | float(0)] | max if trigger.platform != 'time' else pct_new }}
        attributes:
          max_updated: "{{ states.sensor.homewizard_accu_1_max_laadpercentage.last_changed | as_local }}"
      - name: HomeWizard Accu 2 max lading vandaag
        unit_of_measurement: "%"
        state_class: measurement
        device_class: battery
        availability: "{{ states('sensor.homewizard_accu_2_laadpercentage') | is_number}}"
        state: >
          {% set pct_new = states('sensor.homewizard_accu_2_laadpercentage') | float(0) %}
          {{ [pct_new, this.state | float(0)] | max if trigger.platform != 'time' else pct_new }}
        attributes:
          max_updated: "{{ states.sensor.homewizard_accu_2_max_laadpercentage.last_changed | as_local }}"

2 posts - 2 participants

Read full topic

Reading ZHA sw_build_id 60 times

$
0
0

Hi,
after two years I decided I ought to review and patch any Philips Hue devices in case that would improve general Zigbee reliability (hint two targeted bulbs are working better).

All my Zigbee devices are attached to the ZHA antenna in HA yellow.

Due to Philips not releasing any patches for their hardware. the update process is far from ideal.

  1. Install a Hue Hub
  2. Turn off auto updates
  3. Get the device pairing code - fortunately I saved them in a file
  4. Add the device to the Hue Hub - this removes it from HA
  5. Wait for sw update to be prepared (an hour)
  6. Repeatedly come back to the update page to check for the update now button
  7. Update - around 10mins.
  8. Delete the device from Hue Hub
  9. Add ZHA device in HA - old devices are remembered - just re select the Area.
  10. Repeat 60 times.

To check the latest firmware is applied, in HA > device > manage Zigbee device > Read Attribute > sw_build_id.

Is there a way to run a script that can iterate over each device and extract the sw_build_id in case I missed some?

1 post - 1 participant

Read full topic

Viewing all 108185 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>