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

Fields not showing up in automation UI when calling a script with fields

$
0
0

I have a script with nine fields, that all show up in the UI, in the script editor. Only one of the fields is mandatory, the rest are optional and have reasonable default values. The script seems to work fine.

In automations, when I try to call the script as an action, on the last five fields show up in the UI. The first four are not shown.

I am aware that I can possibly work around this in YAML, but I am a but puzzled why the fields don’t show up in the automation.

I’m running 2025.2.4 on a HASS Green and everything is updated to the latest version.

Am I doing something wrong or have I run into a bug?

Tnx. in advance.

1 post - 1 participant

Read full topic


How to do conditions on glance card

$
0
0

I have a sensor that’s glitching. When it glitches, it gives an outrageous number. However, when it works, it’s good. So I’d like to have a dashboard card entity to display only when it’s not outrageous and if it is, just keep the last normal reading.

For example, my sensor is a temperature sensor for a pool. When it glitches it goes to 250F. So I’d like to use some logic like If it’s >105F, then keep displaying last valid value.

3 posts - 2 participants

Read full topic

How would you replace this group

$
0
0

I currently use a bunch of groups, like this:

Buro:
  name: Büro
  entities:
    - switch.r1_licht
    - light.r1_lampen1
    - switch.r1_lampe2
    - input_boolean.buro_lampe
    - light.r1_schreibtischlampe
    - light.r1_led

This is perfect as I can control switches, lights and also my helpers, which are needed for some motion triggered lights. (They basically disable the motion triggered lights automations, and turn the light on) So if I turn off the group, it turns the whole room off and also enables the motion triggered automation.

I would really love to use the Matter Hub Addon to link to Alexa, but unfortunately the legacy group I’m using has no unique_id, so it isn’t picked up by the Matter Hub.

Has anyone the same problem and found a good solution?

Many thanks!

3 posts - 2 participants

Read full topic

Help with sensor to monitor Min Max Cell Voltages

$
0
0

Hi

I am trying to create a sensor that will show the Min, Max and Delta voltages of the cells in my battery modules, and output the cell number for the Min Max

This code works in template editor but not when I add it to my Yaml code, I just get a Null output (no errors)

I have 5 battery modules in total and the goal it to monitor the Min, Max and Delta.

Image of the Result from template editor

Image of the state attributes

template:
  - sensor:
      - name: "Battery Module Cell V Max Min Delta"
        state: >-      
         {% set voltages = [
          states('sensor.esp_monitor_cells_voltage_201') | float(0),
          states('sensor.esp_monitor_cells_voltage_202') | float(0),
          states('sensor.esp_monitor_cells_voltage_203') | float(0),
          states('sensor.esp_monitor_cells_voltage_204') | float(0),
          states('sensor.esp_monitor_cells_voltage_205') | float(0),
          states('sensor.esp_monitor_cells_voltage_206') | float(0),
          states('sensor.esp_monitor_cells_voltage_207') | float(0),
          states('sensor.esp_monitor_cells_voltage_208') | float(0),
          states('sensor.esp_monitor_cells_voltage_209') | float(0),
          states('sensor.esp_monitor_cells_voltage_210') | float(0),
          states('sensor.esp_monitor_cells_voltage_211') | float(0),
          states('sensor.esp_monitor_cells_voltage_212') | float(0),
          states('sensor.esp_monitor_cells_voltage_213') | float(0),
          states('sensor.esp_monitor_cells_voltage_214') | float(0),
          states('sensor.esp_monitor_cells_voltage_215') | float(0)
         ] %}
         {% set max_voltage = voltages | max %}
         {% set max_cell = voltages.index(max_voltage) + 1 %}
         {% set min_voltage = voltages | min %}
         {% set min_cell = voltages.index(min_voltage) + 1 %}
         {% set delta = max_voltage - min_voltage %}
        attributes:
            Maximum_Cell_No: "{{ max_cell }}"
            Maximum_Cell_Voltage: "{{ '%.3f' | format(max_voltage) }}"
            Lowest_Cell_No: "{{ min_cell }}"
            Lowest_Cell_Voltage: "{{ '%.3f' | format(min_voltage) }}"
            Voltage_Delta: "{{ '%.3f' | format(delta) }}"

1 post - 1 participant

Read full topic

