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

Zone weirdness. I leave my house, but logbook says I arrived seconds before I left

$
0
0

So I have a couple of automations set up for when various people arrive and leave.

However, I’ve noticed that both arrival and departure triggers are firing when I leave a zone.

I have my garage lights to come on when any of us get home, and turn off 30s after anyone leaves if no one else is in zone Home.

Problem is, I noticed this morning an oddity in the logs.

I left for work around 615. Seconds before the log shows me leaving the Home zone, it shows me arriving at it.

What? I’d been home since 1700 the previous day.

Timeline of what actually occurs: I entered the garage, I have no presence sensors (yet) so I hit the switch attached to a zigbee relay. Light turns on, as it should. Stays on til I leave. On the surface everything is fine.

But here’s the logs for that timeframe. What in the world??

1 post - 1 participant

Read full topic


Need help with !include_dir_merge_named

$
0
0

i need help with the !include_dir_merge_named

everything i do it keeps spitting out errors… when you run configuration checker…
ive done 2 different ways 1 with - plaform: template and other without as it complained there was no platforum
ive tried google… and didnt help then i read another splitting up pages HA
and it shows like i guess if you wanna use group: you make a folder group
so i confused in getting it to work

as i wanna do house under packages, and then have basement_light_switchs, group, dehumidifiers… and upstairs_light_switchs
to make it easier to edit later… but its not working right
as i wanna do outside and my shop and maybe couple other break downs so i not having to look in switch.yaml i have or sensor.yaml etc

so below i use the same switchs as a place holder to get this to work

light_switchs.yaml

house_light_switchs:
  - platform: template
    switch:
      dehumidifier_3:
        friendly_name: "Dehumidifier 3"
        value_template: "{{ is_state('switch.tp_link_smart_plug_04bb_island_light', 'on') }}"
        turn_on:
          action: switch.turn_on
          target:
            entity_id: switch.tp_link_smart_plug_04bb_island_light
        turn_off:
          action: switch.turn_off
          target:
            entity_id: switch.tp_link_smart_plug_04bb_island_light
      dehumidifier_4:
        friendly_name: "Dehumidifier 4"
        value_template: "{{ is_state('switch.tp_link_smart_plug_04bb_island_light', 'on') }}"
        turn_on:
          action: switch.turn_on
          target:
            entity_id: switch.tp_link_smart_plug_04bb_island_light
        turn_off:
          action: switch.turn_off
          target:
            entity_id: switch.tp_link_smart_plug_04bb_island_light

dehumidifier.yaml

house_dehumidifier:
  switch:
    dehumidifier_3:
      friendly_name: "Dehumidifier 3"
      value_template: "{{ is_state('switch.tp_link_smart_plug_04bb_island_light', 'on') }}"
      turn_on:
        action: switch.turn_on
        target:
          entity_id: switch.tp_link_smart_plug_04bb_island_light
      turn_off:
        action: switch.turn_off
        target:
          entity_id: switch.tp_link_smart_plug_04bb_island_light
    dehumidifier_4:
      friendly_name: "Dehumidifier 4"
      value_template: "{{ is_state('switch.tp_link_smart_plug_04bb_island_light', 'on') }}"
      turn_on:
        action: switch.turn_on
        target:
          entity_id: switch.tp_link_smart_plug_04bb_island_light
      turn_off:
        action: switch.turn_off
        target:
          entity_id: switch.tp_link_smart_plug_04bb_island_light




1 post - 1 participant

Read full topic

Automatic backup to remote Nextcloud server, WebDAV location not showing

$
0
0

I’m having an issue figuring out how to set up automatic backups to a remote Nextcloud file server. I have Home Assistant running on a RPi3 all on its own with nothing else and a separate computer that runs a Nextcloud instance. I found the WebDAV integration and set up a folder on my Nextcloud server that I planned to use for automatic backups, but I can’t figure out how to actually use that folder when it comes to configuring the backup. If I go through the automatic backup settings, at the very end where it has me select locations to save the backups, I have no options shown. Reading up on things, it sounds like I need to set up a storage location via the System->Storage menu, but I’m not sure what to do from here. I thought the WebDAV integration already configured its own folder, but do I need to duplicate that here? If so, what options am I supposed to pick? Do I use the base URL for the file server or the /dav URL I set up in the WebDAV integration? Would it just be considered an NFS filesystem? I would have thought “WebDAV” would have just showed up in the Backup location to begin with.

