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

Help With Stopping a Script

$
0
0

Hello!

I have an automation that will run when Alarmo triggers. It contains a script, because I wanted to build out that part of the sequence separately for easier adding/subtracting of other actions at a later date. The issue I’m having is that I want everything to stop and reset if we disarm the alarm while it’s running. But I can’t get that to work. Here’s my automation and script:

description: >-
  If the alarm is triggered the Sonos siren routine runs.  If the alarm is
  disarmed or 3 minutes pass, it stops the routine.
triggers:
  - trigger: state
    entity_id:
      - alarm_control_panel.home_alarm
    to: triggered
conditions: []
actions:
  - action: script.home_alarm_triggered
    metadata: {}
    data: {}
  - wait_for_trigger:
      - trigger: state
        entity_id:
          - alarm_control_panel.home_alarm
        to: disarmed
    timeout:
      hours: 0
      minutes: 3
      seconds: 0
      milliseconds: 0
  - action: script.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: script.home_alarm_triggered
  - action: media_player.media_stop
    metadata: {}
    data: {}
    target:
      entity_id: media_player.foyer
  - action: media_player.volume_set
    metadata: {}
    data:
      volume_level: 0.1
    target:
      entity_id: media_player.downstairs_sonos
mode: single
sequence:
  - action: media_player.volume_set
    metadata: {}
    data:
      volume_level: 0.55
    enabled: true
    target:
      entity_id: media_player.downstairs_sonos
  - data:
      cache: false
      entity_id: media_player.downstairs_sonos
      message: >-
        #Insert 12-second long message here
    action: tts.cloud_say
  - delay:
      hours: 0
      minutes: 0
      seconds: 12
      milliseconds: 0
  - action: media_player.volume_set
    metadata: {}
    data:
      volume_level: 0.75
    enabled: true
    target:
      entity_id: media_player.downstairs_sonos
  - action: media_player.join
    metadata: {}
    data:
      group_members:
        - media_player.family_room
        - media_player.kitchen_sonos
        - media_player.lr_dr
    target:
      entity_id:
        - media_player.foyer
    enabled: true
  - target:
      entity_id: media_player.foyer
    data:
      media_content_id: media-source://media_source/local/burglar_alarm_3_minutes.mp3
      media_content_type: audio/mpeg
    metadata:
      title: burglar_alarm_3_minutes.mp3
      thumbnail: null
      media_class: music
      children_media_class: null
      navigateIds:
        - {}
        - media_content_type: app
          media_content_id: media-source://media_source
    action: media_player.play_media
alias: Home Alarm Triggered Sonos Routine (Duplicate)
mode: single
icon: mdi:police-badge
description: ""

Now, if I manually trigger the “script.turn_off” step of the automation while the Sonos announcement is speaking, no further steps are carried out once it finishes. But if I disarm the alarm while it is speaking, the MP3 still plays afterwards. If I disarm after the Sonos announcement finishes but while the siren MP3 is playing, it stops as expected.

To test further, I also added simple light.turn_on and light.turn_off actions, and those behaved the same way - if the alarm disarm trigger happened while Sonos was speaking, the script continued anyway. But if I disabled the Sonos parts, the light turned off when the alarm was disarmed. So I think it’s something with the script and/or the TTS aspect of it all.

Any ideas? I’m no pro, but I can futz my way around YAML with some help. I built the automation and script with the visual editor, in case that’s relevant. I appreciate any help the community can provide. Thanks!

3 posts - 2 participants

Read full topic


Zigbee Garage Door Opener with Contact Sensor getting out of Sync

$
0
0

I have a zigbee garage door opener with contact sensor. It exposes two entities:

  • State: toggle true or false (open or close cover)
  • Contact: Open or Closed

The problem is when I open my garage door with the RF remote control, the contact sensor changes to open or closed correctly, but it doesn’t change the State to reflect the same, getting both out of sync.
I’ve tried creating an automation to change the cover state according to the sensor, but when changing the state via automation, it triggers the door movement.
Is there a way to change an entity state without triggering an action?

This is the state from Zigbee2MQTT

{
“garage_door_contact”: true,
“linkquality”: 244,
“state”: true
}

1 post - 1 participant

Read full topic

No module named 'pysensorpush'

$
0
0

I just updated from 2025.7 → 2025.7.2

Now the logs tell me “No module named ‘pysensorpush’”. Naturally, the sensorpush integration is also not working.

Was this integration removed?

1 post - 1 participant

Read full topic

Sense lights on fan showing air speed

$
0
0

I have a honeywell fan that serves me well and want to make it smart. As it can be controlled by a rf remotenand also can be plugged into a smart plug, i can use my broadlink to send commands and ise the plug to monitor on/off as well as totally switch off at the mains plug.

