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

Switching device if Energy Consumption is lower 40watt

$
0
0

Hello my name is Sigurd,
i switch the power of my tv with a shellyplug s controled by a hass.
I can switch it on and off with my smartphone or with an shelly button.

I would like to switch it off after 2 minutes, if the energy consumption is less 40 watt.

This is my yaml code:

It would not work but i dont know how.
Did anybody can help me?

Greetings Sigurd

1 post - 1 participant

Read full topic


Shelly - Bulk Configuration

$
0
0

Hi there,

I have a whole home house project to complete and have the prospect of configuring around 30 Shelly Dimmer 2’s along with a bunch of their Switch relays and LED controllers. Does anyone have any tips for bulk configuring these modules?

1 post - 1 participant

Read full topic

Fibaro Dimmer2 not working anymore

$
0
0

Hello! Newbie here so bear with me :slight_smile:

A couple of months ago I started with HA as I needed a solution for the lights in my home theatre, as I wanted them to go off/on when starting/stopping a movie.

For this, I’ve been using a Fibaro Dimmer2 with an Aotec Z stick Gen5 and I created the necessary automations. Everything has been working fine until recently.

Due to a power failure, HA didn’t worked as previous and I started from scratch. The automations are correct and the devices are all available and alive.

However; The Fibaro Dimmer2 doesn’t respond anymore to the automations. I’ve noticed that the Dimmer2 device information mentions “highest security: S0 Legacy”. From what I can remember, this wasn’t mentioned in the past.

Is the problem related to this security thing? If so, what is the solution to this problem? I’ve already tried to interview/heal the device and even removed it. A reset on the Dimmer2 side has been done as well but no matter what I do, the highest security thing stays on S0 Legacy (even when I try adding the device as non-secure).

Thanks in advance for all your feedback!

1 post - 1 participant

Read full topic

Missing internal/external url on my screen

$
0
0

Hello I went to Configuration → General after downloading and installing duckdns and maria thing. I see this

I am missing the parts where I add internal and external urls.

1 post - 1 participant

Read full topic

iOS Shortcut to Trigger HA automation

$
0
0

I have just spent hours trying to do this with some Googling but I just can’t make it happen, please help.

I want to use iOS Shortcut app to trigger my bedtime routine automation immediately after my phone is plugged in at night time.

So I have a working automation in HA.

How do I use iOS shortcut app to trigger it once my phone is on charge??

Thanks

7 posts - 3 participants

Read full topic

Script blueprint not working

$
0
0

Hi,

I have this script blueprint but it’s not working. When I try to add a script based on it, nothing appears (despite the lines being added in my scripts.yaml).

Here is the script:

blueprint:
  name: Humidity Activated HVAC - After leaving Home
  description: Turn an air condition on in dry mode based on the humidity level
  domain: script
  input:
    humidity_state_sensor:
      name: "Humidity State Sensor"
      description: "Must output 3 values: low, medium or high."
      selector:
        entity:
          domain: sensor
    target:
      name: "Air Conditioner"
      description: "Select a HVAC unit or a room."
      selector:
        target:
          entity:
            domain: climate


sequence:
  - choose:
      - conditions:
          - condition: state
            entity_id: !input humidity_state_sensor
            state: high
        sequence:
          - service: climate.set_hvac_mode
            data:
              hvac_mode: dry
            target:
              entity_id: !input target
          - wait_for_trigger:
              - platform: state
                entity_id: !input humidity_state_sensor
                from: medium
                to: low
              - platform: state
                entity_id: !input humidity_state_sensor
                from: high
                to: low
          - service: climate.set_hvac_mode
            target:
              entity_id: !input target
            data:
              hvac_mode: 'off'
      - conditions:
          - condition: or
            conditions:
              - condition: state
                entity_id: !input humidity_state_sensor
                state: medium
              - condition: state
                entity_id: !input humidity_state_sensor
                state: low
        sequence:
          - service: climate.set_hvac_mode
            data:
              hvac_mode: 'off'
            target:
              entity_id: !input target
    default: []
mode: parallel
max: 10

Thanks!

1 post - 1 participant

Read full topic

Hassio.addon_stdin no longer working with 2021.12?

$
0
0

I used to have an automation that runs a shell script at midnight to push changes to git. Some of the latest HA updates most have broken something as it no longer works.

service: hassio.addon_stdin
data:
  addon: a0d7b954_ssh
  input: /config/gitpush.sh

The script /config/gitpush.sh simply runs

#!/bin/bash
date >> /config/git-last.txt
cd /config
git add .
git status
# Commit changes with message with current date stamp
git commit -m "config files on `date +'%d-%m-%Y %H:%M:%S'`"
# Push changes towards GitHub
git push -u origin main
exit

Log file doesn’t show anything.

Original idea from https://peyanski.com/automatic-home-assistant-backup-to-github/

