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

Hue Integration Fails - "This entity is not available"

$
0
0

Hello!
I’m having trouble with the Hue integration (Bridge V2). The setup works without any issues, all devices and rooms, etc., are there, but I’m unable to control any lights. When I click on the device (Hue light), I can see the entity “light.wohnzimmer” with a lightbulb icon under controls. However, when I click on it, I get the error message: “This entity is not available.” But in the “logbook” next to it, I can see the switching actions triggered by the Hue app or the motion sensor. This is the case for all lamps and sensors. Everything works fine through the Hue app and also via the IoBroker adapter (integration). No issues with range, using different channels for wifi, hue, Z2M. Tried Tried already to delete and reinstall the hue integration, restarting the Hue bridge etc.
Do you have any ideas?

Thanks, Flo

2 posts - 2 participants

Read full topic


OpenTherm Gateway: configure modes and presets

$
0
0

Hello,

I bought the nodoshop opentherm gateway (otgw) and set it up with the wired lan connection and used the home assistant opentherm gateway integration.
For learning and pleasure i enabled all 175 entities to see what the gateway can read and write to the central heater.

I have the thermostat card enabled in lovelace but am unable to setup a mode or preset. is there a possibility to create modes and presets?

Furthermore, is there anyone who has experience with using other temperature sensors as imput for room temperature using the opentherm gateway integration?

In the end, i would like to have my different room temp sensors in a group as group temp sensor as input for the room temp and use a zigbee thermostat device to ‘scroll’ to the desired temp and use that as desired room temp.

Any help would be appreciated.

1 post - 1 participant

Read full topic

How to use a variable in a script, when using a template

$
0
0

I have more or less the same question.

My automation is starting a script, and passing some variables:

      - service: script.turn_on
        target:
          entity_id:
            - script.google_location
        data:
          variables:
            worksheet: 'GLocPerson'
            devicetracker: 'device_tracker.life360_familymember1'
            person: 'person.person1'
            sensor: 'sensor.life360_member_adres'

My script (that isn’t working because I don’t know exactly how to use the variables correctly):

  google_location:
    sequence:
      - service: google_sheets.append_sheet
        data:
          config_entry: cx5xax2xbb75dfxb19c51fbo
          worksheet: "{{ worksheet }}"
          data:
            address: "{{ state_attr('}}{{ devicetracker }}{{','address') }}"
            last_seen: "{{ state_attr('}}{{ devicetracker }}{{','last_seen') }}"
            latitude: "{{ state_attr('}}{{ devicetracker }}{{','latitude') }}"
            longitude: "{{ state_attr('}}{{ devicetracker }}{{','longitude') }}"
            gps_accuracy: "{{ state_attr('}}{{ devicetracker }}{{','gps_accuracy') }}"
            zone: "{{ states('}}{{ person }}{{') }}"
            address2: "{{ states('}}{{ sensor }}{{') }}"
            place: "{{ state_attr('}}{{ devicetracker }}{{','place') }}"
            speed: "{{ state_attr('}}{{ devicetracker }}{{','speed') | round(0) }}"
    mode: queued

I also tried it like this:

address: "{{ state_attr('{{ devicetracker }}','address') }}"

What i’m I doing wrong ?

1 post - 1 participant

Read full topic

Automation to detect high power and run automation but ignore spikes

$
0
0

I want to run an automation when my EV car charger starts and then stops. The trouble is that there are times when it can spike for 1 minute which i want to ignore. The sensor gets updated every 30 secs.

I have built these two automations, the first one works great for when power increases:

- id: '1725743193929'
  alias: EV Socket is using more than 2kW (for 1 min)
  description: Detect when EV charging has started
  trigger:
  - platform: numeric_state
    entity_id:
    - sensor.sdm120_active_power
    above: 2000
    for:
      hours: 0
      minutes: 1
      seconds: 0
  condition: []
  action:
  - action: notify.mmyemail_gmail_com
    metadata: {}
    data:
      message: EV Socket is using more then 2kW at {{now().strftime("%H:%M %Y-%m-%d")}}
        active power is {{ states('sensor.sdm120_active_power') }}
      title: EV Socket is using more then 2kW at {{now().strftime("%H:%M %Y-%m-%d")}}
        active power is {{ states('sensor.sdm120_active_power') }}
      target: myemail@email.com
  mode: single

but this one runs for every spike:

- id: '1725787889752'
  alias: EV Socket is using less than 1W (for 1 min)
  description: Detect when EV charging has finished
  trigger:
  - platform: numeric_state
    entity_id:
    - sensor.sdm120_active_power
    for:
      hours: 0
      minutes: 1
      seconds: 0
    below: 1
  condition: []
  action:
  - action: notify.myemail_gmail_com
    metadata: {}
    data:
      message: EV Socket is using less than 1W at {{now().strftime("%H:%M %Y-%m-%d")}}
        active power is {{ states('sensor.sdm120_active_power') }}
      title: EV Socket is using less than 1W at {{now().strftime("%H:%M %Y-%m-%d")}}
        active power is {{ states('sensor.sdm120_active_power') }}
      target: myemail@myemail.com
  mode: single

Is there a way to have a single automation which has an action when it is detected and then runs when the condition returns to normal ?

1 post - 1 participant

Read full topic

Sonoff zigbee Dongle 2 Plus firmware error

$
0
0

Hello all,
I have a SONOFF Zigbee 3.0 USB Dongle Plus,Zigbee Gateway TI CC2652P + CP2102N Zigbee USB Stick integrated with my Home Assistant green. Last week I receive a message in HA, that the Dongle requires a firmware update. I commited this requests. After automatic updating and reboot was finished the Zigbee Dongle reported an error: “Network formation failed: NVRAM is corrupted”.
After several tries to fix the problem with lower impact actions I decided to flash the firmware with CC1352P2_CC2652P_launchpad_coordinator_20240710.hex. MD5Checksum of this file is 0f16bf0f96968e6b0168c2bc0a8eeefd.

The update process was
(venv) ➜ cc2538-bsl sudo python3 cc2538-bsl.py -ewv -p /dev/ttyUSB0 --bootloader-sonoff-usb ./CC1352P2_CC2652P_launchpad_coordinator_20240710.hex
sonoff
Opening port /dev/ttyUSB0, baud 500000
Reading data from ./CC1352P2_CC2652P_launchpad_coordinator_20240710.hex
Your firmware looks like an Intel Hex file
Connecting to target…
CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
Primary IEEE Address: 00:12:4B:00:2C:44:FD:F5
Performing mass erase
Erasing all main bank flash sectors
Erase done
Writing 360448 bytes starting at address 0x00000000
Write 104 bytes at 0x00057F988
Write done
Verifying by comparing CRC32 calculations.
Verified (match: 0xd9dd0124)
ERROR: int() can’t convert non-string with explicit base

Is this caused by the firmware? What should I do to repair my dongle?

1 post - 1 participant

Read full topic

Simple question about calendar and updating a sensor with an entry

$
0
0

Hi,

I have a local calendar where we schedule one particular entry per day - for this example its a calendar which records what our little boy should be wearing for school.

I would like a sensor to update with the entry from the current days local calendar entry so that i can display it on a dashboard - PE Kit/School Uniform/etc…

I have i feeling i’ll need to add a template sensor in configuration.yaml but cant figure out how to do it.

Can anybody help me please?

Thanks,

Joel.

1 post - 1 participant

Read full topic

How to get an average between two sensors?

$
0
0

Hi, just trying to setup a weather dashboard.

I have been trying to get the average between two temperatures, but I am unable.

this is my card code

type: custom:mini-graph-card
entities:
  - entity: sensor.pirateweather_daytime_high_temperature_0d
  - entity: sensor.pirateweather_daily_low_temperature_time_0d
  - entity:
      sensor:
        - platform: min_max
          type: median
          entity_ids:
            - sensor.pirateweather_daytime_high_temperature_0d
            - sensor.pirateweather_daily_low_temperature_time_0d

any suggestion?

2 posts - 2 participants

Read full topic

No badges to choose from

$
0
0

Hello everyone, stoked to be here.
I am relativelly new to HA, but I have been lurking here for a quite some time.
I have configured my Dashboard like I want it (for now), but wanted to add some more badges to the dashboard. Suddenly, when I go to the + sign do add a new badge, they are all gone. I can add only Entities.

I am running Home Assistant Core 2024.9.1 on a QNAP NAS TS-253a in a Virtualization Station.

1 post - 1 participant

Read full topic


Log errors on mqtt sensor configuration

$
0
0

Hi, I have a list of error in my log related to ZigBee sensors that are received by mqtt.
Can you help me defining the fix?

Many thanks.

Errors are all like this:


2024-09-08 23:04:49.428 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states.climate.cucina.attributes.current_temperature|float(default=0)}}) renders=2>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 619, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2654, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2273, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'current_temperature'