That is all fine. However, i have discovered that the power usage for each of the 5 speed settings are not unique. Settings 1 and 2 are the same, 3 and 4 are the same and 5 is the only unique power value.

There is also an oscillating mode which appears to be throwing power values all over the place to the extent i have not had consistent power values for speed/oscillation settings.

The speed change lights up a different light on the panel for each speed. I have attached images for 1, 3 and 5 (missed 2 and 4 for size reasons but i think you can get the point).



I do not want to get into the electrics of the fan so is there a cheapish way of sensing which light is on?

2 posts - 2 participants

Read full topic

Can you have an automation with a voice assistant pipeline spawn other automations that can respond separately?

$
0
0

I am wondering if this is even possible and I think it isn’t. (yet)

My use case. I have 3 locations that can receive a package. I have 3 automations I can call that look and tell me if there is a package visible. I am wondering if I can make that one automation that spawns others, but still comes back with one (or 3 separately timed) response(s).

I have tried passing conversation_agent_id, entity_id but nothing works to allow a assist pipeline be split or passed along.

Anyone try it and figure it out?

The only option I have is to run MPD or squeezelite on my wyoming satellites and TTS the responses but that just seems like I’m asking for trouble.

I am happy to share code but I think someone is going to tell me you can’t do it.

7 posts - 2 participants

Read full topic

Thread unstable when using Apple Home only

$
0
0

I have some Apple Home Thread Border Routers acting as my main Thread network, and a Dongle-E connected through Home Assistant I use sometimes.

When I’m using only the Apple Home Thread Border Routers, I sometimes notice that some devices go offline. Right now, I ran a test: the device is pingable from Home Assistant and seems to be able to communicate, but it doesn’t receive any response (see log above).

However, the scenario changes completely when I use the Dongle-E with OTBR. With OTBR enabled (without improving the signal in any way!!!), the device communicates perfectly with Home Assistant!

Debug (click for more details)

I’d just like to understand how the presence of OTBR on Home Assistant improves the connection, since it appears to be routing traffic (or at least I assume it does) to HomeAssistant?

1 post - 1 participant

Read full topic

How do I get a value from a z-wave event in an automation

$
0
0

Here is a dumbed down version of my automation.

alias: Living Room Fan Light Dimmer
description: “”
triggers:

  • device_id: efdd8f282c7d8726bf39dbbf8c894578
    domain: zwave_js
    type: zwave_js.value_updated.value
    trigger: device
    command_class: 38
    property: targetValue
    conditions:
    actions:
  • action: light.turn_on
    metadata: {}
    data:
    brightness_pct: “{{trigger.property.targetValue | float}}”
    target:
    device_id: 7cb4ac0618b67e85f63943d73af4f2db
    mode: single

The basic idea is I need to get the value of the brightness use that to set the brightness of a different device to the same value. I have not been able to figure out how to get the actual value no matter what I tried. I need to get something in the 0-100 or 0-255 range that I can then use. I could set in a helper or directly but I just can’t figure out how to get that number…

1 post - 1 participant

Read full topic

Legrand dimmer with neutral

$
0
0

I am using ZHA to connect to the dimmer. It pairs OK and connects using;

“manufacturer”: " Legrand",
“model”: " Dimmer switch with neutral",
“class”: “zhaquirks.legrand.dimmer.DimmerWithNeutral2”

The power on function does not work on a button press. I think it should be a short press for on and off. Short press for off works.

Long press is to step the dimmer up or down. This works.

There is a Legrand Cluster on this device and a dimmer id:0x0000 attribute that is set to [1, 1]. This function is not listed on the legrand developer website. The led_dark and led_on attributes work

Everything works from HA GUI.

Any hints?

1 post - 1 participant

Read full topic


Restful or Template?

$
0
0

Hello All -

I am trying to control my Autelis Pool Controler and it seems like the best way is via HTTP Get calls.

I’d like the switch to be aware of the current state of the system and reflect that in the switch position on the dashboard - OFF or On. This is important as there are other control points that can activate the pool equipment.

I am currently getting the state of the equipment via a RESTful sensor

      - name: "Pool Pump"
        unique_id: "pool_pump_sensor"
        value_template: >
          {% set codes =
            { "0": "Off",
              "1": "On",
            } %}
          {{ codes.get(value_json['response']['equipment']['pump'], 'unknown') }}

To control the pump, I can use the following GET commands…

ON - http://poolcontrol/set.cgi?name=pump&value=1

OFF - http://poolcontrol/set.cgi?name=pump&value=0

How can I tie all of this together? I have looked at both the template and rest switches and can’t seem to find an example that can get me going…

Appreciate any and all Suggestions

Squid :squid:

3 posts - 2 participants

Read full topic

Struggling to get an open / close sensor to be reliable

$
0
0

I have an automation that uses an Insteon open/close sensor to sense if my shower door is closed. When it is closed it turns on the bathroom fan and shower light. When it is opened it starts a timer and then turns off the fan when it expires.