1 post - 1 participant

Read full topic

Scrape - data of my inverter from the IP address

$
0
0

Hey everyone,
I have an inverter that I can no longer access via MQTT after switching from HA green to NUC. So I’m trying Scrape, since I have the IP address and can access the displayed page. However, I’m new to this, and somehow that doesn’t work either. In one test, I tried integrating a value into a weather page, which worked great. However, it doesn’t recognize the status of the inverter’s IP.


1 post - 1 participant

Read full topic

The entity ids are reverting back to defaults

$
0
0

I have an outlet switch integrated with Tuya integration. I see from time to time entity ids are getting reverted back to defaults and my automation is failing.

The outlet is MOES Smart USB Wall Outlet that has two regular and one USBA and USBC and I initially added it through Moes app.

Is HA or Tuya or Moes app changing entity ids? Appreciate any tips not to happen and curious to know the reason.

1 post - 1 participant

Read full topic

Speech-to-phrase not acting on intent

$
0
0

I added speech-to-phrase and configured it. However, it seems to be unable to act. On giving a command, I get a red led back on the voice assistant preview. AI suggested installing Rhaspy, so I did that and there was not much to configure. However, I rebooted HA and still the same result. I’ve also watched some set up videos and they’re not doing anything that I haven’t already done, but I must be missing something obvious somewhere.
The log appears to know that my intent is to change the office light to 50, as the spoken phrase works fine when typed into the assistant and also when I use faster-whisper … just not speech-to-phrase.
Any ideas on what I’m missing please?

DEBUG:root:Selected model by language: en_US-rhasspy
DEBUG:root:Using cached transcriber
DEBUG:speech_to_phrase.transcribe_kaldi:Stream ended
DEBUG:speech_to_phrase.speech_tools:lattice-to-nbest --n=3 --acoustic-scale=0.9 ark:/tmp/tmpv40kafsb ark:- | nbest-to-linear ark:- ark:/dev/null ark,t:-
DEBUG:speech_to_phrase.speech_tools:/usr/src/tools/kaldi/utils/int2sym.pl -f 2- /share/speech-to-phrase/train/en_US-rhasspy/graph/words.txt
DEBUG:speech_to_phrase.transcribe_kaldi:nbest: utt-1 office light to fifty 
utt-2 office light fifty 
utt-3 set office light to fifty 
DEBUG:speech_to_phrase.speech_tools:fstcompile | fstcompose - /share/speech-to-phrase/train/en_US-rhasspy/data/lang/G.fuzzy.fst | fstshortestpath | fstrmepsilon | fsttopsort | fstproject --project_type=output | fstprint --osymbols=/share/speech-to-phrase/train/en_US-rhasspy/data/lang/words.txt
DEBUG:root:Got transcription in 0.13302552001550794 second(s): 
DEBUG:speech_to_phrase.transcribe_kaldi:online2-cli-nnet3-decode-faster ['--config=/data/models/en_US-rhasspy/model/online/conf/online.conf', '--max-active=7000', '--lattice-beam=8.0', '--acoustic-scale=1.0', '--beam=24.0', '/data/models/en_US-rhasspy/model/model/final.mdl', '/share/speech-to-phrase/train/en_US-rhasspy/graph/HCLG.fst', '/share/speech-to-phrase/train/en_US-rhasspy/graph/words.txt', 'ark:/tmp/tmpcrbsj3le']
online2-cli-nnet3-decode-faster --config=/data/models/en_US-rhasspy/model/online/conf/online.conf --max-active=7000 --lattice-beam=8.0 --acoustic-scale=1.0 --beam=24.0 /data/models/en_US-rhasspy/model/model/final.mdl /share/speech-to-phrase/train/en_US-rhasspy/graph/HCLG.fst /share/speech-to-phrase/train/en_US-rhasspy/graph/words.txt ark:/tmp/tmpcrbsj3le 
LOG (online2-cli-nnet3-decode-faster[5.5]:ComputeDerivedVars():ivector/ivector-extractor.cc:183) Computing derived variables for iVector extractor
LOG (online2-cli-nnet3-decode-faster[5.5]:ComputeDerivedVars():ivector/ivector-extractor.cc:204) Done.
LOG (online2-cli-nnet3-decode-faster[5.5]:RemoveOrphanNodes():nnet3/nnet-nnet.cc:948) Removed 1 orphan nodes.
LOG (online2-cli-nnet3-decode-faster[5.5]:RemoveOrphanComponents():nnet3/nnet-nnet.cc:847) Removing 2 orphan components.
LOG (online2-cli-nnet3-decode-faster[5.5]:Collapse():nnet3/nnet-utils.cc:1488) Added 1 components, removed 2
LOG (online2-cli-nnet3-decode-faster[5.5]:CompileLooped():nnet3/nnet-compile-looped.cc:345) Spent 0.0130661 seconds in looped compilation.