2 posts - 2 participants

Read full topic

Creating a special way of multiway switching automation with cascaded conditions

$
0
0

Hey,
after two days of tinkering around and reading several docs I’m afraid I can’t find a solution which satisfies me, since I’m rather new in the automation game:

I’ve got a Ikea Tradfri 5-button remote which I’m using with the help of the blueprint from epmatt to control my bedroom ceiling light.

So far no problem, but I’ve got also two (grouped) bedside lights which I trigger with another on/off switch located next to the bed, whilst the 5-button remote is placed next to the door of the room.

When I get up in the morning, I (or my alarm autmation) turns the bedside lights on, which I would like to be able to turn off using the 5-button remote on my way out of the room.

But I don’t want to turn the ceiling light on when turning the bediside lights off or wan’t to turn the bedisde lights on when using the 5-button remote.

A short table to clarify my plan:

State of ceiling light:
Off
On
On
Off

State of bedside light:
Off
Off
On
On

Action of remote:
Turns on ceiling light
Turns on ceiling light
Turns off ceiling & bedside light
Turns off bedside light

I managed to get it to work with to additional automations but without using the blueprint (to simple control the light temperature and brigthness):

The automation to turn the light on:

alias: Automatisierung Test an Schlafzimmer
description: ''
trigger:
  - device_id: 49c4e4ffa55aef50f7b9e1396f1f0fc3
    domain: zha
    platform: device
    type: remote_button_short_press
    subtype: turn_on
condition:
  - condition: state
    entity_id: light.lampe_schlafzimmer_decke
    state: 'off'
  - condition: state
    entity_id: light.schlafzimmer_nachttisch_leuchten
    state: 'off'
action:
  - type: turn_on
    device_id: e418671b88493dbb0598e89f0f36f16b
    entity_id: light.lampe_schlafzimmer_decke
    domain: light
mode: single

And the automation to turn the light(s) off:

alias: Automatisierung Test aus Schlafzimmer
description: ''
trigger:
  - device_id: 49c4e4ffa55aef50f7b9e1396f1f0fc3
    domain: zha
    platform: device
    type: remote_button_short_press
    subtype: turn_on
condition:
  - condition: or
    conditions:
      - condition: state
        entity_id: light.lampe_schlafzimmer_decke
        state: 'on'
      - condition: state
        entity_id: light.schlafzimmer_nachttisch_leuchten
        state: 'on'
action:
  - type: turn_off
    device_id: e418671b88493dbb0598e89f0f36f16b
    entity_id: light.lampe_schlafzimmer_decke
    domain: light
  - type: turn_off
    device_id: 288a9f2eb9eb9006b922aee855fb7485
    entity_id: light.lampe_schlafzimmer_nachttisch_links
    domain: light
  - type: turn_off
    device_id: 49995da6d0d1b5092596bf117c308d6c
    entity_id: light.lampe_schlafzimmer_nachttisch_rechts
    domain: light
mode: single

Is it possible to get the function I want into with the capabilities of the blueprint?

I tried to add to add an cascaded and / or condition, but I’m afraid that that’s not possible.

Which way would you suggest to solve my little puzzle? :smiley:

Thanks in advance
Thomas

1 post - 1 participant

Read full topic


Zehnder ComfoAir Q (350,450,600)

$
0
0

Hello all,

I understand that there are 5 methods to connect to your Zehnder ComfoAir Q (350,450,600) ?

  1. Dongle (WIFI or FE).
  2. Inverter’s internal WIFI.
  3. Modbus connection (RTU,USB/TCP converter).
  4. ComfoConnect LAN C or KNX
  5. KIOSK.

Option 1 ( The dongle WIFI or FE ):

This would be my first choice as I own this dongle.
Unfortunately like many others I can’t manage to connect Home assistant to the dongle WLAN FE.
I have followed all advice’s and instructions from:

The option to enable the MODBUS TCP will not be available as shown in steps 6 -7.

I haven’t tried the FE option yet.

**Option 2 (The internal WIFI) :**
The second option for me is to connect through the inverter’s internal WIFI,.
But I have no idea how to do this.

Option 3:
The third option for me would be a MODBUS-TCP converter connection.
The RTU or USB are not usable for me

http://www.hi-flying.com/elfin-ew10-elfin-ew11

Can the Dongle and the MODBUS connection be used side by side?

Option 4 (ComfoConnect LAN C or KNX):
I don’t want to use this option, to expencive

Option 5 (KIOSK):
I don’t want to use this option.

Please your advice and help with this, because I am confused by all these possibilities.
And especially because I can’t get it right with the Dongle.
I gave up this option after weeks of trying.
The helpdesk indicated that it would soon be possible to set it up via the fusionsolar web interface.
But so far this is not possible.

I have an installer account with fusionsolar web.

