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

Tag integration cannot be disabled

$
0
0

Asking here before I file a Home Assistant bug on Github.

I’ve disabled the default_config: meta-component in favor of individual integrations for resource efficiency and to declutter the UI. I’ve disabled cloud, energy, my, and tag but only tag continues to be loaded.

Here’s an example similar to my config.yaml.

# Skip default_config meta-component in favor of individual components
#default_config:

# Individual components included in default_config as of version 2022.2.5
# See https://www.home-assistant.io/integrations/default_config/
automation: !include automations.yaml
#cloud:
config:
counter:
dhcp:
#energy:
frontend:
history:
image:
input_boolean:
input_button:
input_datetime:
input_number:
input_select:
input_text:
logbook:
map:
media_source:
mobile_app:
#my:
person:
scene: !include scenes.yaml
script: !include scripts.yaml
ssdp:
stream:
sun:
system_health:
#tag:
timer:
updater:
usb:
webhook:
zeroconf:
zone:

Of course I have other integrations loaded after this as well as via UI but no other instances of tag: in any yaml files.

Could this be a Home Assistant bug or could another integration be forcing tag to load as a dependency?

1 post - 1 participant

Read full topic


Invalid config for scene

$
0
0

Invalid config for [scene]: [id] is an invalid option for [scene]. Check: scene->id. (See /config/configuration.yaml, line 28).

I receive this error message when trying to update or restart HA.

The message indicates a specific line in configuration.yaml, but I don’t have this scene here. How do I fix this?

2 posts - 1 participant

Read full topic

Error while loading page automation. After upgrade HA to 2022.2.0

$
0
0

I have encounter this problem after upgrade HA to 2022.2.0, i try to remove all configure in automation.yaml and remove all about automation entities then restart HA , but still occurs the issue. Can anyone give me some advice on how to fix it?

HA show this log after i access the automation page.

https://xxx.duckdns.org:8123/frontend_latest/c655194d.js:555:10261 SyntaxError: expected expression, got '='

1 post - 1 participant

Read full topic

How to find button strings of Zigbee added remote (Tradfri) for automations?

$
0
0

Hi, I added a Tradfri remote and found below in the UI. I added a Lutron Zigbee remote before but have NO clue how I found the button codes I can use in automations… Any help appreciated.

image

2 posts - 1 participant

Read full topic

Turning on Lights with Arrival (connecting to WiFi?)

$
0
0

Wondering what the best way to achieve this is.

Right now I have a basic automation that turns on my exterior lights when I arrive in my Home Zone. One of the conditions is that it is before sunrise and after sunset. So pretty basic automation.

The issue I am having is both my phone and my wifes phones (S20 Ultras) both seem to show as “away” and then “home” multiple times over the course of the evening when are are both home. I’ve made the radius of my home larger than normal, but our phones seem to just move our location around enough to go out of this zone. This obviously will trigger turning the lights on / off as it thinks we have come and gone.

My thought was to have a condition to NOT trigger the automation if I am connected to our home wifi system. If I am driving up to the house my thought is that it can detect I am inside the zone before mty phone connects to the home wifi. Thoughts? or is there an easier way to achieve this I am not thinking of?

I wouldn’t have to do this work around if our phones didn’t jump around. I’ve got high accuracy set in HA settings, no battery restrictions on the app etc. So not sure why they are jumping around.

1 post - 1 participant

Read full topic

Can't find add-ons in 2022.2.5

$
0
0

