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

How to change HA ip address?

$
0
0

HI, I’ve HA installed on Proxmox and I changed my router. How can I change ip address on HA and Proxmox?

1 post - 1 participant

Read full topic


Unable to configure Daikin AC

$
0
0

HA is unable to configure the 2 aircons. Daikin AC is failing to connect ( “Connect call failed” ) to the IP addresses. Can you help ?

2 posts - 2 participants

Read full topic

Ultrasonic Sensor D1 Mini not reading

$
0
0

Hi was hoping someone could point me in the right direction, im new to HAS (come from RTI background so less coding) i followed this guide Salt level sensor for water softener in Home Assistant with ESPHome – ADONNO and brought the D1 mini and HCSR04 Sensors set it up as described added in the line allow_other_uses: true so that it would validate and uploaded.

The D1 mini is connected fine but i get no readings from the Sensor, on the ESPHome device page its says level sensor cm NA and percent NA

and if i try and add it to a gauge in home assistant i get Entity is non-numeric: sensor.level_sensor_in_cm

here is my ,yamal


esphome:
name: level-sensor
platform: ESP8266
board: d1_mini

WiFi connection, replace these with values for your WiFi.

wifi:
ssid: “**********”
password: “***********”

Enable logging

logger:

Enable Home Assistant API

api:

Enable over-the-air updates.

ota:
platform: esphome

Enable Web server.

web_server:
port: 80

Sync time with Home Assistant.

time:

  • platform: homeassistant
    id: homeassistant_time

Text sensors with general information.

text_sensor:

Expose ESPHome version as sensor.

  • platform: version
    name: level-sensor ESPHome Version

Expose WiFi information as sensors.

  • platform: wifi_info
    ip_address:
    name: level-sensor IP
    ssid:
    name: level-sensor SSID
    bssid:
    name: level-sensor BSSID

Exposed switches.

Switch to restart the salt_level_sensor.

switch:

  • platform: restart
    name: “level-sensor Restart”

sensor:

Uptime sensor.

  • platform: uptime
    name: level-sensor Uptime

WiFi Signal sensor.

  • platform: wifi_signal
    name: level-sensor WiFi Signal
    update_interval: 60s

  • platform: ultrasonic
    trigger_pin:
    number: D1
    allow_other_uses: true
    echo_pin:
    number: D2
    allow_other_uses: true
    name: “level-sensor in percent”
    update_interval: 24h
    filters:

    Calculate level in percent

    Sensor comes from factory with unit of measurement set in meters

    Storage tank height (sensor to bottom of tank) = 84.7cm, 0.847m

    Subtract measured value from the storage tank height => difference is the salt level = 84.7cm - 44.7cm = 40cm, .847m - .447m = .400

    100 % salt level is the container height minus 0.400 meters since nobody will drawn the sensor at full salt level

    divide salt level through container height minus 0.4000, then multiply result with 100 to achieve percents

    • lambda: return (0.847-x) * (100/0.847);
      unit_of_measurement: “%”
  • platform: ultrasonic
    trigger_pin:
    number: D1
    allow_other_uses: true
    echo_pin:
    number: D2
    allow_other_uses: true
    name: “level-sensor in cm”
    update_interval: 24h
    filters:

    Container height 52.75cm. From the sensor to the top of the water that accumulates in the bin.

    Multiply result by 100 - convert M to CM. Sensor works in meters

    • lambda: return (0.847-x)*100.0;
      unit_of_measurement: “cm”

any help would be appreciated greatly

2 posts - 1 participant

Read full topic

Tomorrows price unavailable with Nordpool core integration

$
0
0

I’m in the process of moving from the custom component for Nordpool to the new core integration. Besides having issues displaying today and tomorrow’s price on a chart (see here), I’m also trying to follow the examples form the official doc.
When testing “tomorrow’s lowest price” in the template editor, I get

‘tomorrow_price’ is undefined

I used the exact same code as the Example, just changed my config_entry and SE3 to SE4.