The issue is that there does not seem to be any way to save the state of this sensor if HomeAssistant restarts (which, due to updates, is every day or two).

When HomeAssistant is restarted, the status reverts to closed, even though the door is open. This results in nothing happening when I actually close the shower door. I initially though that I could just ignore the previous state and that when I closed the door it would send a new closed state and trigger the automation, but that does not work for some reason. The sensor is wireless and can not be polled as it only wakes up on state change.

I’m really struggling to figure out how to deal with this. The sensor needs to be the trigger, but the only way anything works after restarting HomeAssistant is that I have to close, then open, then close the door again. I am really struggling to understand why state changes do not survive a restart. But I’m willing to do what ever it takes to make this work.

2 posts - 2 participants

Read full topic

Add-on stuck in startup loop despite network and coordinator being confirmed healthy

$
0
0
  • Hardware: Beelink Mini S (Intel Alder Lake N95), SMLIGHT SLZB-06 Coordinator.
  • Home Assistant Version: Home Assistant OS 16.0
  • Zigbee2MQTT Add-on Version: Latest stable version from the official repository.
  • Problem: The Zigbee2MQTT add-on is stuck in a startup loop and continuously shows “Onboarding page is available” in the log. It never fully starts or throws a specific connection error.
  • Troubleshooting Steps Already Taken:
  • Confirmed coordinator has a reserved IP from the router (my ip).
  • ping my ip from the Home Assistant terminal is successful.
  • nc -v -z my ip: Port from the HA terminal reports the port is open.
  • The coordinator’s firmware has been re-flashed to the latest version via the official SMLIGHT web flasher.
  • The Zigbee2MQTT add-on has been completely uninstalled, its data folder (/config/zigbee2mqtt) deleted, the host rebooted, and reinstalled from a fresh copy of the official repository.
  • The configuration.yaml has been verified and set correctly (adapter: ezsp, port: tcp://...).
  • Verified that the HA host has working DNS and can reach the internet (was able to clone the add-on repository).

1 post - 1 participant

Read full topic

Nest Smoke Alarm Integration Issues

$
0
0

Hi,

So I’ve been trying to integrate Nest Protect Smoke Alarms into my HA instance. I’ve got the integration via the instructions provided by the creator of the addon (GitHub - iMicknl/ha-nest-protect: Nest Protect integration for Home Assistant. This will allow you to integrate your smoke, heat, co and occupancy status real-time in HA.) . I’ve created a project ID, paid the $5 service fee for Nest integration (per the documentation), and have put my email address as owner of the project. Yet when I go thru the OAuth (I hope I am wording this correctly) I get the following error:

I can’t seem to figure out where I am going wrong with this? Anyone who has successfully integrated Nest into HA, can you shed light on what I may me missing or doing incorrectly?

1 post - 1 participant

Read full topic

My old esp32 BT is now out of memory? any solutions?

$
0
0

Hi everyone,

My current ESP32 is now out of memory, so I wont be able to update it anymore. Unsure if there are something that I can terminated or cross out to make some space. So anyone with idea please help me out. Thanks in advance.

esphome:
  name: esp-home-family-room

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "pass"

#ota:
#  platform: esphome

ota:
  platform: esphome
  password: "pass"

#ota:

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp-Home-Family-Room"
    password: "pass"

captive_portal:
esp32_ble_tracker:

sensor:
  - platform: xiaomi_lywsdcgq
    mac_address: "58:2D:34:3A:E2:A9"
    temperature:
      name: "LYWSDCGQ Temperature"
    humidity:
      name: "LYWSDCGQ Humidity"
    battery_level:
      name: "LYWSDCGQ Battery Level"
      
binary_sensor:
  - platform: status
    name: "ESPHome Family Room Scanner Connection Status"    

the error out come

6 posts - 3 participants

Read full topic

Pre-populate scene creation fields

$
0
0

I’m trying to make scene creation quicker and easier.

My idea is to have a “create” button for a specific Area on the dashboard. So you set the lights / blinds / AC or whatever the way you want, then tap the button to save it as a scene.

The thing is, I need to be able to specify which entities to include on the fly. It won’t usually be all the entities in that area.

  1. I can navigate directly to /config/scene/edit/new - is there a way to pass parameters (GET or POST) to that page to at least populate the Area field?

  2. Is there a way to do this with a dialog or custom dashboard page which has the entities for that Area as a checkbox list?

Thanks in advance!

1 post - 1 participant

Read full topic

Shelly no longer works

$
0
0

Since HA July update, I have not been able to get my Shelly Uni working. It simply remains undiscoverable and digging into the individual entities gives “This entity is no longer being provided by the shelly integration. If the entity is no longer in use, delete it in settings.” The Uni works fine within the Shelly ecosystem. Integration version is 1.0.10. Any ideas? NB, still getting to grips with HA, not an expert!

3 posts - 3 participants

Read full topic


Aqara FP1 long delay after switching to Z2M

$
0
0

Hello
I switched from deconz to Zigbee2MQTT and everything works much better expect for the aqara fp1 presence sensor. If I enter the room it takes 3-4 seconds till it recognize me. With deconz it was almost instantly. I increased the QoS in MQTT but it didn’t changed anything. I assume the route to the coordinator is the bottle neck and I try to join it directly to coordinator but it is too far away.
Any idea?

1 post - 1 participant

Read full topic

Picture Elements - Remove Border from Custom Card

$
0
0

Hi Team,

I am trying to add a custom progress bar to a picture elements card and cant for the life of me remove the border or any of the card padding.

type: picture-elements
image: >-
  https://upload.wikimedia.org/wikipedia/commons/thumb/8/89/HD_transparent_picture.png/1280px-HD_transparent_picture.png
elements:
  - type: conditional
    conditions:
      - entity: device_tracker.landing_deco
        state: home
    elements:
      - type: custom:entity-progress-card
        max_value: 1
        hide:
          - icon
          - name
          - value
          - secondary_info
        disable_unit: true
        bar_color: rgba(0, 128, 128, 0.5)
        entity: sensor.landing_down
        style:
          top: 75%
          left: 38%
          width: 23%
          height: 10%
          padding-left: 0px;

1 post - 1 participant

Read full topic

Home Assistant automation turning AC On and Off immediately

$
0
0

Hey guys. I was wondering if you could help me out with a minor problem. I have setup an automation to turn on the aircon and set the fan mode to high every 03:00 PM. Here’s the YAML file

alias: Living Room AC On
description: ""
triggers:
  - at: "15:56:00"
    trigger: time
conditions: []
actions:
  - target:
      device_id: 5338ef8587dde5fb213deb436167a934
    action: climate.turn_on
    data: {}
  - data:
      fan_mode: high
    target:
      device_id: 5338ef8587dde5fb213deb436167a934
    action: climate.set_fan_mode
mode: single

Can I please ask any one of your help to debug the issue that I’m facing. I’m thinking it has something to do with triggering the fan mode and it sets the AC power to off for some reason.

1 post - 1 participant

Read full topic

Dynamic frontend language switching based on helper/input_select

$
0
0

I’m using Home Assistant in kiosk mode on Shelly Wall Displays for managing several short-term rentals.

Each apartment has:

  • Its own user profile
  • A dedicated dashboard
  • A helper like input_select.apt1_guest_language to determine the guest’s preferred language

I’m currently using this input_select to dynamically localize dashboard content (tile names, text labels, etc.) using Jinja templating - works great.

Problem:
We would now like to extend this functionality and also change the frontend UI language (menus, popups, date/time formats, default strings) based on:

  • A dashboard element (like a language dropdown)
  • Or a helper (e.g., input_select.guest_language)
  • Or via an automation or script

But this seems currently unsupported. Because we use kiosk mode, the users can’t access profile settings, so changing it manually is not an option.

What I’m really hoping for is a way to change the frontend language on the fly - ideally per dashboard, view, or session. Something like linking it to an input_select so guests can pick their language right on the screen, without needing to touch profile settings and have the entire UI reflect it

Even a backend service, automation, or browser_mod hack would be great. Maybe someone’s made this work using a custom card, websocket trick, or user preference injection?

If anyone has figured this out, seen a GitHub issue, or built a workaround - I’d really appreciate the pointer. This would be a game-changer for multilingual and public-display Home Assistant setups.

Thanks!

1 post - 1 participant

Read full topic

Issues with CIFS & Automated Backup

$
0
0

Hey all,

Using the new 2025.7.2 HAOS on a pi4b 4gb,
And I am using automated backups to my synology NAS and a handfull of backups on the SD card itself,
However, recently, whenever a backup is running, there is a problem with the CIFS bind.

The local Backup works fine, but when it is trying to copy the backup to the CIFS location, it just keeps on hanging.
The only solution I have found to this issue till day is to open the terminal addon an reboot the system.

I have a slight feeling this issue only occurred after making the switch from ZHA to Z2M, I cannot find other people experiencing the same issue however…

I have tried rebinding the CIFS mapping, but when this is done, it tells me that the connection cannot be editted and that there is something wrong with the connection,

After rebooting, the first 1 or 2 backups seem to work fine then it stops working again.

host log says;
2025-07-17 08:40:13.157 homeassistant kernel: CIFS: VFS: \\192.168.178.5 has not responded in 180 seconds. Reconnecting...

Is there another place where I can check what exactly goes wrong here?

2 posts - 1 participant

Read full topic

Viewing all 109599 articles
Browse latest View live


Latest Images

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