1 post - 1 participant

Read full topic

Automatic Backup Failure - duplicate item error for data['location']

$
0
0

I’ve just noticed that my backups stopped working 3 weeks ago, and when I tried to create an automatic back it fails straight away with this error:

2025-03-14 16:43:37.665 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139912928185216] Error handling message: Error creating backup: contains duplicate items: [None] for dictionary value @ data['location']. Got ['.local', '.local'] (home_assistant_error)

Creating a manual backup works ok, but an automatic one doesn’t:

My backup settings look like this:


Does anyone know what this is referring to please?
data['location']. Got ['.local', '.local']

I’ve updated to the latest 2025.3.3 but I still see the same backup error.

1 post - 1 participant

Read full topic

Folder watcher and file time

$
0
0

I have two separate automation:
1 - triggered by the change of state of a sensor that notify me when it has a particular state
2 - using Folder watcher, is triggered when a file is created and notify me.

The two things are related, when the sensor change state, after 1 minute usually the file is created.
Sometimes the file is not created, so I want to have an automation that notify me when the first is triggered but after 2 minutes the file is not created.

Is there a way to tell folder watcher to check for a file created after a certain date/time, or is there a better way to do it?

1 post - 1 participant

Read full topic


Lost my Thread network credentials?

$
0
0

I am running:

  • Home Assistant OS 14.2 with Home Assistant Core 2025.3.3
  • Home Assistant Companion App 2025.2
  • Home Assistant Connect ZBT-1 (configured for Thread)
  • Open Thread Border Router (configured for the ZBT-1 mentioned above)
  • Thread integration (with the Open Thread Border Routing mentioned above being the preferred network)
  • Matter integration showing 7 Matter devices connected through the Matter-over-Thread network and 9 devices connected though a Matter-over-Wifi network (2.4 GHz)

I just wanted to add a new Matter-over-Wifi devices using the “Add matter device” functionality of the HA Companion App as I did many time before. Surprisingly, this time I received an error message (in German) basically saying “Failed to save Thread network credentials. Error: Thread network credentials does (sic!) not match with any of the active thread networks around.”

I checked at “Companion App → Debugging → Thread” in my HA Companion, and indeed there were no Thread credentials stored anymore. I tried to “send credentials to phone” from the Thread integration but get the said error message.

This leads me to the following questions of which I hope someone of you can help me with:

  1. Where did my Thread credentials go and what can I do to make HA find them again?
  2. This question might be unrelated but here we go: The device I wanted to add was a Matter-over-Wifi device. Hence, I wasn’t planning to add something to the Thread network anyway. I could skip the error message but wasn’t eventually able to add the Matter-over-Wifi device. The Thread credentials are only needed for Matter-over-Thread devices, right?

1 post - 1 participant

Read full topic

Toggle switch to control tapo smart bulb (with only 5v available at the switch)

$
0
0

I run HA on a pi5 connected to my home network, mostly to monitor my 3D printers cameras, and control some tapo smart sockets and smart bulbs at the printers.

The things i 3D print are train simulator controllers, which use arduino’s to simulate joysticks and keyboards to control the trains in the simulator (SimRail)

I have this daft idea to use one of the switches on my train controller lighting panel to turn on and off a smart bulb,

The switch in question is a DPDT toggle switch, one ‘half’ of the double pole switch is used to send the signal to the computer to operate the ‘cab light switch’ in the simulated train, turning on and off the cab light.

