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

Help with sentence wildcard problem

$
0
0

I have an issue I’m hoping someone can help with regarding voice processing. When HA’s built-in intents were in their infancy, I setup an automation with a sentence catch-all wildcard that directed all commands to a python program for processing (effectively avoiding the built-in intents altogether).

Given the maturing of HA voice and continued conversation etc I would like to use the built-in intents again. The problem I have os that even if I disable/delete the sentence catch-all automation, HA still matches all incoming voice requests to that wildcard (confirmed by using the Assist test feature in developer tools) and will not trigger any built-in intent.

Does anyone know how I can get rid of this wildcard trigger matching? Any clues would be greatly appreciated.

1 post - 1 participant

Read full topic


Creating AC isolation switch for Fronius Gen24 inverter within HA

$
0
0

Hi,

Looking to create a switch within HA dashboard that will enable us to turn our Fronius Gen24 on and off remotely. Is this possible?

Thanks!

1 post - 1 participant

Read full topic

Error with "LEGACY_SYNTAX" for Template Cover Configuration in configuration.yaml

$
0
0

Hi everyone,

I’m fairly new to Home Assistant and don’t have much coding experience. I’ve been trying to create a custom cover with a 75% limit for opening using some help from AI, but I’m getting an error related to the following services:

  • service: cover.set_cover_position
  • service: cover.close_cover
  • `service: cover.stop_cover

The error I get is:
String does not match the pattern of “LEGACY_SYNTAX^”`

I would really appreciate it if someone could explain what’s going wrong and how I can fix it.

Thanks so much in advance!