Bubble Card CSS Questions

$
0
0

I have never really messed with Home Assistant styling before, used some HACS addons to create custom cards but never messed with the CSS before.
Recently began redoing my dashboard and started integrating Bubble Cards - loving it so far.

But in dark mode the default orange for many devices can be a little intense. I have been able to change this individually per button without issue, querying state of entities to color icon/background/button/etc.
Love this.

However, as I was doing this to the 6th button or so I realized it would be much better to do it centrally. As I was looking into doing this I saw that Clooos had just released BETA that had a Modules feature, looked to be just what I’m looking for.

So, to the questions:

  • If something is not specified inside the module profile I create/select is it falling back to the style.css inside the respective folder from bubble-card? Or is it falling back to HA css?

  • Is there some sort of precedence with CSS styles (set in bubble-card or HA) where it prefers anything with !important first, then anything set individually, then anything set in bubble-card, then anything set in HA, etc? Or does it just prefer !important and everything else fights for control if set in 2 places?

  • When trying to change icon color based on state I used the following inside the Default module css(/yaml?):

 .bubble-icon {
            color: ${state === 'on' ? 'rgb(0, 200, 50)' : ''} !important;
        }

This only works if !important is added. It seems that I wouldn’t want !important to be in a template since it would prevent individual customization; is that correct?
What would be overriding this?

  • I see a lot of variables like this: var(–bubble-icon-background-color)
    Where are these specified?? If my main goal is to change the color of certain types of devices when on is there some variable I should be changing instead?

  • Is there a way to have .bubble-icon change color based on state - but based on device type? (And still have it in module rather than per device?) So orange if heat, blue if fan/AC, light temp if light, green otherwise?

Thanks for any help you can give!

1 post - 1 participant

Read full topic

What to refresh a picture in a picture card?

$
0
0

Hi there,

I have some picture cards on my dashboard reading pictures (produced by camera snapshots) in the www local folder.
The camera snapshots ARE updating the snapshot files in the www local, but the dashboard’s picture cards are not updated, keeping the old pictures in it.

Is that normal bevior ? I use that on a tablet running Fully Kiosk, but how Can I force the picture card to re-read the latest pictures posted on the www local folder ?
I assume it has to do with cache memory but … ??

 - title: Home
    cards: []
    visible:
      - user: 6c0f22e61daf4f799222ab1f2942f2af
      - user: 32a7bac7e6e0440183f6fefbc62b37ae
      - user: 1a22f3b4ca2f4c4c84db909d9ba20c60
    type: sections
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Image 1
            heading_style: title
          - type: picture
            image: /local/Camera-snapshots/doorbel-snapshot2.jpg
      - type: grid
        cards:
          - type: heading
            heading: Image 2
            heading_style: title
          - type: picture
            image: /local/Camera-snapshots/doorbel-snapshot1.jpg

Man Thanks !!

2 posts - 2 participants

Read full topic

Unifi Protect camera: failing to get Media Player working

$
0
0

Dear community,

So the Unifi Protect integration adds a Media Player entity for each camera, but I’ve been completely unable the get any sounds out of them (TTS, wav file, Music Assistant, …).

My cameras are AI Pro, some with Vision Enhancer. Speakers works fine when sending audio through mic.

Does anyone have this working and can share tips? Thanks!!

2 posts - 2 participants

Read full topic

Card visibility based upon selected media source

$
0
0

I can use {% if is_state_attr('media_player.family_room_recv', 'source', 'Bluray') %} with card_mod to set the color of icons based upon the selected source of my receiver. But I would like to set the card visibility (hide/show) based off selected source as well. I’m not sure how to access and check the value of media_player.family_room_recv source: Bluray in lovelace YAML

3 posts - 2 participants

Read full topic


Zooz 800 Dongle update

$
0
0

I THINK that I succesfully updated my Zooz ZWave 800 dongle to 7.22.1 with Simplicity Studio, but I do not know how to check the firmware version in HA, so as to confirm.
Zwave works, so that is a good sign but I don’t know how to check the version.

2 posts - 2 participants

Read full topic

Change a lock to a switch?

$
0
0

Hi, is there a way to change lock into a switch? The reason for the change is I would like open and close my car via alexa. but so far the entity is a lock I have to provide a code what I dont want. I have found the template switch helper but the switch consists of 2 buttons. one for the opening and one for the closing. But it is easier to transfer just one button.