And i want to use the ‘other half’ of the switch to send a signal to HA to turn a tapo smart bulb in a light fitting above my head on and off as the simulator’s cab light is turned on and off.
So when i’m pretending to drive a train in the dark, switching on the cab light turns on a real light above my head and illuminates my controls.

I’m not very good at programming things,
At first i looked at hacking a smart switch perhaps, but these all seem to use momentary switch inputs, or want mains voltage to them… this is a computer controller that is connected via USB, so all i have is 5 volts DC inside the controllers.

Then i thought i’d use a seperate arduino with a wifi shield, or maybe even and ESP32 with the built in wifi stuff, and have the toggle switch send a command to HA when it changes state, and that will then turn the smart bulb on and off as needed.

Here’s where i get confused to what i need,
an ESP32 or arduino of some sorts of course, as it will only have 2 inputs connected to it i want the smallest and cheapest one i can get that will work,

Then do i need to use ESP home on that board, and set things up so it talks to my HA server, and then on the HA server add some code to make it listen to the ESP32 and send the signal for on and off to the relevant tapo smart bulb?

1 post - 1 participant

Read full topic

Newbie UI question

$
0
0

I have several sections, each with several cards. How do I set the opacity or color of the section background? I just want to delineate the rectangular area that each section occupies on the dashboard. Thanks!

1 post - 1 participant

Read full topic

Thread via a border router?

$
0
0

Ladies and Gentlemen:

The SituationI am quite new to HA, so please bear with me. I’ve ordered a HA Green to replace one I gave away, along with a ZBT-1. As Nabu Kasa is not directly answering my question as to when the ZBT-1 will actually work as a Thread dongle, I thought of an idea and want to know if any of you have done this, or if it is possible.

The Question: If I have a Thread border router (in this case an Echo Dot) on the same network as my HA, will the HA let me use that border router functionality, or am I stuck with using a physical dongle?

Thanks in advance for any help or advice you provide.

1 post - 1 participant

Read full topic

Aqara M2 Gateway via Matter – Only 19 out of 26 Devices in Home Assistant

$
0
0

Hey everyone,

I’m trying to integrate my Aqara M2 Hub into Home Assistant via Matter, but I’m running into an issue. The setup works in general, and I can successfully add the Matter Bridge in Home Assistant. However, only 19 out of my 26 Aqara sensors/devices show up in Home Assistant.

What I’ve Tried So Far:

  • Updated Firmware: My Aqara M2 Hub is running the latest firmware.
  • Checked Aqara App: All 26 devices are visible and working correctly in the Aqara Home app.
  • Restarted Home Assistant: No change after multiple reboots.
  • Removed & Re-added the Matter Bridge: I reset the Matter pairing in both Aqara Home and Home Assistant, but the issue persists.
  • Checked HA Logs: No clear error messages related to the missing devices.
  • Matter Device Limit?: I’ve read that some Matter bridges have a limit of 20 devices, but I couldn’t find official confirmation for the Aqara M2 Hub.

Questions:

  • Has anyone else experienced this issue with the Aqara M2 Hub?
  • Is there a known device limit for Matter bridges in Home Assistant?
  • Any workarounds to get all 26 devices to show up?

Thanks in advance for any help!

1 post - 1 participant

Read full topic

Size of the layout using custom:decluttering-card

$
0
0

I’m experimenting with the custom:decluttering-card
It is making live easy. except I can not change the size of the card>
I’m using a custom:bubble-card
code:

type: custom:bubble-card
card_type: button
entity: binary_sensor.deursensor_woonkamer
show_state: true
show_last_changed: true
show_attribute: false
tap_action:
  action: none
button_action:
  tap_action:
    action: none
  double_tap_action:
    action: none
card_layout: large
columns: 2
rows: 1
name: woonkamerdeur
scrolling_effect: false
styles: >
  .bubble-button-background { background-color: ${state === 'on' ? '#1982C4FF' :
  ''} !important; opacity: 1 !important;}  .bubble-icon { color: ${state ===
  'on' ? '#1982C4FF' : 'white'} !important; opacity: 1 !important;} 
  .bubble-state { color: ${state === 'on' ? 'black' : ''} !important; opacity: 1
  !important;}   .bubble-name { color: ${state === 'on' ? 'white' : ''}
  !important; opacity: 1 !important;}