https://eu5.fusionsolar.huawei.com/

The fusionsolar web application works well.

Huawei 17KTL-M0

V100R001C00SPC140

Dongle
V100R001C00SPC124

1 post - 1 participant

Read full topic

Wait_template negative values issue

$
0
0

Hi everyone, I need your help!
I can’t use this template with negative values!!!
The values are related to a temperature sensor
I already tried with positive values and I had no problems
Thanks in advance

- wait_template: "{{ states('sensor.sonoff_congelacao_temperatura') | int > -18 }}"
   timeout: '01:00:00'
   continue_on_timeout: true

2 posts - 2 participants

Read full topic

Right location binary_sensor template

$
0
0

Hi.
I have my configuration split into multiple yaml files. I have created a binary sensor template.
I had placed it in the binary sensor file. But it threw me a syntax error.
For now I put it in the ‘configuration.yaml’ file. So which is the right mode?
Thanks

template:
  - binary_sensor:
      - name: someone_is_home
        state: >
          {{ is_state('person.ros', 'home')
             or is_state('person.mary', 'home')
             or is_state('person.andrew', 'home')
             or is_state('person.marc', 'home') }}
      - name: nobody_is_home
        state: >
          {{ is_state('person.ros', 'not home')
             and is_state('person.mary', 'not home')
             and is_state('person.andrew', 'not home')
             and is_state('person.marc', 'not home') }}

1 post - 1 participant

Read full topic

Invalid authentication with nginx and HA in docker from internal LAN (Rhasspy)

$
0
0

Hey there,

I have the following setup. I run HomeAssistant in Docker on a Raspberry PI. I use the DuckDNS-Addon and NGINX-Addon to reach HA remotely via SSL and with HTTP from my LAN. These are my relevant configuration snippets:

configuration.yaml

http:
  use_x_forwarded_for: true
  trusted_proxies: 
    - 127.0.0.1
    - 172.30.33.0/24

NGINX