Hello, I installed HomeAssistant OS (via VirtualBox with the provided vdi in the docs. Windows - Home Assistant
After installing and going through setup, I don’t see the supervisor tab in the left menu bar.

I can however see that Supervisor is installed via Configuration > Devices and Services. If I click on configure supervisor here. I’m brought to the add-ons store.

Is there a way I can add Supervisor to the sidebar panel?

I’m running:
Home Assistant 2022.2.5,
Home Assistant OS 7.2
supervisor-2022.01.1

System Info from Configuration → Settings → Info

1 post - 1 participant

Read full topic

Notify if outside is cooler than inside if aircon is running. Templating issue

$
0
0

Hi,

I would like HA to notify me when the outside temperature is lower than indoor temperature only when the HVAC mode is set to "cooling’. However I cannot get the automation to run properly.

The trigger by itself runs fine, however when I add the condition, it does not work anymore. Is it because I have templates in both trigger and condition?

Thanks

  trigger:
    platform: template
    value_template: >
      {{ states('sensor.temperature_9')|float>state_attr('weather.home', 'temperature')|float }}
  condition:
    - condition: template
      value_template: >
        {{ state_attr('climate.bedroom_ac', 'hvac_action' == "cooling" }}
  action:
    - service: notify.mobile_app_pongnote9
      data:
        title: The weather is cooler outside
        message: Consider turning off the AC and opening the windows.

2 posts - 2 participants

Read full topic

Create a sensor that is a stopwatch of the state of another sensor

$
0
0

How do I create a sensor that is a stopwatch of the state of another sensor?

I have a pool pump and I want it to run for 8hours a day. there are various conditions for it to be on or off, including electricity price. I need a counter of time placed on the pump status, so I can use that output as an additional condition in an automation.

2 posts - 2 participants

Read full topic


Connection problems / errors with ZHA

$
0
0

Hi all!

We did a little renovating on Monday in the house and some lights were not available because we needed them to move. Tuesday evening we plugged everything back in and also added some new lights(2 hue spots).

So yesterday(Wednesday) the errors and other stuff began to start. Lights didn’t respond, battery-powered devices weren’t updating their state so automation based on the sensor were not working anymore, etc etc etc. After checking the logs I saw something about duplicate ids with the corresponding id, never had I this kind of error. After some searching in Visual studio code with the id that supposedly was duplicate, I couldn’t find anything. did a integration reload, got the same errors but with different ids. Again, couldn’t find the duplicate id.

I really didn’t know what to do so I tryed to update HA to the latest version. Did a quick “Check Home Assistant configuration” and waited for it to finish. After 20 minutes it gave an error saying that the integration ZHA couldn’t be find. What? I did the update anyway…

After updating everything worked pretty great. No errors of duplicate ids. But now I have a lot more entities in ZHA than before. Never seen these and don’t know if its a update thing or a bug thing. Does anybody now?

After running the new update for a couple of hours the ZHA is buggy, some lights don’t appear as on, some won’t react to automations, remote controllers not working so i cant control my lights. And then after a integration reload everything works fine…for now.

Whats happening? And how can i figure out what the problem is? Everything worked perfectly before.

So I’m running on the latest HA and using Conbee II stick with ZHA.

The errors/warnings that now appear are driving me nuts:

ERROR (MainThread) [zigpy_deconz.uart] Lost serial connection: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
WARNING (MainThread) [zigpy_deconz.zigbee.application] No watchdog response
WARNING (MainThread) [zigpy.topology] Cancelled topology scanning task

And a lot of these warnings:

WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.aps_data_indication' command with seq id ***

Help me out!

1 post - 1 participant

Read full topic

Differential sensor, delta between current and last value

$
0
0

Hi,

I’m trying to setup a sensor showing the difference between current and previous value.
Usecase being that I have my car odometer cumulative and I’m willing to get the distance between 2 samples.
This is my current code… that is not working :frowning:

Thanks for your help,
Pierre

- platform: statistics
    entity_id: sensor.yaris_2021_odometer
    name: yaris_2021_mileage_diff
    sampling_size: 2

  - platform: template
    sensors:
      yaris_mileage_diff:
        friendly_name: "Distance du trajet Yaris"
        unit_of_measurement: "km"
        value_template: "{{ state_attr('sensor.yaris_2021_mileage_diff_mean', 'change') }}"

2 posts - 2 participants

Read full topic

Sunrise/sunset help

$
0
0

I have a simple automation that will turn the light on before sunrise and after sunset from motion. However the boss has ever so politely requested this be altered as it’s still dark at sunrise. I would like to alter it so the automation will run for a further 45 minutes after sunrise and 45 minutes before sunset. Have I got it right with this?

condition: or
conditions:
  - condition: sun
    before: sunrise
    before_offset: '+00:45:00'
  - condition: sun
    after: sunset
    after_offset: '-00:45:00'

6 posts - 3 participants

Read full topic

DuckDNS + Google assistant latency issues

$
0
0

Hello,
I’ve configured DuckDNS and the Google assistant integration a couple of month ago and it run mostly fine since then.

The last couple of days when I try to send a command through the assistant I often get " [name of my test app] is not available at the moment " no matter what device I’m trying to reach (if it was a problem reaching one or more devices the assistant says that that specific sensor is not available and not the whole integration).

If I repeatedly ask for the same action through the voice command at the end it works.

I think it’s a latency issue since I tried to link the same sensors through other services (like deCONZ is connected to Homey Pro too or some other devices have their own cloud service) using different name for the same device and when I try to command the same device through another service is working everytime…

Is there someone else that is having the same issue?

It’s the first time I’m experiencing that in a couple of month but if it continues like that I think I’ll have to try to use the Nabu Casa service.

Thank you in advance

1 post - 1 participant

Read full topic

Handling target input in template

$
0
0

Hi all, I’m working on a blueprint for managing all the lights in a room with a single remote, in this case a Tradfri puck. I’m aware of the already existing blueprints but my plans reach further, as I want to use the arrow buttons to cycle through the lights. However I didn’t end up there yet as I’m facing problems with the target input selector I am using:

blueprint:
  name: Full room light controller
  domain: automation
  input:
    lights:
      name: Target lights
      description: The lights to control
      selector:
        target:
          entity:
            domain: light

I use this to select an area, but I’ve also tried manually selecting devices (which would be okay) but that won’t work either. The problem is here, where I need to get an average brightness of all the lights selected by the target. Note that this code isn’t too functional, I removed other math and service calls so that I can focus on getting this value right.

action:
- variables:
    target_light: !input lights

- choose:

  # Device selector (right)
  - conditions:
    - condition: template
      value_template: '{{ trigger.to_state.attributes.action == "arrow_right_click" }}'
    sequence:
    - service: logbook.log
      data:
        name: Find brightness level
        message: 'Average brightness: {{ expand(target_light) | selectattr("attributes.brightness", "defined") | map(attribute="attributes.brightness") | average() | round(0) }}'

However in the trace:

Error: Error rendering data template: StatisticsError: fmean requires at least one data point

Which leads me to believe that expand(target) leads to nothing. In a previous try I tried to join(",") the state values but that didn’t show anything either. Now I know the docs says target is supposed to be used by service calls, but I swear that I’ve read somewhere in there that you can use it to expand targets as well. I’ve been plowing through the docs all morning but I can not find it again, so I guess I am mistaken. Is there any other way to expand a target input into devices or entities for further processing?

1 post - 1 participant

Read full topic

Sonoff Zigbee 3.0 with HA OS

$
0
0

I’m moving my HA from a VirtualBox (on a shared PC) to a dedicated mini PC running HAOS. I’ve simply flashed the Generic x86 image to the hard disk.

I’ve hit a snag with my Sonoff Zigbee 3.0 Dongle. With the VirtualBox it was recognised as soon as I plugged it in, with the new setup it isn’t. What do I do?

1 post - 1 participant

Read full topic

Occupancy V Motion

$
0
0

Why would you use OCCUPANCY v MOTION in a motion detector? Sorry I am new to this stuff but want to understand why you would use one over the other. Any case?

1 post - 1 participant

Read full topic


Hassio - Caddy - 400: Bad Request

$
0
0

Hi,

I am running Hassio with Caddy + Cloudflare to access remotely securely on a raspberry PI and the same PI I have OMV 6, Portainer, Jellyfin, NextCloud and Duplicati.

My domain name is already working with nextcloud and jellyfin but I am unable to setup it up for Hassio as I am getting 400: Bad Request

Caddyfile config

hassio.domainname {
reverse_proxy 192.168.1.110:8123

Configuration.yaml

server_host: 192.168.1.110:8123
  base_url: domainname
  use_x_forwarded_for: true
 
  trusted_proxies: localhost

Please advise where am I wrong? thanks in advance.

1 post - 1 participant

Read full topic

Can somebody help me assosiate Fibaro Door Window sensor with a light i Z-WaveJS2MQTT?

$
0
0

I have tried several times, both with group two and group four, but to no avail. I’m trying to associate it with an Everspring HAN02 on/off switch, that’s controlling the light in the mirrors in the bathroom. They should always come on when the door is opened, even if the controller is dead. I see there are a billion different configurations for the device, but I hoped that a simple assosiation would work. Nothing happens, even if I wake the sensor manually. Maybe somebody has a good understanding of these things and can tell me what to do?

1 post - 1 participant

Read full topic

Home assistant not working at different location

$
0
0

I am currently working on a university project and am still leaning home assistant. I have to integrate a couple of devices (located in uni) into home assistant. I have it set up on my laptop on my home wifi using virtual machine. However when i take my laptop to university the link on my browser does not work. How do i solve this issue?

3 posts - 3 participants

Read full topic

Totally lost with simple automation

$
0
0

I am new to ZHA and trying to learn the system. I am a dev myself but there are so many options I am not sure where to do what…

I am lost with when to use the UI, Scripts, Templating to just do one simple task.

When I click on the button it should open the curtain, if its already open it should close it.

I have one aqara button and one curtain. Both are added (zigbee2mqtt).
I just made a simple automation and want to change the position variable based on the “open or closed” state of cover.0x04cf8cdf3c7555ca.


alias: Curtain Button
description: ''
use_blueprint:
  path: Drafted/aqara-buttons-all-in-one-zigbee2mqtt.yaml
  input:
    action_sensor: sensor.curtain_action
    single_action:
      - device_id: 353c3ab81c9f01e4482c13256f7fb740
        domain: cover
        entity_id: cover.0x04cf8cdf3c7555ca
        type: set_position
        position: 0

Any pointers ?

1 post - 1 participant

Read full topic

Why does formatting a markdown shows red backgrounds

$
0
0

using a template (which works perfectly fine in template editor) and testing the various spots for the whitespace trim - I experience this:

  - type: markdown
    title: Hue 1 light groups
    card_mod: *header
    content: >
      {% set group_list = expand(integration_entities('Philips Hue 1'))
        |selectattr('attributes.is_hue_group','eq',true) %}
      {% set ns = namespace(groups=[]) %}
      {% for group in group_list %}
      {% set ns.groups = ns.groups + [group.object_id] %}
      {% endfor %}

      {%- for g in ns.groups -%}
      {% set ns2 = namespace(lights=[]) %}
      {%- for l in state_attr('light.'~g,'lights') -%}
      {% set ns2.lights = ns2.lights + ['light.'~l|slugify] %}
      {%- endfor %}

      **{{g|title}}** ({{states('light.'~g)}}):
        {%- for id in ns2.lights %}
          {{state_attr(id,'friendly_name')}}: {{states(id)}}
        {% endfor %}
      {% endfor %}

while if the last but one line uses {%- endfor %} all is well:

Why is that happening?

Besides that, I am trying to find a way to indent the lights of the mentioned light group, a bit like:

1 post - 1 participant

Read full topic

Viewing all 105869 articles
Browse latest View live