double_tap_action:
  action: none

I did create the template:

decluttering_templates:
  bubble:
    card:
      type: custom:bubble-card
      card_type: button
      entity: '[[entity]]'
      name: '[[name]]'
      show_state: true
      show_last_changed: true
      show_attribute: false
      tap_action:
        action: none
      button_action:
        tap_action:
          action: none
        double_tap_action:
          action: none
      card_layout: large
      columns: 2
      rows: 1
      scrolling_effect: false
      styles: >
        .bubble-button-background { background-color: ${state === 'on' ?
        '#1982C4FF' : ''} !important; opacity: 1 !important;}  .bubble-icon {
        color: ${state === 'on' ? '#1982C4FF' : 'white'} !important; opacity: 1
        !important;}  .bubble-state { color: ${state === 'on' ? 'black' : ''}
        !important; opacity: 1 !important;}   .bubble-name { color: ${state ===
        'on' ? 'white' : ''} !important; opacity: 1 !important;}
      double_tap_action:
        action: none

and using the template:

type: custom:decluttering-card
template: bubble
variables:
  - entity: binary_sensor.deursensor_woonkamer
  - name: Woonkamer

It is working.
Except the size of the card is different:
what I want:
image
what the template gives:


I changed the originall size with:

but this option is not available with the template card.
How to change the size of the template?
Thanks

1 post - 1 participant

Read full topic

Template on lovelace card

$
0
0

Hi everybody,

I’m trying to do some templating inside a card to load the images from my camera depending of the device.
If I login with an smartphone it should render the low quality stream, if a login on a PC it should load the HQ stream.
But it is not working, there is no errors but the card doesn’t load the stream:

type: custom:webrtc-camera
url: >-
{% set my_test_json = states(‘binary_sensor.luz_acesa_escritorio’) %} {% if
my_test_json == ‘on’ -%}
rtsp://homeassistant:8554/casalHQ?video=all&audio=all
{%- else -%}
rtsp://homeassistant:8554/casal?video=all&audio=all
{%- endif %}
ui: true
muted: true

Can you help me please?

1 post - 1 participant

Read full topic


Delay to save changes to dashboard

$
0
0

Hey guys,
I have a complex dashboard and with many entities.
When I am editing a component, such as a button or a vertical list and I click the save button a very large delay is happening to complete this action, often locking the browser.

Is there any tips to improve the performance of ha or something to solve this probrema?

1 post - 1 participant

Read full topic

Power plug Automation

$
0
0

Hello,
I am pretty new to Home Assistant. And I want to Automate my power plug!
It reads the current in watts. I can also read out (see it on the current on the dashboard) the power plug. Now I want to create an Automation wich looks if the current goes from above 10w to under 10w, then it should send out an automation.

My automation till now:

6 posts - 2 participants

Read full topic

Help with battery monitoring

$
0
0

I have created a graph like this to show how much energy my batteries use and recharge each day. This graph would indicate that I use way more than I recharge, but I know that is incorrect as at the end of each day my batteries are more full. Does anybody track their batteries this way? And if so, would you be willing to share your process? FYI: I am using in an RV.

1 post - 1 participant

Read full topic

Zigbee light switch loses state

$
0
0

I have an Enbrighten zigbee light switch (43078) installed. It works fine from HA, BUT when using the physical switch, the state is not reflected back in HA. I have other zigbee wall plugs, and those all reflect the state correctly when changed physically. Is the switch defective, or just a Enbrighten zigbee issue?

1 post - 1 participant

Read full topic

Prevent the switch from turning on the light

$
0
0

Hi fellas!

I have a Zemismart Zigbee switch and I would like to know how I can prevent it from turning on during the daytime. I created an automation that accomplishes this, but when I press the button, the light turns on briefly and then shuts off. Is there a way to achieve this without the light flickering?

alias: Nova Automação
description: ""
triggers:
  - trigger: state
    entity_id:
      - switch.interruptor_quarto_casal
    from: "off"
    to: "on"
conditions:
  - condition: sun
    before: sunset
    after: sunrise
actions:
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: switch.interruptor_quarto_casal
mode: single

3 posts - 2 participants

Read full topic

Viewing all 109448 articles
Browse latest View live


Latest Images

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