The above exception was the direct cause of the following exception:
</>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 731, in async_render_to_info
    render_info._result = self.async_render(  # noqa: SLF001
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 621, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: UndefinedError: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'current_temperature'

And the mqtt sensors are all configured like this:
sensor:

#
  # Zigbee xiomi temperature and humidity sensor
  # ID = 0x17C1 
  # Location: Salone
  #
  - name: "Zigbee_temperatura_salone"
    state_topic: "tele/tasmota_2D5FB8/SENSOR"
    unit_of_measurement: '°C'
    value_template: >      
      {% if value_json.ZbReceived is defined and '0x17C1' in value_json.ZbReceived and 'Temperature' in value_json.ZbReceived['0x17C1'] %}
        {{ value_json.ZbReceived['0x17C1'].Temperature }}
      {% else %}
        {{ states('sensor.Zigbee_temperatura_salone') }}
      {% endif %}
    unique_id: 'tasmota_2D5FB8_temp_salone' 

1 post - 1 participant

Read full topic

Changing channel z2mqtt

$
0
0

I have issues with z2mqtt channel interference. So I stopped the addon in HA and changed channel in configuration.yaml, renamed coordinator_backup.json and restarted everything again. I see the new channel in advanced, but I did not had to repair devices? when you change the channel you need to do the pairing again for devices? Why don’t I need to fo this?

Next I have a poe coordinator, tried to use it. Seems okay, but when I disconnect the usb sonoff it stopped working. It seems to me that the config does not being applied?

What does below mean? is this why it is’nt woking they way I thought? Can i delete it?

enabled: false
master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
options: “-d -d”

5 posts - 2 participants

Read full topic

Hue Integration Fails - “This entity is not available”

$
0
0

Hello!
I’m having trouble with the Hue integration (Bridge V2). The setup works without any issues, all devices and rooms, etc., are there, but I’m unable to control any lights. When I click on the device (Hue light), I can see the entity “light.wohnzimmer” with a lightbulb icon under controls. However, when I click on it, I get the error message: “This entity is not available.” But in the “logbook” next to it, I can see the switching actions triggered by the Hue app or the motion sensor. This is the case for all lamps and sensors. Everything works fine through the Hue app and also via the IoBroker adapter (integration). No issues with range, using different channels for wifi, hue, Z2M. Tried Tried already to delete and reinstall the hue integration, restarting the Hue bridge etc.
Do you have any ideas?

Thanks, Flo

1 post - 1 participant

Read full topic

Riemann Integral creates wrong results

$
0
0

Hi
in my card energy-flow-card-plus I want to integrate 2 solar entity. This ist not possible. So I create a template-sensor as sum of the 2 kwh-sensors from the 2 devices. But the card did not show the correct value of this template. This should be a bug (see the issues of the card.).
So I created first a sum-helper from the power-sensors of the 2 devices. Than I created the integral helper of this sum and last s energy-helper for days.

Bui there is a difference to my first template-sensor. For Testing I created the same for Riemann left, trapez and right.

By this dard day this my results.

grafik

All integral sensors are defined like this:

The basic power-sensor for all is

So my question is, is it normal to get this difference by this low power or what is the reason?

2 posts - 2 participants

Read full topic

Alarmo - sometimes (but not always) failing to arm in Home mode if a door is open

$
0
0

I am using Alarmo (currently v1.10.4) but hitting one problem. I automatically have the system change from armed away to armed home when one of us gets home. The list of sensors for home mode does not include any door sensors. However, on occasion, the attempt to arm home fails because either an external or internal door is open when it attempts to arm home. It doesn’t always do this, which makes it even stranger. Is there any way to force Alarmo v1.10.4 to ignore door sensors when arming home? Even if not, does anybody know why it would sometimes pay attention to open doors, but other times not pay attention to open doors?

3 posts - 2 participants

Read full topic

Anyway to backup zwave network with zwave js default integration and nortek stick?

$
0
0

Hello all,

Hoping for a solution to my query. Thank you all for any guidance you can provide!!

1 post - 1 participant

Read full topic

Turn off all lights except one


Tile card but just dropdown

$
0
0

Hey, I’m trying to make a clean dropdown without a card, icon, state etc.

Something like this:
image

I’ve come this far
image

This is my code:

          - type: tile
            entity: input_select.filip_dashboard_select
            features:
              - type: select-options
            layout_options:
              grid_columns: full
            card_mod:
              style: |
                ha-card .content {
                  display: none !important;                
                }
                ha-card {
                  height: auto !important;
                }

I’ve found that the padding lies in this path /html/body/home-assistant//home-assistant-main//ha-drawer/partial-panel-resolver/ha-panel-lovelace//hui-root//div/div[2]/hui-view/hui-sections-view//ha-sortable/div/div[1]/hui-section/hui-grid-section//ha-sortable/div/div[2]/hui-card/hui-tile-card//ha-card/div[2]/hui-card-features//div but dont know how to modify it.

:host > --feature-padding is another variable I find that changes what I’m looking for. If I set that to 0 I get what I want. But how do I get that result using card mod?

1 post - 1 participant

Read full topic

Notification of offline devices... changing from ZHA Toolkit

$
0
0

I used to use ZHA Toolkit to alert me when any of my ZHA devices went offline. This has worked fine, until a more recent HA release broke ZHA Toolkit, and its been playing catchup ever since.

So I thought I would investigate another way of doing this, which turns out to be pretty straight forward.

As a pre-requisite, you will need to enable the hidden LQI attribute of your zigbee devices that you want monitored.

Then simply use the script below. I’ve set mine on an hour timer, but you could trigger it how ever you want:

alias: ZHA and Wifi Offline Devices Check
description: ""
trigger:
  - platform: time_pattern
    hours: /1
condition:
  - condition: template
    value_template: >-
      {{ states.sensor | selectattr('state', 'in', ['unavailable', 'none']) |
      selectattr('entity_id', 'search', 'lqi') | rejectattr('name', 'search',
      'Tradfri Switch')  | list | count >0}}
action:
  - action: notify.mobile_app_YOUR_PHONE_HERE
    data:
      title: Devices Offline
      message: >-
        {{ states.sensor | selectattr('state', 'in', ['unavailable', 'none']) |
        selectattr('entity_id', 'search', 'lqi') | rejectattr('name', 'search',
        'Tradfri Switch') | map(attribute='name') | list | join(', ')}}
mode: single

The condition check simply counts the number of devices in the offline state. I’ve also added an additional check:

rejectattr('name', 'search',
      'Tradfri Switch')

to ignore any entities which have names including the words ‘Tradfri Switch’. This is because some of my devices present themselves as offline (when they are not, they are working fine) and I want to ignore these.

1 post - 1 participant

Read full topic

Every reboot reauthenticate and discovery new device

$
0
0

Good morning everyone! since the 2024.9.1 update, every reboot I have to do 4 things: 1 shelly (added yesterday) and a SMLIGHT SLZB (which wasn’t even discovered before the update) is always seen as a new device and i have to reconficure those devices, and I have to reauthenticate Tuya and Daikin Onecta. What can I do?

1 post - 1 participant

Read full topic

Modbus calculation helper

$
0
0

Hello,
I have a modbus device connected to HA via Modbus TCP/ IP protocol. I am exposing some registers via configuration file as entities. My problem is that none of these registers suffice my needs and I need to do some mathematical operations on the available entities to get the end result I need, the one that I would like to track in HA.

Is there a way to create a helper/ script that would take the A, B and C entities at say 30 sec interval, perform some calculations on them and expose a new device/ entity value in HA?

I would appreciate all feedback!

1 post - 1 participant

Read full topic

Unable to capture 'to_state' value in a trigger

$
0
0

I have a trigger as follows:

alias: “NOTIFY: Shelly Test”
description: “”
trigger:

  • platform: state
    entity_id:
    • sensor.shelly_hw_status
      for:
      hours: 0
      minutes: 0
      seconds: 0
      from: OK
      to: null
      condition:
  • condition: not
    conditions:
    • condition: state
      entity_id: sensor.shelly_hw_status
      state: OK
      action:
  • action: script.email_chris
    metadata: {}
    data:
    title: “ALERT: Shelly HW has a problem”
    message: >-
    Shelly HW status shows ‘{{ trigger.from_state.state }}’ → ‘{{
    trigger.to_state.state }}’
    mode: single

The sensor ‘sensor.shelly_hw_status’ returns string value that is either ‘OK’ or ‘Problem (x)’ where x is a sequence of 1-5 characters. When the status of this sensor changes from ‘OK’ to ‘Problem (W)’ (for example) the trigger fires but the message I get is:

Shelly HW status shows ‘OK’ → ‘unavailable’.

I guess I am doing something wrong? How can I capture the ‘to_state’ value in this trigger so I can report it in the message?

2 posts - 2 participants

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>