template:
  - trigger:
      - trigger: time_pattern
        minutes: /10
      - trigger: homeassistant
        event: start
    action:
      - action: nordpool.get_prices_for_date
        data:
          config_entry: 01JHZHJ9EMYV8JA28490CH5GEE
          date: "{{ now().date() + timedelta(days=1) }}"
          areas: SE4
          currency: SEK
        response_variable: tomorrow_price
    sensor:
      - name: Tomorrow lowest price
        unique_id: se4_tomorrow_low_price
        state: >
          {% if not tomorrow_price %}
            unavailable
          {% else %}
            {% set data = namespace(prices=[]) %}
            {% for state in tomorrow_price['SE4'] %}
              {% set data.prices = data.prices + [(state.price / 1000)] %}
            {% endfor %}
            {{min(data.prices)}}
          {% endif %}
        attributes:
          data: >
            {% if not tomorrow_price %}
              []
            {% else %}
              {% set data = namespace(prices=[]) %}
              {% for state in tomorrow_price['SE4'] %}
                {% set data.prices = data.prices + [{'start':state.start, 'end':state.end, 'price': state.price/1000}] %}
              {% endfor %}
              {{data.prices}}
            {% endif %}

Anything I do wrong? Or is this a bug with the integration?

I didn’t find any information on the actions available with the integration (e.g. get_prices_for_date), where are these documented?

3 posts - 2 participants

Read full topic

Input_button to trigger current time, but time is not updated

$
0
0

Hello everyone,

that little helper should give me the current time and date:

alias: Ansage
description: Durchsage Uhrzeit und Datum.
triggers:
  - trigger: state
    entity_id:
      - input_button.ansaget
    from: null
conditions: []
actions:
  - action: tts.google_translate_say
    metadata: {}
    data:
      cache: false
      entity_id: media_player.wohnzimmer
      language: de
      message: |
        {% from 'message.jinja' import message %} {{ message }}
mode: single

The editor is telling me the correct time and date:

But when manually triggered (input button) I get something with 12:05 o’clock. I guess the state is the problem. No change in the state and you get the “old information”.

Is there a way to reset the state? Or a similar helper?

Thank you. :slight_smile:

1 post - 1 participant

Read full topic

Calculating minimum value from multiple sensors with eliminating possible liars

$
0
0

I have four BMExxx/SHT3x/4x sensors outside (in different places) for weather measurement purposes: i measure temperature, humidity and pressure.
Then i created template sensors which takes minimum value for dashboard showing - this way i eliminate, say, sun shining on one of them thus reporting wrong value (this especially goes for temperature).

During the night one of BME’s died on me since it was stuck at same values from 7 morning and it’s unavailable after esp reset. As a result my dashboard was showing wrong values.

Now i wonder - is it possible to create some king of template sensor which takes into account possible “liars”? I was thinking in a way that I’d eliminate any value if it’s outside “decent” range. For example, if 3 sensors show temperature around 9-10 degrees and fourth shows -1 it would be eliminated from “minimum” sensor calculation?

1 post - 1 participant

Read full topic

Aqara u200 door lock error

$
0
0

Hi
Any one can shed some light on why my door lock intermittently fails?

Thanks

Logger: homeassistant.components.automation.aqara_auto_lock
Source: components/automation/init.py:718
integration: Automation (documentation, issues)
First occurred: 13:16:54 (1 occurrences)
Last logged: 13:16:54