Here’s the code I’m using:

  - platform: template
    covers:
      fyrtur_limited:
        friendly_name: "Fyrtur (75%)"
        unique_id: fyrtur_limited
        position_template: "{{ state_attr('cover.ikea_of_sweden_fyrtur_block_out_roller_blind', 'current_position') }}"
        open_cover:
          service: cover.set_cover_position
          data:
            entity_id: cover.ikea_of_sweden_fyrtur_block_out_roller_blind
            position: 75
        close_cover:
          service: cover.close_cover
          data:
            entity_id: cover.ikea_of_sweden_fyrtur_block_out_roller_blind
        stop_cover:
          service: cover.stop_cover
          data:
            entity_id: cover.ikea_of_sweden_fyrtur_block_out_roller_blind```

2 posts - 2 participants

Read full topic

Extract recorded geolocations of a given tracker

$
0
0

I’m a newbie to HA.
I have a fon configured to send geolocations via the companion app.
I would like to extract this information directly from the database via SQLite with a statement similar to:

SELECT WhatEverFields FROM WhatEverTable
WHERE entity_id = ‘DEVICE_TRACKER_ID’
AND last_updated BETWEEN ‘START_TIME’ AND ‘END_TIME’;

result should be a table of the geolocations for this specific tracker that are recorded in the given time interval.

Any ideas?

TIA, mpe42

2 posts - 2 participants

Read full topic

Bayesian Sensor not updating (always showing 0% no matter how the inputs change)

$
0
0

Hello,

I have several presence sensors (Aqara FP1E) and the iBeacon signal of my Android phone (using the companion app as a transmitter and my HA host, which is in the same room as the presence sensors, as the receiver) and now want to combine all of these with a Bayesian sensor to compensate false-negatives of the presence sensors (while I am sleeping) and false-positives of the BLE sensor (when I leave my phone in the room).
I currently have the following YAML:

binary_sensor:
- platform: bayesian
  name: "Anwesenheit Bayesian"
  prior: 0.5
  probability_threshold: 0.8
  unique_id: 9872abdc-8ca5-4d66-801d-4685f93126b7
  device_class: occupancy
  observations:
   - platform: template
     value_template: >
       {{states("binary_sensor.fpe1e_1_presence")=="on"}}
     prob_given_true: 0.9
     prob_given_false: 0.5
   - platform: template
     value_template: >
       {{states("binary_sensor.fpe1e_2_presence")=="on"}}
     prob_given_true: 0.9
     prob_given_false: 0.5
   - platform: template
     value_template: >
       {{states("binary_sensor.fpe1e_3_presence")=="on"}}
     prob_given_true: 0.9
     prob_given_false: 0.5
   - platform: template
     value_template: >
       {{states("device_tracker.handy_aaron_ble")=="home" and states("sensor.handy_aaron_distance")|float(11) < 8}}
     prob_given_true: 0.7
     prob_given_false: 0.4

However, the binary sensor stays ‘off’ all the time even if all 3 FP1Es are triggered and my phone is within BLE range.
What could be the cause of this issue?

Best regards
Aaron

1 post - 1 participant

Read full topic

Re-Authorization of Tapo Cameras

$
0
0

help please!

Perhaps also a stupid question - on the subject of re-authentication of the Tapo cameras. Every 12-18 hours I get the message in HA that I have to integrate/authenticate the cameras again.

Error “Authentication for 192.xxx.xxx.xxx has expired” → OK
Next page: “your password(s) changed, please update the password” → OK
next Page: “Cloud password” → OK

Funny thing is, I just click OK three times and it works fine again - until next time…



What did I / where did I set something wrong?

Thanks for your help, Mike

1 post - 1 participant

Read full topic

Configuration esphome mcp23017 dallas temp ds18b20

$
0
0

Good morning everyone
I’m creating a system using esphome mcp23017 and dallas ds18b20.
in the esphome configuration I’m trying to configure a pin of the mcp23017 as a one-wire pin but esphome gives me an error
default configuration of one-wire gpio pin:
one_wire:

  • platform: gpio
    pin: GPIOXX

I tried to write the configuration like this but it doesn’t work.

one_wire:

  • platform: gpio
    name: “MCP23008 Pin #0
    pin:
    mcp23xxx: mcp23008_hub
    # Use pin number 0
    number: 0
    Is it possible to do it?
    Thanks in advance

2 posts - 2 participants

Read full topic

Starting advice for a Zigbee newbie

$
0
0

Hi,
Currently I have a wild mix of different kinds of devices, but after reading a lot, I want to start building a Zigbee network and use these devices in the future.

As a first device, I want to have a 4-button remote control to trigger some actions on HA. I thought of this kind (option 1, option 2), but don’t understand the difference. They look identical to me except for the price.

Additionally, I will need a Zigbee Transceiver for HA. After some reading, I am still not sure if the Sonoff Dongle-E or Dongle-P would be the better option - lots of different opinions there and I guess some of them are also outdated. Would either of those be advisable or should I rather go with a SMLIGHT SLZB-06 that has also been recommended a few times?

Lastly, when building a new network, should I go with ZHA or Z2M? I read that the transition can be tedious, if the network has become large, so I would like to be on the right ship from the beginning.

1 post - 1 participant

Read full topic


Z-WAVE Device configuration file not recognized

$
0
0

Hit here!

This Question is related to my post “Merten Shutter connect 504519 no working command classes”:

How can I be sure, that z-Wave JS UI (10.1.5) uses the selfmade configuration file I provided in the UI under “Store” in the Folder “Config” is used or how to manage it that itis used?

Thr log [as filed in the post above] is only showing:
“2025-03-31T20:57:53.159Z CNTRLR [Node 009] ConfigurationCC: Loading configuration parameters from device config”

Thank you

Christoph

1 post - 1 participant

Read full topic

Broadlink RM Mini 3 won't appear in Home Assistant

$
0
0

I am trying to integrate a Broadlink RM Mini3 into HA via the Broadlink integration set up as a universal remote (I already have another one successfully integrated controlling my surround sound system). It appears on my mesh network so I know the wifi is working and also on the Broadlink App. I set it up as a remote to control a ceiling light and fan combination on the app to test it works through the app. I have also unlocked it on the Broadling app. However, when I try to add it to HA I get the message “device is already configured” but it does not appear as devices in the device list so I cannot therefore add the IR items I want to control. Any thoughts as to why this is the case?

1 post - 1 participant

Read full topic

Prompt Engineering Whitepaper by Google

$
0
0

Google just published a guide focused on Prompt Engineering, and it goes deep on structure, formatting, config settings, and real examples. Focused on Gemini but works with any LLM. Here’s what it covers:

  1. How to get predictable, reliable output using temperature, top-p, and top-k
  2. Prompting techniques for APIs, including system prompts, chain-of-thought, and ReAct (i.e., reason and act)
  3. How to write prompts that return structured outputs like JSON or specific formats

Link: Prompt Engineering Whitepaper (Google, 2025)

Thanks, Oleg!

1 post - 1 participant

Read full topic

Save state of automation after restart of HA

$
0
0

Hey there
I have several automations that control certain devices with PV surplus.
Bassically there is 1 automation for every device. If there is enough PV power the device is turned on, otherwise its turned off.
Problem with these automations is, they need to be turned on, when HA starts.
So if 1 automation os turned off (because I dont want the device to be “sun controlled” at the moment), it will not work, when I restart HA - because the automation was off, when HA starts up.
This is annoying, when u install updates, because you always have to turn on the automations, and turn it off after HA has rebootet.
Im looking for a way to save the automations state, and turn it on, when HA shuts down.
After restarting the saved states should apply again.
The only way I got for this, is creating an input boolean helper for every automation.
Is there a smarter way to do so?

6 posts - 3 participants

Read full topic

How to get a xy-graph for my template sensor?

$
0
0

Hi,
I want to have a graph of a sensor state over time to compare it with other sensor data. However, I only get a color-coded bar, no xy-graph.

The sensor is defined via a template like this:

template:
  - sensor:
      - name: "const_fronius_symo_max_power_W"
        # inverter max power is 5000 W
        state: >
          {{ 5000 | int }}
      - name: "const_pv_carport_installed_Wp"
        state: >
          {{ 5220 | int }}
      - name: "const_max_grid_feed_W"
        # Solarspitzengesetz: maximum grid feed is 60% of kWp installed
        state: >
          {{ states("sensor.const_pv_carport_installed_Wp") | float(0) * 0.60 }}
      - name: "fronius_symo_dyn_power_limit_W"
        state: >
          {{ ( [ ((states("sensor.shellypro3_total_active_power") | float(0) )
                 + (states("sensor.fronius_symo_5_0_leistung_ac")  | float(0) )
                 + (states("sensor.const_max_grid_feed_W")  | float(0) )),
                 states("sensor.const_fronius_symo_max_power_W") | float(0) ] | min )
          }}

Is the template missing anything to instruct HA to do that? Thanks!

2 posts - 2 participants

Read full topic

Can't restore any of my backups

$
0
0

Hi everyone,

I’ve been using the Google Drive Backup add-on for a long time, but I rarely needed to use it for recovery. My Home Assistant OS runs in a Proxmox VM, and I used to rely on nightly VM snapshots instead.

Unfortunately, due to another issue I encountered (Recorder no longer writing data to the database), I decided to restore a previous backup this morning to try and fix things.

That’s when trouble started.

Since the VM I restored to was from a few days ago, it no longer had the latest HA backup locally. So I fell back on the Google Drive Backup add-on and downloaded a recent full backup from there.

During the restore process, Home Assistant crashed for some reason. And now, upon reboot, I’m being prompted to upload a backup to restore. I went ahead and uploaded the .tar backup file manually.

Here’s the weird part: Home Assistant correctly reads the backup file and lists all the add-ons and settings I can choose to restore… but when I try to proceed, I get this error:

Backup 931dbbc9 not found in agent home assistant OS.local

I’m guessing the backup is there, but something is preventing the restore agent from finding or recognizing it.

So my question is: How can I force Home Assistant to restore this backup manually?

I know the file is valid since it detects the content properly.

Any help would be hugely appreciated!

Thanks!

1 post - 1 participant

Read full topic

Want to change the font size in a tile card

$
0
0

I am trying to get a card to navigate on every dashboard since the back arrow chip is not consistent enough on my iphone.

By using the code below, all I get is the two buttons with three completely different fonts. I have Card-mod installed via HACS but it doesn’t seem to do much when I have tried some changes in YAML

Does anyone have any suggestions on what I need to change in the script to get a font I can adjust?

Any help would be appreciated.

image

type: grid
columns: 2
square: false
cards:
  - type: tile
    entity: sensor.date_time
    style: |
      ha-card {
        --tile-primary-font-size: 24px !important; /* Adjust as needed */
        --tile-secondary-font-size: 16px !important; /* Adjust as needed for the unit/name */
      }    entity: sensor.time
    features_position: bottom
    vertical: false
    card_mod:
      style: |
        .tile-content { /* Targets the main content area */
          --tile-font-size: 40px !important; /* Adjust the value as needed */
        }
        .entity-name { /* Targets the entity name */
          font-size: 16px !important; /* Adjust the value as needed */
        }
        .entity-state { /* Targets the entity state (the value) */
          font-size: 100
          px !important; /* Adjust the value as needed */
        }
    tap_action:
      action: navigate
      navigation_path: /dashboard-mobile
  - type: entity
    entity: sensor.xxx_iphone_battery_level
    alignment: centre
    style: |
      :host {
        --card-mod-entity-row-primary-font-size: 132px;
      }

2 posts - 2 participants

Read full topic


How to get zigbee2mqtt devices to show up in HA (docker version)

$
0
0

hi, I’m fairly new to HA and my question probably is a tell :slight_smile:

I’ve taken the Docker route with HA mostly because I have quite a lot of experience with containers - so setting up the containers on my Synology wasn’t too hard -

So I have these containers running

CONTAINER ID   IMAGE                                 COMMAND                  CREATED         STATUS         PORTS                     NAMES
283461b5c1f9   koenkk/zigbee2mqtt:latest             "docker-entrypoint.s…"   3 hours ago     Up 8 minutes   0.0.0.0:8080->8080/tcp    koenkk-zigbee2mqtt1
cfad357bc747   eclipse-mosquitto:latest              "/docker-entrypoint.…"   2 weeks ago     Up 7 days      0.0.0.0:49154->1883/tcp   mosquitto
1905ed89a0ad   homeassistant/home-assistant:stable   "/init"                  14 months ago   Up 7 days                                home-assistant

I have the MQTT integration installed on HA and in ‘Devices’ I have a ‘Zigbee2MQTT Bridge’ listed

On my Zigbee2MQTT frontend (8080) I have a Sonoff SNZB-02P (temperature and humidity sensor) listed so I know that my Zigbee2MQTT communicates with my SMLIGHT SLZB-06M via ethernet and all logs seams to be all good and green :slight_smile:

My zigbee2mqtt/configuration.yaml looks like this

version: 4
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://172.17.0.2:1883
  # user: x
  # password: x
  client_id: 'z2mqtt'
  include_device_information: true
serial:
  port: tcp://10.4.3.127:6638
  baudrate: 115200
  adapter: ember
  rtscts: false
advanced:
  log_level: info
  channel: 11
  network_key:
    - 195
    - 163
    - 236
    - 79
    - 101
    - 94
    - 249
    - 70
    - 214
    - 78
    - 37
    - 37
    - 48
    - 255
    - 47
    - 58
  pan_id: 31631
  ext_pan_id:
    - 203
    - 169
    - 2
    - 134
    - 157
    - 223
    - 214
    - 141
frontend:
  enabled: true
  port: 8080
homeassistant:
    enabled: true
    discovery_topic: 'homeassistant'
    status_topic: 'homeassistant/status'
    experimental_event_entities: false
    legacy_action_sensor: false
permit_join: true

But I get no ‘new devices discovered’ in HA - and trying to add new devices do not list any?

Any ideas?

1 post - 1 participant

Read full topic

OpenWakeWord doesn't recognize any wake word

$
0
0

Hey guys!

I try now since yesterday to bring OpenWakeWord or Assist on my Home Assistant to work. I tried to fix this issue with ChatGPT first, but it seems this AI is overwhelmed with that. :slight_smile:

Problem

OpenWakeWord doesn’t recorgnize any wake word. Piper, Whisper and OWW is correctly installed and connected to Wyoming Protocol.

OWW only connects and disconnects like in the log shown and flooding it with it:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service openwakeword: starting
s6-rc: info: service openwakeword successfully started
s6-rc: info: service discovery: starting
DEBUG:root:Namespace(uri='tcp://0.0.0.0:10400', models_dir=PosixPath('/usr/local/lib/python3.11/dist-packages/wyoming_openwakeword/models'), custom_model_dir=['/share/openwakeword'], preload_model=['ok_nabu'], threshold=0.5, trigger_level=1, output_dir=None, debug=True, log_format='%(levelname)s:%(name)s:%(message)s', debug_probability=False, version=False, model=[])
DEBUG:root:Loading ok_nabu_v0.1 from /usr/local/lib/python3.11/dist-packages/wyoming_openwakeword/models/ok_nabu_v0.1.tflite
DEBUG:wyoming_openwakeword.handler:Started thread for ok_nabu_v0.1
DEBUG:root:Loading /usr/local/lib/python3.11/dist-packages/wyoming_openwakeword/models/melspectrogram.tflite
DEBUG:root:Loading /usr/local/lib/python3.11/dist-packages/wyoming_openwakeword/models/embedding_model.tflite
INFO:root:Ready
DEBUG:wyoming_openwakeword.handler:Client connected: 1501232393578
DEBUG:wyoming_openwakeword.handler:Client disconnected: 1501232393578
[11:27:58] INFO: Successfully sent discovery information to Home Assistant.
s6-rc: info: service discovery successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
DEBUG:wyoming_openwakeword.handler:Client connected: 1504611613639
DEBUG:wyoming_openwakeword.handler:Sent info to client: 1504611613639
DEBUG:wyoming_openwakeword.handler:Client disconnected: 1504611613639
DEBUG:wyoming_openwakeword.handler:Client connected: 1536692992465
DEBUG:wyoming_openwakeword.handler:Sent info to client: 1536692992465
DEBUG:wyoming_openwakeword.handler:Client disconnected: 1536692992465
DEBUG:wyoming_openwakeword.handler:Client connected: 1568768290671
DEBUG:wyoming_openwakeword.handler:Sent info to client: 1568768290671
DEBUG:wyoming_openwakeword.handler:Client disconnected: 1568768290671
DEBUG:wyoming_openwakeword.handler:Client connected: 1600838788126
DEBUG:wyoming_openwakeword.handler:Sent info to client: 1600838788126

The USB microphone works very well with Rhasspy and is set as default recording device in HA.

I also looked into the /share-folder and there’s no openwakeword-folder. OpenWakeWord also tells me nothing about an audio device.

System informations

  • OS Version: Home Assistant OS 15.1
  • Home Assistant Core: 2025.4.2
  • Device: ODROID N2+
  • Microphone: SPC Gear SM950T Streaming USB-Microphone

If you need more informations, please tell me.

1 post - 1 participant

Read full topic

Backup restore does not work

$
0
0

I have a backup made in a docker container running Home Assistant 2022.12.8
Now I want to restore this backup into version 2025.4.2-ls96

I’ve created a user, then opened the backup menu, uploaded my backup and now I want to restore it but HA hallucinates that it is encrypted and demands a key. There is no key, it is not encrypted.

Tried to install the old version so I can restore into the same version. Unfortunately there is no restore button in Home Assistant 22.12.8.

During setup there is also no restore function.

Why oh why is there a backup function if restoring is not even a feature.

4 posts - 3 participants

Read full topic

2025.4.2: All ZigBee devices unresponsive

$
0
0

I just upgraded to 2025.4.2 from 2025.4.1 and now all my ZigBee devices are unresponsive and report no readings anymore.

I have tried rebooting and power-off/on but it did nothing.

Is it safe to revert to 2025.4.1?

4 posts - 2 participants

Read full topic

Quotes in secrets.yaml

$
0
0

Dear HA community,

I’m using shell command to send RPC commands (https://community.shelly.cloud/topic/1793-walldisplay-list-for-useful-rpc-commands/) to my Shelly WallDisplay. In order to store my passwords in secrets.yaml, the only option was to include the whole command in secrets.yaml.

This is what worked so far for the RPC command http://IP_WD/rpc/Ui.Tap?x=300&y=600:

configuration.yaml:

shell_command:
  walldisplay_windfang_wakeup: !secret walldisplay_windfang_wakeup

secrets.yaml:

walldisplay_windfang_wakeup: "curl --digest -u admin:XXX 'http://192.168.XXX.XXX/rpc/Ui.Tap?x=1&y=1'"

However, I cannot handle the RPC command http://IP_WD/rpc/Ui.Screen.Set?params={"on":true} due to the additional “quotes”. All tried versions did not work:

secrets.yaml:

walldisplay_windfang_screen_on: 'curl --digest -u admin:XXX ''http://192.168.XXX.XXX/rpc/Ui.Screen.Set?params={"on":true}'''
walldisplay_windfang_screen_on2: "curl --digest -u admin:XXX 'http://192.168.XXX.XXX/rpc/Ui.Screen.Set?params={\"on\":true}'"
walldisplay_windfang_screen_on3: "curl --digest -u admin:XXX 'http://192.168.XXX.XXX/rpc/Ui.Screen.Set?params={''on'':true}'"

Feedback is

stdout: >-
  {"code":401,"message":"{\"auth_type\":\"digest\",\"nonce\":XXXXXXXXXX,\"nc\":\"1\",\"realm\":\"ShellyWallDisplay-XXXXXXXXXX\",\"algorithm\":\"SHA-256\"}"}
stderr: "% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r100   156  100   156    0     0   2823      0 --:--:-- --:--:-- --:--:--  2836\n\r100   156  100   156    0     0    907      0 --:--:-- --:--:-- --:--:--   907"
returncode: 0

for version 1 and

stdout: >-
  {"code":-103,"message":"Method Ui.Screen.Set failed: Missing required argument
  `on'!"}
stderr: "% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r100   156  100   156    0     0   4973      0 --:--:-- --:--:-- --:--:--  5032\n\r100    86  100    86    0     0    824      0 --:--:-- --:--:-- --:--:--   824"
returncode: 0

for versions 2 and 3.

Any ideas?

Thank you, a lot, in advance for helping me!

1 post - 1 participant

Read full topic

Viewing all 106555 articles
Browse latest View live


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