thanks in advance!

2 posts - 2 participants

Read full topic

Atom Echo wake word toggle disabled

$
0
0

I’m having the weirdest problem with my Atom Echo - the wake word selection toggle is visible, but grayed out:


There’s no wake word option under the voice assistant itself either; it just ends after text-to-speech:

As background, my HA instance is running in a Proxmox VM. For a variety of reasons I wanted to start clean, so I made a new VM with all hardware identical (down to the MAC address) and started from scratch with a fresh install. I had this exact Atom Echo working fine with my previous HA VM.

HA is fully up to date, ESPHome Builder is fully up to date, and the full Wyoming Protocol - OpenWakeWord, Whisper, Piper - seems to be running fine.

The Echo is on and active, confirmed working fine with the default “okay nabu,” but I can’t select any other option.

Help?

2 posts - 2 participants

Read full topic

Simpler code

$
0
0

Hello,

I would like to ask for help with the following code, how to make it simpler and more transparent?

description: Karácsonyi világítás
triggers:
  - at: "16:00:00"
    id: 16_ora
    trigger: time
  - at: "20:00:00"
    id: 20_ora
    trigger: time
conditions: []
actions:
  - if:
      - condition: trigger
        id:
          - 16_ora
      - condition: device
        type: is_off
        device_id: 1c18e2ae8fddb34b44a69ac25a17e3f8
        entity_id: c95a25a70fa8cd3ff75670c890460b90
        domain: switch
    then:
      - type: turn_on
        device_id: 1c18e2ae8fddb34b44a69ac25a17e3f8
        entity_id: c95a25a70fa8cd3ff75670c890460b90
        domain: switch
  - if:
      - condition: trigger
        id:
          - 20_ora
      - condition: device
        type: is_on
        device_id: 1c18e2ae8fddb34b44a69ac25a17e3f8
        entity_id: c95a25a70fa8cd3ff75670c890460b90
        domain: switch
    then:
      - type: turn_off
        device_id: 1c18e2ae8fddb34b44a69ac25a17e3f8
        entity_id: c95a25a70fa8cd3ff75670c890460b90
        domain: switch
mode: restart

type or paste code here

3 posts - 2 participants

Read full topic

How to integrate TS0601 von _TZE204_ltwbm23f into ZHA

$
0
0

Hej Guys,

hope y’all doing good. :slight_smile:
I bought the named thermostates.
According to the compatibility database they work with ZHA.
https://zigbee.blakadder.com/Tuya_TV02.html

Installing wasn’t a big issue but I only have one entity update.stube_thermostat_rechts_firmware that’s it. no climate. nothing.
I have reset the device no success. Restart of HA, or the complete VM. Same result.

Do you guys have any ideas?

Cheers from Hamburg

Armin

1 post - 1 participant

Read full topic

SunSpec / modbus TCP problem

$
0
0

Hi, I am trying to directly read an inverter with Solaredge inverter and meter via Modbus TCP. It communicates with SunSpec protocol, I saw that there is integration, but it has problems with scaling and the author has not responded for a long time. SunSpec for each quantity gives you two Modbus address the value and scale (which keeps changing). I would like to access the inverter directly and not use extensions that depend on the developer and solaredge. I have tried to do it myself, but the continuous scale changes lead to incorrect values, especially in the variations. I have modified the code so that it only calculates when the scale has not changed recently, but I keep getting absurd values 2/3 times a day. Sometimes they look like Modbus read errors, but sometimes they look like calculation errors.
Here is the code that goes to read the modbus data:

- name: "SolarEdge"
  type: tcp
  host: "192.168.1.9" # Sostituisci con l'indirizzo IP del tuo inverter
  port: 1502 # Porta predefinita per Modbus TCP
  sensors:
    - name: "Scala_W_pensiline_L"
      address: 40084
      input_type: holding
      data_type: int16
      unit_of_measurement: ""
      scale: 1
      state_class: measurement
      scan_interval: 30

    - name: "Pensiline_Potenza_L"
      address: 40083 # Registro SunSpec per la potenza AC
      input_type: holding
      data_type: int16
      scale: 1
      unit_of_measurement: "W"
      device_class: power
      state_class: measurement
      scan_interval: 30