While executing automation automation.aqara_auto_lock
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/automation/init.py”, line 718, in async_trigger
return await self.action_script.async_run(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
variables, trigger_context, started_action
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 1810, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 464, in async_run
await self._async_step(log_exceptions=False)
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 528, in _async_step
self._handle_exception(
~~~~~~~~~~~~~~~~~~~~~~^
ex, continue_on_error, self._log_exceptions or log_exceptions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 558, in _handle_exception
raise exception
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 526, in _async_step
await getattr(self, handler)()
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 781, in _async_device_step
await device_action.async_call_action_from_config(
self._hass, self._action, self._variables, self._context
)
File “/usr/src/homeassistant/homeassistant/components/device_automation/action.py”, line 72, in async_call_action_from_config
await platform.async_call_action_from_config(hass, config, variables, context)
File “/usr/src/homeassistant/homeassistant/components/lock/device_action.py”, line 89, in async_call_action_from_config
await hass.services.async_call(
DOMAIN, service, service_data, blocking=True, context=context
)
File “/usr/src/homeassistant/homeassistant/core.py”, line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/core.py”, line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/lock/init.py”, line 221, in async_handle_lock_service
await self.async_lock(**self.add_default_code(kwargs))
File “/usr/src/homeassistant/homeassistant/components/matter/lock.py”, line 91, in async_lock
await self.send_device_command(
command=clusters.DoorLock.Commands.LockDoor(code_bytes)
)
File “/usr/src/homeassistant/homeassistant/components/matter/lock.py”, line 71, in send_device_command
await self.matter_client.send_device_command(
…<4 lines>…
)
File “/usr/local/lib/python3.13/site-packages/matter_server/client/client.py”, line 460, in send_device_command
return await self.send_command(
^^^^^^^^^^^^^^^^^^^^^^^^
…<9 lines>…
)
^
File “/usr/local/lib/python3.13/site-packages/matter_server/client/client.py”, line 589, in send_command
return await future
^^^^^^^^^^^^
matter_server.common.errors.UnknownError: InteractionModelError: UnsupportedAccess (0x7e)

1 post - 1 participant

Read full topic

MQTT trigger wont trigger timer

$
0
0

Hi All

Recently with the changes made in Z2M I migrated my automation from node-red into HA automation. I am using sonff zigbee PIR sensors to trigger my lights for 10mins then turn off. I initially used the delay function but found that to be unreliable to am trying to move to timers.

I used the following code for a few WIFI PIR sensor that change state this worked fine however with MQTT trigger, it triggers the turn on automation but not the timer so never turns off. I understand that in my code there is no payload and I am guessing that is where the problem lies. I tried a number of variables with value_template but no joy. I have spent days on this with no luck so any help is greatly appreciated.

The MQTT payload is {"battery":100,"battery_low":false,"linkquality":43,"occupancy":true,"voltage":3000}
In MQTT explorer the message seems to trigger quickly then go back to false.

alias: Bedroom PIR Timer
description: ""
triggers:
  - trigger: event
    event_type: timer.finished
    event_data:
      entity_id: timer.bedroom_pir
    id: Timer finished
  - trigger: mqtt
    topic: zigbee2mqtt/Zigbee Bedroom PIR
    id: Motion Stopped
  - trigger: mqtt
    topic: zigbee2mqtt/Zigbee Bedroom PIR
    id: Motion Detected
conditions: []
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - Motion Stopped
        sequence:
          - action: timer.start
            target:
              entity_id: timer.bedroom_pir
            data:
              duration: "600"
      - conditions:
          - condition: trigger
            id:
              - Motion Detected
        sequence:
          - action: timer.cancel
            target:
              entity_id: timer.bedroom_pir
            data: {}
          - action: light.turn_on
            metadata: {}
            data: {}
            target:
              device_id: 9b51e60cd2e377dedcb57680b814a39f
      - conditions:
          - condition: trigger
            id:
              - Timer finished
        sequence:
          - action: light.turn_off
            metadata: {}
            data: {}
            target:
              device_id: 9b51e60cd2e377dedcb57680b814a39f
mode: single

Thanks again

1 post - 1 participant

Read full topic


GFCI, 15 Amp, Zigbee Wall Outlet

Why can't I find the add on?

How to reload hue integration without restarting HA?

$
0
0

Have a hue hub and homeassistant (HA) can control it. Running HAOS.
I have issues with the hue hub after some time and need to reboot it. When doing this HA loses track of it so a restart of HA is also needed. So I’d like to automate this so I don’t need to think about it.
I can use a smart plug for the hue hub, but what I would really like to know is how to reload the hue “service” or integration so I don’t need to do a full restart of HA.

Does anybody know what part of HAOS needs to be ready restarted/reloaded for hue and can it be done via automations?

Thanks

1 post - 1 participant

Read full topic

Gauge cards do not show when loading page

$
0
0

Hi

Can’t find best category to post this in.

When I load my page from iOS HA app or from browser on win 11 the gauges do not always populate. A pull down refresh or refresh page once or twice can bring it back or if the entity updates itself.
Am I doing something wrong. It used to work.

1 post - 1 participant

Read full topic

Weather forecast - syntax understanding issue

$
0
0

Hi !

I really need help to make a very simple wind sensor that takes the average of the next 3 hours from the integrated weather forecast for wind… I’ve looked at many discussions here and the doc, and I though I understood but obviously not. It updates each hour with no values in it,
any advice ?
Thanks

  - trigger:
      - trigger: time_pattern
        hours: "/1"
    action:
      - action: weather.get_forecasts
        data:
          type: hourly
        target:
          entity_id: weather.forecast_maison
        response_variable: hourly_forecast
    sensor:
      - name: "wind_speed_forecast_avg"
        unique_id: wind_speed_forecast_avg
        state: >
          {% set forecast_hours = 3 %}
          {% set wind_speeds = state_attr('weather.forecast_maison', 'forecast')[:forecast_hours] | map(attribute='wind_speed') | list %}
          {% if wind_speeds | length > 0 %}
            {{ (wind_speeds | map('float') | sum / wind_speeds | length) | round(2) }}
          {% else %}
            0
          {% endif %}
        unit_of_measurement: "m/s"
        device_class: wind_speed
        state_class: measurement
        icon: mdi:weather-windy

5 posts - 2 participants

Read full topic

Key difference i noticed between openai and extended openai

$
0
0

Hi guys,

I was experimenting with both integrations openai and the extended one and they are awesome
One thing i noticed and i will explain it using an actual example
i have three led strips zigbee from INNR that work like magic, if i ask normal chatgpt (openai) i want to color them to match France’s Flag for Ex, it automatically by itself color each one with one of the colors of the french flag and no need to specifiy each one
-if i ask the same of Extended, it either says it did it with no actual change, sometimes it change of the lights each time correctly while no change to the others, sometimes it respond with no light.x.x was found,
so i have to specify which light to which color so that it does it
also no control to light temperature or brightness whatsoever, so openai here works intelligently
on the other hand, normal openai has issues with my security system to just change the modes (unless i use a script) while the extended just do it without an effort,
i am trying to find a way to either make one of them better than the other or to try to have some quires of mine to go to one and some to go to the other but i had no luck
anyone faced one of these issues before ?

1 post - 1 participant

Read full topic

Tuya TS0052 (Mini Dimmer Switch) - Keeps Toggling & Disconnecting in Zigbee2MQTT

$
0
0

Hi everyone,

I’m having serious issues with my Tuya TS0052 (Mini Dimmer Switch) in Zigbee2MQTT. The device is located in the same room as my Home Assistant running on Proxmox, so signal strength shouldn’t be a problem.

The issue:

  1. The switch pairs normally with Zigbee2MQTT and initially works fine.

  2. After some time, it starts behaving erratically:

It keeps toggling itself (on → off → on → off) randomly.

Eventually, it drops out of the Zigbee network completely.

  1. When I turn it off via Home Assistant, sometimes it doesn’t go to 0% brightness but instead stays at 1%.

  2. If I turn it off manually via a wall socket, then it fully turns off.

  3. I tried using external device configuration (external_converters), but it didn’t help.

What I tried so far:

Re-pairing the switch multiple times.

Checking the power source to make sure it’s stable.

Writing an external device config to see if that fixes the issue.

Watching Zigbee2MQTT logs—it seems like the switch is constantly sending state updates before disconnecting.

Has anyone faced a similar issue with this device? Any suggestions on how to fix it?

Thanks in advance for any help!

1 post - 1 participant

Read full topic


Controller showing disconnected in Z-Wave JS UI

$
0
0

I am having an issue in the Z-Wave JS UI that the controller is showing as disconnected when using a Chrome web browser on a PC to interact - but I do see it “flicker” to green/connected about every second, like it is trying. However, at the same time the Z-Wave network is working and when I take a look at the UI through the Android app, the controller shows as connected and I can interact with my devices. I am not sure what is causing this or how to troubleshoot. Any thoughts would be appreciated.

I am using a Smartstick G8.

image

1 post - 1 participant

Read full topic

Aqara Mini wirless switch (button) not registering

$
0
0

I have an automation to control my bedroom lights, the automation works no problem so I know that isn’t the problem,

I want to click the button on the device and it triggers the automation.
However, this doesn’t work, or works 1 in 100 times.

I have other aqara devices and they work fine (a motion sensor, water sensor, temp sensor, door sensor etc.) I only have 5-6 devices though so maybe the network isn’t strong enough?

It’s connected via Zigbee2MQTT

Why isn’t the button working properly to trigger the automation?

alias: Test Button
description: ""
triggers:
  - domain: mqtt
    device_id: 44be438654968f75a4382d5c7e43bd34
    type: action
    subtype: single
    trigger: device
conditions: []
actions:
  - action: script.hue_sunset_simulation
    metadata: {}
    data: {}
mode: single

1 post - 1 participant

Read full topic

Wake Word doesn't work but microphone works

$
0
0

Hi, I followed Networkchuck videos to setup HomeAssistant and Voice Assistant, with a bit of patience I managed to make almost everything work except for the wake word recognition, but if I click on the button to talk, the microphone works and I get a voice reply. The weird thing is that I haven’t found anywhere in my research to solve this issue the notification I get in the Wake Word section of Voice Assistant: “More recent devices support on-device wake word engines and are configured on the device page”. I installed the HA OS on Virtualbox in my host system, the Wyoming satellite on a Raspberry Pi 4, and Whisper, Piper and Ollama in Docker containers on my host system running Manjaro KDE. I already installed Openwakeword and Assist Microphone as addons. I searched for hours and tried some possible solutions but nobody seems to have this exact issue: I tried installing Openwakeword with Mosquitto both on the RPi and my host, I tried a custom wake word and it doesn’t work either, I searched inside HA for potential misconfigurations, but nothing, one thing I was able to find is that the logs should say that the microphone is searching for the wake word when it isn’t (but it was a video from 1 year ago, I dunno if it should be the same rn). I also wanna say that I’m new to Docker, and Docker-Compose is above my skill level for now, but if some of you can find a solution to make the Wake Word recognize with that I’m happy to copy/paste.
I don’t know if this is related but the RPi is the only device where even the Microphone doesn’t work, not recognizing anything I say when I press the button.
Thanks in advance!

1 post - 1 participant

Read full topic

iFrame with pdf doesn't work in Mozilla

$
0
0

Hello,
I am trying to set an iFrame card that open a .pdf file in Mozilla.

If I put the path directly on the iFrame card the browser open it in a new tab and download the .pdf file.

If I put an iFrame inside an HTML page and open it in the Mozilla browser eveything works.

Instead if I put the HTML page in the iFrame card, the card show nothing and the browser open the pdf file in a new tab.

I have made a lot of search but nothing that can help to solve it.

Do you have any advice?

Thank You
Regards
Matteo

1 post - 1 participant

Read full topic

Aeotec Smart Plug 7 power report slow

$
0
0

Does anyone here use Aeotec smart plug 7’s?

I installed one today. The plug connected nicely using S2. It responds quickly and I really like the options it has compared to the Fibaro power plugs.

However, there is one thing I can’t seem to figure out. The power report is horrible slow. When I turn of the plug the power value does nog change in ZwaveJS. Even after 20 minutes the power usage is still 0.
When I go into ZwaveJS UI and I refresh the values for the power meter, it updates.

I would like the plug to report the power usage instantly, like the Fibaro power plug does. I already set the power report threshold to 1W but this does make a difference.

Is there any solution for this? Really like the plug compared to the Fibaro because of the extra features. But without a proper power measure, the plug is not really well suited for automations that rely on the power usage.

Hopefully some has a fix. :slightly_smiling_face:

1 post - 1 participant

Read full topic

Viewing all 109264 articles
Browse latest View live


Latest Images

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