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

Entity_globs doesn't work as expected

$
0
0

Hi there, in the docs for the recorder integration it’s mentioned that

The question mark represents zero or one character.

I have a few entities I want to include, “battery_charge_power”, “discharge_power”, charge energy and discharge energy.
I then made the following glob to include all of them:

sensor.battery_???charge_*

In Home Assistant however the “charge” entities only shows a flat line, that resets every time I get out of the view. the “discharge” ones work as expected. Curiously though, it shows a flat line and not “no statistics found”, like with the other excluded ones (this is after a few days purges and repacks).

It’s not a huge deal as I can just include them as normal entities, but shouldn’t the glob I mentioned above work?

1 post - 1 participant

Read full topic


Restart Error

$
0
0

Every time I try to restart HA, I get the following error:

"
Failed to restart Home Assistant

‘_asyncio.Future’ object has no attribute ‘async_get_platform’
"

From my logs:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:241
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: June 19, 2024 at 1:04:41 PM (5 occurrences)
Last logged: 9:04:41 AM

[281472311041840] Unexpected exception
[281472252180896] Unexpected exception
[281472935248080] Unexpected exception
[281472049683552] Unexpected exception
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/core.py”, line 2741, in async_call
response_data = await coro
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/core.py”, line 2784, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 1080, in _async_admin_handler
await result
File “/usr/src/homeassistant/homeassistant/components/homeassistant/init.py”, line 184, in async_handle_core_service
errors = await conf_util.async_check_ha_config_file(hass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/config.py”, line 1708, in async_check_ha_config_file
res = await check_config.async_check_ha_config_file(hass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/check_config.py”, line 274, in async_check_ha_config_file
platform = await p_integration.async_get_platform(domain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘_asyncio.Future’ object has no attribute ‘async_get_platform’

1 post - 1 participant

Read full topic

Browser_mod : Set size of camera live view in it?

$
0
0

Hi there,

I have an entity camera and use the browser_mod (full screen on my tablet) to display the camera feed.
But as far as I see, it adapts the camera size to the width, so that I am missing the bottom of the picture.
How can I solve that ?
Is there a way I can still be in full screen, but adapt the width of the camera view so that the bottom of the image is showned ?

Browser_mod on the tablet missing the bottom of the screen :

Entity image is complete though :

Many Thanks !!

1 post - 1 participant

Read full topic

What is the path where z-wave js ui stores files?

$
0
0

I’m trying to locate the path on the sd card for home assistant supervisor os. I was running z-wave js ui on a raspberry pi 3

1 post - 1 participant

Read full topic

Bosch Indego no longer working since 2024.6.3

$
0
0

I use the Bosch Indego integration. It has some issues, like it does not update its state very accurate, but it worked. Glad to see that 2024.6.3. anounces some fixes. Sadly, since the update it isn’t working at all.

Tried to remove and reinstall the integration; That requires authenication at Singlekey-id. Alhough I succesfull logged in, it never came back to the integration…

What am I doing wrong?

1 post - 1 participant

Read full topic

Wireguard VPN on HA configure through Cloudflare

$
0
0

Hi folks!

I recently moved the remote access to HA from duckdns+SSL to cloudflare+own domain. The main reason to move is that I wanted google assistant commands to be fulfilled locally - which is now working.

From time to time I need to use a straight VPN on my mobile so that all the traffic gets routed as if I am at home (mostly used when I’m working abroad and need to watch content only available in my country).
Before I had the wireguard addon on HA configured with the HA external URL as server.host (let’s say it was mydomain.duckdns.org) and had the port UDP 51820 in my router pointing to HA IP.
Now I’ve created a subdomain on my cloudflared addon (e.g. wire.mydomain.com) which gets properly registred at Cloudflare in terms of DNS record. When I test accessing the url on chrome wire.mydomain.com, I see on cloudflared log that the traffic gets in, but then it never gets properly routed to my wireguard instance running in the same HA install. I’ve tested pointing cloudflared to several internal IPs alternatives (as below) but none trigger anything in wireguard:

PS - if I configure wireguard server to 192.168.1.2 and access locally with my phone everything works, but as soon as I get off the wifi it stops
PS2 - if I point wire.mydomain.com to my external IP address and then keep the port UDP 51820 routed to 192.168.1.2 it works but I was trying to avoid to keep ports forwarded to HA instance - and my external IP changes when the ISP wants.

Anyone could help me with the right configuration between cloudflared and wireguard addons?

Kind regards,
HS

1 post - 1 participant

Read full topic

Set Home Assistant scene from Google Assistant routine

$
0
0

Hello guys,

what I want is a simple smart home feature: open all the shutters when I stop my clock alarm.

What I’ve done in HA:

  • I created an input button in HA that open all the shutters when pressed
  • I exposed it to Google Assistant (I have the Google Assistant integration installed and configured)

What I’ve done with Google:

  • I created an automation in Google Home, so that when I say “Ok Google, open the shutters” it triggers the scene “Open shutters” (HA input buttons are exposed as scene in GA, not as devices), and it works perfectly.

  • I attached a Google Assistant routine to my clock alarm (in the Google clock app) and after other actions like telling me about the weather, daily tasks ect, it calls the “Open shutters” scene. But in this case, it says that it cannot reach my home assistant instance, and then it skips the action.

Can anyone help me with this? The scene is exactly the same, but if I call it from Google Home or Google Assistant it works, if it’s called from a Google Assistant routine by the google clock app, it says it can’t reach home assistant.

Thank you in advance.

1 post - 1 participant

Read full topic

Automation: Trigger duration less than 1s

$
0
0

Hi,

I do have an automationo, whis is based on a sensor that needs about a 0.5s debounce for it to not generate spurious false triggering on other automation.
Currently I have something like that:

trigger:
  - type: opened
    platform: device
    device_id: <something>
    entity_id: <some other thing>
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 1

How can I lower the trigger time to a value lower than 1 second?

Thanks,

Thomas

7 posts - 3 participants

Read full topic


HomeKit Bridge causes HA restart

$
0
0

I am pretty sure that my HA crashes because of the integration. If I disable it it is stable. Otherwise HA crashes multiple times a day. HA restarts in that case and sends me a notification.

I do get the error: >

“client … attempted pair verify without being paired to …”

Not sure if that is related. It does work though. But it gets slower and slower and then crashes.

I am running the latest HA Core on an Mac. So resources are available.

How can I bugfix that? The logs are not helping much.

1 post - 1 participant

Read full topic

Disable switch using automation

$
0
0

Hey there sorry, couldn’t find exact match of what I need:
I have automation which switched off my pump. But someone accidentally switches it on from frontend. So I need automation not just to turn switch entity off but also disable it (gray out) unless automation does not switch it on or disabling automation itself.
How do I do that?

2 posts - 2 participants

Read full topic

Integrate I2C relay board WITHOUT ESPHome

Change light color using helper and input select ikea tradfri

$
0
0

Hello

I need to make my ikea styrbar remote change color on my ikea tradfri lightbulps, using a helper containing a dropdown helper, containing the color names.

Im using this blueprint: Malte/zha-ikea-four-button-remote-styrbar-for-lights-e2001-e2002.yaml

Bulps: TRADFRI bulb E27 CWS 806lm
Remote: Remote Control N2
sensor group: light.bedroom_lightbulps (containing both bulps)

Problem: When changing the bulp colors with input.select_next and input.select_previous - i changes the colors, but it seems a bit random, wich color is selected.

Can anyone spot any obvious mistakes?

alias: Bedroom color cycle
description: ""
use_blueprint:
  path: Malte/zha-ikea-four-button-remote-styrbar-for-lights-e2001-e2002.yaml
  input:
    remote: 129cd9955d663409e9870e58286a4f2c
    light:
      entity_id:
        - light.bedroom_lightbulps
    button_left_short:
      - service: light.turn_on
        data:
          color_name: "{{ states('input_select.color_list_1') }}"
        target:
          entity_id: light.bedroom_lightbulps
      - service: input_select.select_next
        target:
          entity_id: input_select.color_list_1
        data:
          cycle: true
    button_right_short:
      - service: light.turn_on
        data:
          color_name: "{{ states('input_select.color_list_1') }}"
        target:
          entity_id: light.bedroom_lightbulps
      - service: input_select.select_previous
        target:
          entity_id: input_select.color_list_1
        data:
          cycle: true

Hopefully someone knows what is wrong here - thank you in advance

1 post - 1 participant

Read full topic

Is there a working configuration for scraping a VARTA Element battery?

$
0
0

Hey guys,

I’m struggling hard to integrate my VARTA Element battery into my HA :frowning:

Do you guys have a working config for this setup?

I would really appreciate any help!

Best regards
Mischa

1 post - 1 participant

Read full topic

Virtual Matter device

$
0
0

Is there a way that Home Assistant emulates a matter device?
Thus I could control this device e.g. via Alexa and home assistant switches can switch other non alexa controlable devices (e.g. Tasmota)

1 post - 1 participant

Read full topic

API GET request error with AWAIR sensor

$
0
0

Hello everyone

I have been trying to call an API using a GET request for one of my sensors, without success. Everything works with curl or using requests in python, but I can’t seem to do it in the HA environment. The sensor in my dashboard shows the following:

{'code': 5, 'message': 'Not Found', 'details': []}

Here is my configuration.yaml file:

sensor:
  - platform: rest
    resource: !secret awair-resource
    headers:
      x-api-key: !secret awair-api-key
    name: Awair_raw
    value_template: "{{ value_json }}"

and here is how I wrote my secret.yaml file:

awair-api-key: "a1a1a1a1a1a1a1a"
awair-resource: https://developer-apis.awair.is/v1/orgs/[a random id]/devices/awair-omni/[a random id]/air-data/latest"

When I do the following command w/ cURL, it returns my .json file of interest:

curl --location 'https://developer-apis.awair.is/v1/orgs/[a random id]/devices/awair-omni/[a random id]/air-data/latest' \
--header 'x-api-key: a1a1a1a1a1a1a1a'

Thanks a bunch for your help!

1 post - 1 participant

Read full topic


Home Assistant hidden API?

$
0
0

I am playing around with building (NOT developing) my own light-weight HA front-end by utilising the HA Rest APIs.

I looked at the API Documentation here and quickly realised that there seems to be endpoints missing in that documentation.

For example I can access and even create automations using the following endpoint:
/api/config/automation/config/
Yet, there is no documentation for that endpoint in the public API documentation.

Naturally I am wondering which other endpoint are available that aren’t documented.
Does anybody have that info and/or the un-redacted documentation?

Thanks…

Akio

1 post - 1 participant

Read full topic

Copy attribute value to another attribute value

$
0
0

I try set up and automation action which sets the attribute value from one cover entity to anothers.
This


To this

2 posts - 2 participants

Read full topic

Change number format of sensor

$
0
0

Hi, im trying to change the number format of my energy sensor that shows power usage in kWh.

The sensor default output is for exmaple 32.138 kWh
But the value should be 3.2 kWh like in the energy dashboard
How can i do this?

1000008120

2 posts - 2 participants

Read full topic

Alias Phone name

$
0
0

Is there a way to alias my phone name. So when I get a new phone I just change the target of the alias?

5 posts - 3 participants

Read full topic

Using Summary of more entities value in automation as trigger

$
0
0

Hello Guys,

I would like to turn on boiler if inverter production more than 1500W.

I add this template trigger to automation:
{% (states(‘sensor.solarman_inverter_l1_power’, ‘state’)|float(0)) + (states(‘sensor.solarman_inverter_l2_power’, ‘state’)|float(0)) + (states(‘sensor.solarman_inverter_l3_power’, ‘state’)|float(0)) >1500 %}

I have got this error message:
Message malformed: invalid template (TemplateSyntaxError: tag name expected) for dictionary value @ data[‘value_template’]

What I have to modify here?
Thanks for your advise.

2 posts - 2 participants

Read full topic

Viewing all 106113 articles
Browse latest View live


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