Here the one that calculates the derived values

sensor:
      pensiline_potenza:
        unique_id: "id_pensiline_potenza"
        friendly_name: "Pensiline Potenza"
        unit_of_measurement: "kW"
        device_class: power
        value_template: >-
          {% set s1 = states('sensor.Pensiline_Potenza_L') %}
          {% set s2 = states('sensor.Scala_W_pensiline_L') %}
          {% set scale_last_change = as_timestamp(states.sensor.Scala_W_pensiline_L.last_changed) %}
          {% set now_ts = as_timestamp(now()) %}
          {% if (now_ts - scale_last_change) < 5 %}
            {{ none }}
          {% else %}
            {% if s1 not in ['unknown', 'unavailable', None] and s2 not in ['unknown', 'unavailable', None] %}
              {{ (s1 |float (0) * 10**(s2 |float (0))) / 1000 | round(2) }}
            {% else %}
              {{ none }}
            {% endif %}
          {% endif %}

Do you have any suggestions to eliminate these error? It would be fine for me to simply eliminate them when absurd. Many thanks

1 post - 1 participant

Read full topic

Unable to setup integration

$
0
0

Hi all,

This was working in the past and I saw that there were issues with a recent FW update to the Tahoma box which broke the integration. So, I held off on the update. Then I saw what I believed were messages that the integrations works with Tahome FW 2024.6.5-13. So… I updated my Tahoma. The integration stopped working so I deleted and re-installed. Now any configuration that I try results in an error and I cannot complete the setup. I have tried to connect via the hostname as well as the direct IP (and using the name/pass that I use in the Tahoma app). The UI reports “Unexpected error” and the error in the log reports the following:

Logger: homeassistant.components.overkiz
Source: components/overkiz/config_flow.py:220
integration: Overkiz (documentation, issues)
First occurred: 11:18:55 AM (7 occurrences)
Last logged: 11:44:52 AM

