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

Request: Blueprint to regulate ventilation system based on Sensors with a Z Wave Dimmer

$
0
0

Hi there!

I have an older Home Ventilation System that I am trying to automate. I managed the hardware part with a Z Wave Dimmer (Quobino Flush 1-10V) and can control the fan speeds in Home Assistant from 0-100% using the slider.

Now I am trying to set up a clever automation and since I am very new to HA I have no idea how!

I managed to set up a simple “Up” and “Down” automation based on a Humidity Sensor crossing certain thresholds, but this isn’t working the way I want it to.
First issue is, that I can’t set any percentages. I can only select “brighter” or “dimmer”. It also isn’t very dynamic.

Since I want to eventually have this working with 3 CO2 or VoC Sensors I need something a little more complex I’m afraid.

My idea:
The “0-10V Dimmer” should regulate in a bracket between 20 and 80% of it’s range. The “Baseline” should be 40% (that is 120m^3 of airflow).
Based on the current humidity (later CO2) readout it should ramp up slowly until the Sensor reading starts dropping and then slowly ramp down again.

I hope someone fan help me with this. Thanks!

1 post - 1 participant

Read full topic


HA begun restarting for minutes - websocket connection failed

$
0
0

Hello,
since weeks ago, my HA begun restarting for minutes. Developer tools / console in the browser under F12 shows the following, about 40 instances, after that it drops the attempt and HA starts in three seconds. I am running on Synology VMM. Any ideas where to go? It might be linked to lovelace as the core.2895f1d4.js seems to be related to lovelace.

image

1 post - 1 participant

Read full topic

Google assistant 429/500 errors

$
0
0

Hello,

I recently configured Google Assistant with Home Assistant. Everything was working. Suddenly now I am getting errors. Google says the devices are offline, and cannot talk to them. Home Assistant shows errors like:

2022-08-03 18:11:11 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 500

If I try to sync the devices, I get errors like:

2022-08-03 17:53:25 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 429
2022-08-03 17:53:25 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140663093135584] Unable to sync devices with result code: 429, check log for more info.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_callead) [homeassistant.components.aut
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_serviceead) [homeassistant.components.aut
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(ready running
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_servicet_location_updates] Update Tesla l
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_callt_location_updates] Update Tesla l
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_callt_location_updates] Update Tesla l
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_callt_location_updates] Update Tesla l
    await result
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 114, in _async_press_action
    await self.async_press()
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/button.py", line 51, in async_press
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Unable to sync devices with result code: 429, check log for more info.
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_callt_location_updates] Update Tesla l
    await result
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 114, in _async_press_action
    await self.async_press()
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/button.py", line 51, in async_press
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Unable to sync devices with result code: 429, check log for more info.
2022-08-03 17:53:33 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 500
2022-08-03 17:53:33 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall button.press (c:01G9HB3SK7QDRJ29GNVWSEW5KG): entity_id=['button.synchronize_devices']>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptionst_location_updates] Update Tesla l
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_servicet_location_updates] Update Tesla l
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(ead) [homeassistant.components.aut
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_serviceready running
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_callready running
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_callready running
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_callready running
    await result
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 114, in _async_press_action
    await self.async_press()
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/button.py", line 51, in async_press
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Unable to sync devices with result code: 500, check log for more info.

Is this something I have done wrong, or is something broken with Google right now?

Doing research I see similar errors from people who try to sync the devices, but in this case it makes the google integration unusable right now. Not just the sync operation.

EDIT: Just to clarify this was entirely working before, it suddenly broke and I didn’t change anything to break it.

1 post - 1 participant

Read full topic

Shelly RGBW2 No Color Or Brightness Settings

$
0
0

Hello Everybody,

i use HA 2022.7.7, OS 8.4 together with Shelly RGBW2, FW 20220209-093926/v1.11.8-g8c7bb8d.

When I open the settings from the dashboard to adjust brightness or color, nothing useful happens. Sometimes, the brightness changes, mostly the wrong one (white vs. color brightness). On and off do work but the slider on the light card is also dysfunctional.

Adjusting it on the devices’s interface directly works as expected.

Can anybody help me?

Thanks for your time.

Ole

1 post - 1 participant

Read full topic

How to link an input select list to/from a modbus list of integers

$
0
0

Hi,

i have a heatpump (LG Therma V) which I connect to via the Modbus integation (modbusTCP).
The most parameters I can read are temperature or basic on/off switches.
But some parameters are a list of possible values which are stored as integers; like this:

This is how I read that parameter (now)

      - name: energy_state_input_holding
        scan_interval: 5
        address: 9
        slave: 1
        input_type: holding

What I would like to achieve is that I can have a dropdown/radiobutton list in my dashboard where I can read/update that energy state (as well as all other options of my heat-pump).

I have made a Helper with all the status. What I need is a starting point on how I can link those states to the integer value I can read/write from and to the modbus. In C# I would have made an enum and a databinding between the parameter and that enum.

1 post - 1 participant

Read full topic

Zigbee garden irrigation device ( Solenoide valve ) not fully supported by ZHA integration

$
0
0

Hi,

I bought this zigbee garden irrigation device ( Solenoide valve ) … Electrovanne et programmateur d'arrosage Zigbee avec mesure - SASWELL [SAS980]

This has been integrated in 2022.7 ZHA integration but the water measurement is not working at all ( no sensor)

Enclosed the log and the screenshot of the device information :

Logger: homeassistant.components.zha.core.channels.base
Source: components/zha/core/channels/base.py:486
Integration: Zigbee Home Automation (documentation, issues)
First occurred: July 27, 2022 at 11:10:56 PM (6 occurrences)
Last logged: 2:45:48 PM

[0x9733:1:0x0008]: async_initialize: all attempts have failed: [DeliveryError('[0x9733:1:0x0008]: Message send failure'), DeliveryError('[0x9733:1:0x0008]: Message send failure'), DeliveryError('[0x9733:1:0x0008]: Message send failure'), DeliveryError('[0x9733:1:0x0008]: Message send failure')]
[0x118F:11:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x118f:11:0x0006]: Message send failure'), DeliveryError('[0x118f:11:0x0006]: Message send failure'), DeliveryError('[0x118f:11:0x0006]: Message send failure'), DeliveryError('[0x118f:11:0x0006]: Message send failure')]
[0x9733:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x9733:1:0x0006]: Message send failure'), DeliveryError('[0x9733:1:0x0006]: Message send failure'), DeliveryError('[0x9733:1:0x0006]: Message send failure'), DeliveryError('[0x9733:1:0x0006]: Message send failure')]
[0xC69F:1:0x0001]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
[39174:1:0x0001]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable

Please any advice ?
Thank you

1 post - 1 participant

Read full topic

How to send notification if temperature is above/below limits set in helpers

$
0
0

Hello all,
I’m trying to create automation that sends notification if a temperature goes above or below a certain threshold. Those threshold limits are set with Number Helpers using an Entities Card.

My automation failed to save with the error:
Message malformed: expected float for dictionary value @ data['above']

How is this done?

The Automation (gives the error above when I try to save it)

alias: Temperature outside limits
description: Send notification to all if temp. is out of limits
mode: single
trigger:
  - type: temperature
    platform: device
    device_id: 1d1df34b60806385eb674a2c129394f5
    entity_id: sensor.lumi_lumi_weather_temperature
    domain: sensor
    above: input_number.temp_hall_high
    below: input_number.hiti_hall_low
action:
  - service: notify.all_user_devices
    data:
      title: Temperature outside limits
      message: The thermometer reads {{ trigger.event.data }}. The limit is {{ trigger.below }} - {{ trigger.above }}.

The Entities Card Configuration:

type: entities
entities:
  - entity: input_number.temp_hall_high
  - entity: input_number.hiti_hall_low
title: Viðvaranamörk fyrir holið
state_color: false

The Number helpers:

input_number.temp_hall_high
input_number.hiti_hall_low

1 post - 1 participant

Read full topic

Raspberry Pi4 Enable TRIM on SSD

$
0
0

Hi,
I am using the SD card to boot and an external SSD for a datadisk, the question is how to enable the trim function on the SSD.
I found few information on the internet, but eather they are confusing or hard to execute.
Does someone knows how to activate this or to direct me to right source.
Many thanks.

1 post - 1 participant

Read full topic


Replace GPIO control by remote_rpi_gpio

$
0
0

I have a RPI4 with the HA operating system.

I had a fan to control the temperature of the CPU using CPU temperature reading and making a kind of PWM control with HA, just followed this link

Since GPIO is no longer available, I placed the fan connected to 5V pins and it is working 24/7.

I just started to read about remote_rpi_gpio, and start wondering if I can use it to control my RPI4 GPIO pointing the IP address to localhost.

I’ved to follow the configuration guide and I had no sucess, I need further reading and trying.

Did anyone used remote_rpi_gpio to replace old GPIO control?
Should I keep digging or does not make any sense waste time here?

1 post - 1 participant

Read full topic

Nested IFs (conditions) within Frontend-Template

$
0
0

Dear Community,

I started with a frontend-.YAML: fe-og-kin2.yaml
I included a template-file using button_card_templates: !include button-card-templates.yaml
Within the template-file, I configured the following template to render my cover-buttons

schmiddy-cover:
    size: 30%
    icon: |
      [[[
        if (variables.function == "up")
          if (entity.state == "opening")
            return 'mdi:arrow-up-bold';
          else if (entity.state == "open")
            return 'mdi:arrow-up-bold';
          else return 'mdi:arrow-up-bold-outline';
        else if (variables.function == "stop")
          return 'mdi:pause';
        else if (variables.function == "down")
          if (entity.state == "closing")
            return 'mdi:arrow-down-bold';
          else if (entity.state == "close")
            return 'mdi:arrow-down-bold';
          else return 'mdi:arrow-down-bold-outline';
      ]]]

Using the variable ‘function’ I wanted to manage the button-design for up, pause and down.
But unfortunately the nested IF-statements don’t work properly.
=> up works fine, the variants bold/outline of the icons displayed as I wanted it.
which is: in state ‘opening’ AND ‘open’ it should be bold, otherwise outlined.
=> But in down-mode, bold-Icon displays during closing, but not in close-state (instead outline is displayed)

I just don’t understand, why.

Which language is used between the brackets [[[ and ]]]?
Can anyone give me the hint and correct my code?
I would be very thankful.

Best regards

Lars

2 posts - 2 participants

Read full topic

Sensor error

$
0
0

I’m trying to set the icon and color for this sensor:

sensors:
    livingroom:
      friendly_name: Livingroom Temperature Rounded
      #device_class: presence
      value_template: >-
        {{ states('sensor.living_room_temp_sensor_temperature')| round }}°
    icon_template: >-
      {% if state_attr('sensor.living_room_temp_sensor_temperature', 'temperature') |int > 74 %}      
      mdi:thermometer-high
      {% else %}
      mdi:thermometer
      {% endif %}
    icon_color: >-
      {% if state_attr('sensor.living_room_temp_sensor_temperature', 'temperature') |int > 74 %}      
      red
      {% else %}
      white
      {% endif %}

But I keep getting this error when I’m trying to validate the config… what am I missing?
Thanks all!

Invalid config for [sensor.template]: expected dictionary for dictionary value @ data[‘sensors’][‘icon_color’]. Got “{% if state_attr(‘sensor.living_room_temp_sensor_temperature’, ‘temperature’) |int > 74 %} red {% else %} white {% endif %}”
expected dictionary for dictionary value @ data[‘sensors’][‘icon_template’]. Got “{% if state_attr(‘sensor.living_room_temp_sensor_temperature’, ‘temperature’) |int > 74 %} mdi:thermometer-high {% else %} mdi:thermometer {% endif %}”. (See ?, line ?).

3 posts - 2 participants

Read full topic

Weather integration - recommendation?

$
0
0

hello. i’m looking for good weather integration that

  • is accurate for my location near london
  • updates frequently
  • exposes all the info in entities and attributes.
    accuweather might be an option but the problem is that i can’t create an account because they want me to solve a CAPTCHA but that CAPTCHA doesn’t appear on my screen. and if i can’t see it, i can’t solve it.

i wasn’t happy about met.no because i couldn’t extract essential info like air pressure

i also tried NWS but that one doesn’t update anywhere near frequently enough (sorry, 1 update in more than 20 hours just doesn’t cut it)

is there an integration or an add-on that can extract the relevant info from METAR code? if so, i could use that to get the data from my nearest airport.

1 post - 1 participant

Read full topic

Convert seconds in MM:SS

$
0
0

Hi

how can I convert seconds in MM:SS ?

I tried several templates found around here, but none works for me.

What is the correct template?

Thanks

1 post - 1 participant

Read full topic

Multiple Trigger, Different Actions for Lights

$
0
0

Hi all

I have some lights in the house that are primarily triggered from motion. They switch off if no motion is detected for 3 minutes.

There is however a button that also toggles the lights.

At the moment, these are two separate automations and the lights will turn off based on the motion detection above.

What I would like to do is have the lights trigger from the motion, but if they are turned on from the button then they stay on until the button is pressed again.
Is it possible to combine these two things and have that overall control?

Cheers

1 post - 1 participant

Read full topic

Filter json from mqtt device in sensor

$
0
0

I have a sensor created like this:

mqtt:
   sensor:
     - name: "BoilerTemp"
       state_topic: "BSB/json"
       unit_of_measurement: "..C"
       value_template: "{{ value_json.BSB.value }}"

And this is the json where that’s get send to the Mosquito broker:

{
    "BSB": {
        "id": 8830,
        "name": "DHW temperature actual value top (B3)",
        "value": "43.8",
        "desc": "",
        "unit": "°C",
        "error": 0
    }
}

This all works fine if I just get 1 message. If I add extra messages to be sent by the mqtt client it starts to get challenging. They all end up in the same topic BSB/json and also have the same format:

Like this:

{
    "BSB": {
        "id": 8830,
        "name": "DHW temperature actual value top (B3)",
        "value": "43.8",
        "desc": "",
        "unit": "°C",
        "error": 0
    }
}

{
    "BSB": {
        "id": 8700,
        "name": "Outside temp sensor local",
        "value": "27.0",
        "desc": "",
        "unit": "°C",
        "error": 0
    }
}

I want to create a sensor per “id”

So I need to find a way to tell the sensor to only accept data if “id”==“8700” for a certain sensor and if “id”==“xxxx” for any other example.

I do know the logic but I cant find a example to get this done in the sensor config.

Any help or example would be much appreciated. Let me know if there is a better approach in HA

1 post - 1 participant

Read full topic


Configure Tuya TS0043 3 Button

$
0
0

Hello,

I’ve found the following blueprint from @vigonotion here

I’ve the same model, however using Deconz, by checking the Blueprint I guess I should change ZHA to deconz, but I wonder if someone have some example to set up the actions.

The idea is to set up the button action to Turn on/off a Plug for example

thanks in advance for the support

1 post - 1 participant

Read full topic

Bluetooth tracker intervals

$
0
0

I need some help regarding the intervals for bluetooth tracker. This is my current configuration

- platform: bluetooth_tracker
  interval_seconds: 60
  consider_home: 180
  new_device_defaults:
    track_new_devices: false

My phone will show as home every minute (I mean every, no exception) and away 25-30s after that. So, it cycles from home to away every 30s. If I set interval_seconds to less than 30s than situation improves. Every now and then (sometimes 15 minutes, sometimes it could be more than a hour) it will show as away and second after that as home. It seems to me that there is some other interval unrelated to bluetooth scanning that I am unaware of and checks if devices was seen in some interval less then 30s and sets the device to away.

Why can’t I use interval_seconds with value greater than 30s?

1 post - 1 participant

Read full topic

Aeon Labs Micro switch Z-Wave config

$
0
0

Hi,
I’m at the beginning of my Z-Wave journey. I have couple of TRV and door sensors installed and they seem to work fine. However I have recently purchased 2nd hand Aeon Labs DSC12 Micro Switch with energy metering. I managed to get that connected fine. The only issue I see is with the electric consumption sensor updates. I suspect that this has something to do with the Z-Wave Device Configuration (I’m using Z-Wave JS Addon). Under the Z-Wave Device Configuration there is a long list of Parameters but I’m not sure what do they do - i.e. what are those Report Groups 1,2 and 3 ?
Can someone point me in the right direction what to do with that.
Thanks

1 post - 1 participant

Read full topic

Restful command does not find item

$
0
0

Hi,

I’d need a bit help getting restful command sent with parameters taken from other items, I have created buttons using lovelace gui for replicating AC remote.

I’ve created also automation which calls rest command if such send button is pressed. So far it works, button calls the automation.

Then I have done rest command like this, in configuration.yml:


heatpump_with_params:
    url: http://192.168.1.100:1880/api
    method: POST
    content_type: "application/json"
    headers:
       accept: "application/json"
    payload: '{ "token": "xxxx", "cmd":"on", "temp":"{{ states(input_number.heatpump_temp) | int }}", "mode":"{{ states(input_select.heatpump_mode) }}", "fan": "{{ states(input_select.heatpump_fan) }}" }'

But such variables are not found. The entity ids are copied from items, so no spelling mistakes should be there.

What is wrong with the syntax?

Error:

Stopped because an error was encountered at August 3, 2022 at 12:09:18 (runtime: 0.02 seconds)

UndefinedError: 'input_number' is undefined

2 posts - 1 participant

Read full topic

Time Condition Bug: Changing the after value to a valid time results in error

$
0
0

I’ve been trying to get my time based conditions to work for the better part of a couple days now. I’ve read the documentation on the HA conditions and even searched through 10+ posts with similar topics.

I’m not sure if this is a bug in the UI or I’m completely missing the point. My goal is to set an automation based on weeknights to turn off after 3 minutes, when no motion is detected, between 5pm and 10pm on weeknights: Sunday - Thursday.

I’ll post the full YAML at the bottom but here are some screen shots of valid entries that work and then simply changing the “after” time to a still valid time, results in a red flag.

Here is a simple dummy test to prove im not losing my mind.:
9am to 10pm is valid

But yet once I change the after value to 5pm, it is no longer valid.

Full YAML:

alias: 'Kitchen: Motion Off Weeknights'
description: ''
trigger:
  - type: no_motion
    platform: device
    device_id: my.device.id
    entity_id: binary_sensor.g3_instant_motion
    domain: binary_sensor
    for:
      hours: 0
      minutes: 3
      seconds: 0
condition:
  - condition: time
    before: '22:00:00'
    after: '17:00:00'
    weekday:
      - mon
      - tue
      - thu
      - wed
      - sun
action:
  - service: script.switch_turn_off_kitchen_motion_light
    data: {}
mode: single

1 post - 1 participant

Read full topic

Viewing all 109288 articles
Browse latest View live


Latest Images

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