domain: xxxx.duckdns.org
certfile: fullchain.pem
keyfile: privkey.pem
hsts: max-age=31536000; includeSubDomains
cloudflare: false
customize:
  active: false
  default: nginx_proxy_default*.conf
  servers: nginx_proxy/*.conf

I am now trying to set up Rhasspy for Voice Control Intent handling. I followed the official documentation and created a long lived access token. I am certain that I did not copy leading or trailing spaces. However, whenever my Rhasspy-setup sends an intent to the HA intent API I receive the following notification in HA:

Login attempt or request with invalid authentication from raspberrypi.fritz.box (192.168.178.37). See the log for details.

Rhasspy runs on a second raspberry pi within a portainer-managed docker container within the same LAN as HA. Alternatively, I also tried using the HA Rhasspy-Addon, which gave me a similar authentication error:

Login attempt or request with invalid authentication from 75f2ff60-rhasspy.local.hass.io (172.30.33.6). See the log for details.

This brings me to the conclusion that something with my nginx/http setup seems to block the incoming requests even though “normal” browser-based access to the HA frontend works within the LAN. Unfortunately, I am not an expert on ip-routing, proxies and such, so that I hope I am simply missing a key concept.

I searched the forum and google but could not find a matching problem. If you need additional input to help me out, please let me know.

Thanks and looking forward to your input!
Jens

1 post - 1 participant

Read full topic

Lovelace Picture Elements Background fade/flicker

$
0
0

I have a picture elements card that uses layered png images with CSS opacity and lighten to build a floorplan with live lighting.

Whenever the state of any of the entities included changes, I get a small glitch/flicker of the background. See video where I force this by turning some lights on and off:

Example Video

This page is heavily based on code from lukevink’s config. My lovelace code for the floorplan is here.

I can’t see anything in the console/network log in Chrome’s dev tools to indicate what’s happening.

Has anyone else seen anything like this? Not sure if this is a CSS issue or an artifact of the way picture elements loads images.

This is Home Assistant 2021.12.7 with a Home Assistant OS installation type running in a VM.

Any pointers gratefully received!

1 post - 1 participant

Read full topic

Honeywell Evohome UK installation

$
0
0

Hi

Is there anyone able to help me setup Honeywell Total connect UK on my Hassio installation. I’ve setup the server and have a number of services running. I previously setup Honeywell Totally connect but have lost the instructions I originally followed.

Thanks

1 post - 1 participant

Read full topic

All automations become 'unavailable' (disabled, cannot edit etc) once adding any new automation via blueprint

$
0
0

I have a working setup with many automations working as intended. I have recently acquired an Aqara Cube, and decided to use a blueprint to kickstart some automations. Blueprint adds without issue, everything appears normal. I can begin to create automation from blueprint, enable a trigger, select the Aqara Cube as device, but the actions field flashes briefly and greys out (I cannot select an action). As soon as I do this, every single one of my other unrelated automations disable themselves.

What I’ve done:
Checked the config with Settings:->Check Configuration (no errors)
Restarted the automations via settings (no change)
Opened up the automations yaml and deleted the automation for cube, then restarted (all normal)

Assuming this was perhaps an issue with the blueprint, I subsequently tried 4 other blueprints (all exhibit the same behaviour).

Creating new, unrelated automations from scratch work as expected.

Version core-2021.12.7
Installation Type Home Assistant Supervised
Development false
Supervisor true
Docker true

What could I be missing?
Thanks!

2 posts - 1 participant

Read full topic


Tuya Smart Security Kit & HA

$
0
0

Is it possible to get/set information of this device in HA ?

No entities found when the device in integrated in HA…

Tks for replie ( and sorry for my poor english)

1 post - 1 participant

Read full topic

Empty image when clicking mjpeg card

$
0
0

Hi there,

I have a (rooted) dlink p6000lh I’d like to use with HA, the mjpeg_url works from a browser / command line, but does not (blank image) from HA, here’s the configuration:

camera:
  - platform: mjpeg
    name: D-Link P6000LH
    still_image_url: http://server/image/jpeg.cgi
    mjpeg_url: http://server/video/mpegts.cgi

The preview image does show, but not the stream when I click the card. Also, from the web server, I see the correct request coming from HA. I’m out of ideas, anybody?

Again, mpv http://server/video/mpegts.cgi does work like a charm.

1 post - 1 participant

Read full topic

[homeassistant.components.ssdp] Failed to setup listener for fe80::60e2:2d3d:142c:a92e: [Errno -2] Name does not resolve

$
0
0

I configured my HA to run on multiple interfaces (2 to be exact).
These interfaces are given IPv4 & IPv6 addresses by the DHCP.

However some of these IP’s (seem only to be the local IPv6 addresses) render warnings in my logs:

2022-01-04 15:55:39 WARNING (MainThread) [homeassistant.components.ssdp] Failed to setup listener for fda8:1129:473c::db2: [Errno -2] Name does not resolve
2022-01-04 15:55:39 WARNING (MainThread) [homeassistant.components.ssdp] Failed to setup listener for fe80::60e2:2d3d:142c:a92e: [Errno -2] Name does not resolve
2022-01-04 15:55:39 WARNING (MainThread) [homeassistant.components.ssdp] Failed to setup listener for fe80::6a96:2e14:4ed4:c46a: [Errno -2] Name does not resolve

Running trace of core and ssdp does not provide any additional troubleshooting information.

Anyone else facing this ?

2 posts - 2 participants

Read full topic

HA Wake on LAN not sending packet

$
0
0

Hey guys,
I want to wake my PC with WOL packet via HA. From android app or another pc it works fine. (Using also Wireshark to capture incoming packets). Homeassistant is running on raspos within docker as a container

Current config:

switch:
  - platform: wake_on_lan
    name: "NzXT"
    mac: aa:bb:cc:dd:ee:ff
    broadcast_address: 192.168.0.255

Also tried broadcast_port: 9 and tried to enclose mac address with quotes or double quotes - did not help. I can ping PC from raspi. I’ve also tried Developer tools → Services → Wake on LAN: send magic packet

service: wake_on_lan.send_magic_packet
data:
  mac: aa:bb:cc:dd:ee:ff
  broadcast_address: 192.168.0.255
  broadcast_port: 9

and it also does not send any packet (maybe it sends but I don’t catch packet in wireshark)

I’ve tested also python script and PC successfully received magic packet

from wakeonlan import send_magic_packet
send_magic_packet('aa:bb:cc:dd:ee:ff', port=9)

1 post - 1 participant

Read full topic

Script to Update all updateable devices (shelly/wled) at once

$
0
0

Hi all,

was very amazed, that HA now supports updating Shellies directly. What i’d like to do now is to create a script (to e.g. use in an automation) that updates all shellies (and WLED devices) at once. What i’m trying to do is create a data template, look for all button-entities and filter those whose devices class is “update”. These devices entity-id should be then put one after into a service call.

What i have so far:

alias: ShellyUpdate-Testscript
sequence:
  - service: button.press
    data_template:
      entity_id: >
        {%- for shellyupdate in states.button -%}  
          {%- if state_attr(shellyupdate.entity_id,'device_class') == 'update'  -%} 
            - {{ shellyupdate.entity_id +"\n"}} 
          {%- endif -%} 
        {%- endfor -%}
mode: single

of course, i did the coding of the loop in the developer tools, there it works as expected:

sadly, the script gives an error:

… not a valid value for dictionary value @ data[‘entity_id’]

What tiny little detail am i missing?

Thanks for your support! :slight_smile:

1 post - 1 participant

Read full topic

Viewing all 105801 articles
Browse latest View live


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