Unknown error
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py”, line 220, in async_step_local
user_input = await self.async_validate_input(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py”, line 65, in async_validate_input
await client.login(register_event_listener=False)
File “/usr/local/lib/python3.13/site-packages/pyoverkiz/client.py”, line 246, in login
response = await self.__post(“login”, data=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.13/site-packages/pyoverkiz/client.py”, line 941, in __post
await self.check_response(response)
File “/usr/local/lib/python3.13/site-packages/pyoverkiz/client.py”, line 1058, in check_response
raise OverkizException(result)
pyoverkiz.exceptions.OverkizException: {‘errorCode’: ‘AUTHENTICATION_ERROR’, ‘error’: ‘An API key is required to access this setup’}

2 posts - 1 participant

Read full topic


Backing up / restoring Z-Wave stick with Z-Wave JS UI

$
0
0

I’m having problems pairing new devices with my Zooz ZST39 800LR stick. I’d like to revert to my Zooz ZST10 stick to see if these pairing problems persist. All my devices are paired in non-LR mode, so this should be straightforward, in theory.

I am struggling with the backup/restore user interface in Z-Wave JS UI.

It appears that there are only options to schedule backups with cron. I don’t see a way to initiate an immediate backup of both the store and controller NVM, or to restore them. I checked the docs, but also didn’t find it.

I see export and / import buttons at the bottom. They produce a settings.json . That probably does not include the NVM.

I may be missing something obvious, on account my macular degeneration, but this has me stumped.

6 posts - 3 participants

Read full topic

Wait Until (in actions) - AND or OR / Condition already met?

$
0
0

Hello,

I’m trying to setup automation to trigger my pool pump after 7AM when I have >2kw solar generation or >20% battery.

  • My trigger is the time, with a wait condition in the ACTIONS for either of those two criteria OR until 90 minutes has passed.
  • Having issues with the configuration where, if one of the conditions is TRUE (>20% battery) it continues to wait.

So my question is, if the WAIT UNTIL (in ACTIONS) has two conditions is it an OR or AND? Also if one of the conditions is already TRUE would it trigger immediately or should I add an IF before the WAIT to trigger it that way in that scenario?

Interestingly when I did a trace I saw it only testing for one of the two triggers?

wait_for_trigger:
  - trigger: numeric_state
    entity_id:
      - sensor.my_home_percentage_charged
    above: 15
  - trigger: numeric_state
    entity_id:
      - sensor.my_home_solar_power
    above: 2.5
timeout:
  hours: 0
  minutes: 30
  seconds: 0
  milliseconds: 0

Result

February 21, 2025 at 6:55:00 AM
Executed: February 21, 2025 at 6:55:00 AM
Result:
result: false
state: 0.225
wanted_state_above: 2.5

Full YAML

alias: Pool Morning
description: ""
triggers:
  - trigger: time
    at: "06:55:00"
conditions: []
actions:
  - wait_for_trigger:
      - trigger: numeric_state
        entity_id:
          - sensor.my_home_percentage_charged
        above: 15
      - trigger: numeric_state
        entity_id:
          - sensor.my_home_solar_power
        above: 2.5
    timeout:
      hours: 0
      minutes: 30
      seconds: 0
      milliseconds: 0
  - device_id: cb0c8c3bca1294b599b05f4ef0f341c7
    domain: select
    entity_id: 9b73b21ae8830689c14cda922207689a
    type: select_option
    option: Manual
  - delay:
      hours: 0
      minutes: 2
      seconds: 0
      milliseconds: 0
  - if:
      - condition: state
        entity_id: binary_sensor.pool_pump_status
        state: "on"
    then:
      - action: notify.xxx
        metadata: {}
        data:
          title: xxx
          message: Pool start success
    else:
      - action: notify.xxx
        metadata: {}
        data:
          message: Failure pool
          title: xxx
  - delay:
      hours: 1
      minutes: 28
      seconds: 0
      milliseconds: 0
  - device_id: cb0c8c3bca1294b599b05f4ef0f341c7
    domain: select
    entity_id: 9b73b21ae8830689c14cda922207689a
    type: select_option
    option: "Off"
  - delay:
      hours: 0
      minutes: 2
      seconds: 0
      milliseconds: 0
  - if:
      - condition: state
        entity_id: binary_sensor.pool_pump_status
        state: "off"
    then:
      - action: notify.xxx
        metadata: {}
        data:
          title: xxx
          message: Pool stop success
    else:
      - action: notify.xxx
        metadata: {}
        data:
          message: Failure pool stop
          title: xxx
mode: single

3 posts - 2 participants

Read full topic

Apexcharts - yaxis under config?

$
0
0

Hi all
I see many posts where they set yaxis configuration options under the “apex_config:” section. But the apexcharts site has yaxis as a primary indent (or whatever you call it when it isn’t indented under something). I have played with both but can’t figure out which should be used. If under apex_config, I can’t get things like decimals to work. But if I use it as a primary, then colour options don’t work. And I can’t use both.
Any advise on how to get colour and config options to work?
And please don’t just paste the apex site code. I have spend almost an hour and haven’t found the solution yet (he says knowing the first post will just be this).
Thanks
A

2 posts - 1 participant

Read full topic

HAOS on TrueNas Scale Passing Through Zooz 800 Zwave dongle

$
0
0

So i have HAOS running as a VM on TrueNAS Scale. I get a Zooz 800 Series Z-Wave Long Range S2 USB Stick ZST39 LR and I want to use it in Home Assistant. I have read that all I have to do is allow passthrough on the USB, then I read that passing through just the USB wont work you have to passthrough the entire PCIe controller for the USB. I have 2 USB controllers and I have tried to pass both of these through PCIe devices and I keep getting the error

Warning
PCI device does not have a reset mechanism defined and you may experience inconsistent/degraded behavior when starting/stopping the VM.

I click confirm to that and then I get this error

[EINVAL] attribute.pptdev: Not a valid choice. The PCI device is not available for passthru: Unable to determine iommu group

What do I need to do here? I cannot seem to find a straight answer to this error some say I have to get a new USB Controller for a PCIe slot and use it. Others say its a Motherboard issue. Some say its a CPU issues. Love to get some help to solve this thanks!

3 posts - 1 participant

Read full topic

Way to receive a notification if a specific device stops reporting

$
0
0

Hi. Is there a way to receive a notification if a specific device stops reporting?

For example, I have the YoLink integration with a YoLink temp sensor. I would like to receive a notification if the temp sensor stops reporting for over X minutes, or something to this effect.

Thanks!

1 post - 1 participant

Read full topic

Viewing all 105595 articles
Browse latest View live


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