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

Pressed take over at "Configur UI"

$
0
0

Hi,

I’m new to HA and I would to thank anybody who spent effort on the development of HA and all other possibilities.

I accidentally pressed “Take over” instead of cancel. Now my entities/cards are not updating automatically anymore. How can I restore this action?

1 post - 1 participant

Read full topic


Tuya Air Quality Sensor: PM2.5 missing

$
0
0

Hi

I bought a Zigbee Air Quality Sensor from AliExpress:

According to Blakadder List this sensor should be supported and I get VOC, Formaldehyde, CO2, Temperature and humidity. Howeve I do not get the PM2.5 sensor and I honestly have no so much faith in the CO2 and VOC values.

Has anybody the same sensor and it works fine - so maybe its a broken unit?

1 post - 1 participant

Read full topic

How to update Switch color

$
0
0

I have set up an alarm system based on Homematic stuff. Motion sensors, window and door sensors etc. I can read and display the status in Lovelace like this:

(this is german, so Unscharf = unarmed, Hüllschutz = hull protect, Vollschutz = complete protection)

sensor:
  - platform: template
    sensors:
      alarm_status:
        friendly_name: "Status Alarm"
        value_template: >-
          {%- if state_attr('homematic.ccu3', 'Status_Alarm_Aktiv_Var') == 0 -%}
           Unscharf
          {%- elif state_attr('homematic.ccu3', 'Status_Alarm_Aktiv_Var') == 1 -%}
           Huellschutz
          {%- elif state_attr('homematic.ccu3', 'Status_Alarm_Aktiv_Var') == 2 -%}
           Vollschutz
          {%- else -%}
           Fehler
          {%- endif -%}

Screenshot 2022-05-14 212039

As you see, I control the alarm system status by using switches in Lovelace:

switch:
  - platform: template
    switches:
       alarm_unscharf_switch:
         friendly_name: 'Alarm Unscharf'
         turn_on:
           service: homematic.set_variable_value
           data:
             entity_id: homematic.ccu3
             name: Set_Status_Alarm_Var
             value: "0"
         turn_off:
           service: homematic.set_variable_value
           data:
             entity_id: homematic.ccu3
             name: Set_Status_Alarm_Var
             value: "0"
       alarm_huellschutz_switch:
         friendly_name: 'Alarm Hüllschutz'
         turn_on:
           service: homematic.set_variable_value
           data:
             entity_id: homematic.ccu3
             name: Set_Status_Alarm_Var
             value: "1"
         turn_off:
           service: homematic.set_variable_value
           data:
             entity_id: homematic.ccu3
             name: Set_Status_Alarm_Var
             value: "0"
       alarm_vollschutz_switch:
         friendly_name: 'Alarm Vollschutz'
         turn_on:
           service: homematic.set_variable_value
           data:
             entity_id: homematic.ccu3
             name: Set_Status_Alarm_Var
             value: "2"
         turn_off:
           service: homematic.set_variable_value
           data:
             entity_id: homematic.ccu3
             name: Set_Status_Alarm_Var
             value: "0"

As you also see in the screenshot, the Homematic status can change to “unarmed”, but the color of the switch still indicates to be active (on).

Question: how to toggle the switch back based on a sensor status?

1 post - 1 participant

Read full topic

Trigger.entity_id last changed not working

$
0
0

Hi!

I have this automation, in order to see the last changed of any from those triggers, but it is not working. Any idea? I get the notification “None”. Thank you!

alias: LastState - Sensor Broadlink Computer
description: ''
trigger:
  - platform: state
    entity_id:
      - sensor.broadlink_computer_humidity
  - platform: state
    entity_id:
      - sensor.broadlink_computer_temperature
condition: []
action:
  - service: persistent_notification.create
    data:
      message: >
        {{ as_timestamp(states.trigger.entity_id.last_changed)
        }}
mode: parallel
max: 2

1 post - 1 participant

Read full topic

Dim light group over period of X seconds to off state

$
0
0

Hi all,
I am just starting to understand HA and I am slowly moving all my lights from Hue to the Zigbee dongle.
As part of that migration I am trying to build scenes.

I am attempting to create a scene button on my dashboard that once pressed:

  • Switches on all my lights in the bedroom at a predefined color and brightness
  • Dims over a period of 10 minutes to off.
    I am nog having any luck in the Scenes Visual Editor, so I am looking for another solution (yaml/node-red). It is however not easy to find the right search words, so I cannot find any examples.
    Hopefully someone can point me in the right direction.

1 post - 1 participant

Read full topic

After update does not work script loop

$
0
0

Hello all,

I have an issue with my script loop. I cannot get why it does not work.

Automatization for average temp save for last three days.

automation:
  - alias: Historic Weather Data
    trigger:
      - platform: time
        at: '06:00:00'
    action:
      - service: script.temperature_data
        data_template:
          loop_count: 4

script:
 temperature_data:
    sequence:
      - service: input_number.set_value
        data_template:
          entity_id: >
            input_number.temp_minus{{ loop_count }}
          value: >
            {% if loop_count | int == 0 %}
              {{ states('sensor.temp_today') | float }}
            {% else %}
              {{ states('input_number.temp_minus' ~ (loop_count | int - 1) | string) }}
            {% endif %}

      #=== Stop when count is 0
      - condition: template
        value_template: >
          {{ loop_count | int > 0 }}

      #=== Stop the looping script...
      - service: homeassistant.turn_off
        entity_id: script.loop_temperature_data

      #=== ...before looping
      - service: script.loop_temperature_data
        data_template:
          loop_count: >
            {{ loop_count }}

  loop_temperature_data:
    sequence:

      #=== Stop the calling script...
      - service: homeassistant.turn_off
        entity_id: script.temperature_data
        
      #=== ...then restart it
      - service: script.temperature_data
        data_template:
          loop_count: >
            {{ loop_count | int - 1 }}

The script should execute 4 times, and shift values:
input_number.temp_minus0 - temp of today;
input_number.temp_minus1 - temp of yesterday;
input_number.temp_minus2 - temp of second day after;
input_number.temp_minus3 - tamp of third day after.

After upgrade from 0.61 to last one this script execute one time and fill input_number.temp_minus0 with today temp, then copy input_number.temp_minus2 to input_number.temp_minus3 and that’s all.

1 post - 1 participant

Read full topic

Automation of color bulbs with holiday themes

$
0
0

I am coming from SmartThings like a lot of people are and wanted to see if HA had something like I have in ST. Basically I want to select some of my color bulbs that then cycle through different colors based on the holiday of choice while they are on and the automation is enabled. The SmartApp that I use in ST can be found here SmartThingsBrian/holiday-color-lights.groovy at 2b1f033b63010ad4bb70bf3c40064579f8a8e749 · brianegge/SmartThingsBrian · GitHub

Does something like this exist in HA that I can import?

1 post - 1 participant

Read full topic

Help configuring timer value based on slider input value

$
0
0

I’ve created a timer and a slider, via helpers (see screenshot). I want the starting time of the timer to be updated by the value of the slider.

Ultimately, I’d like to use it to make an automation that will turn off the kids gaming devices in x minutes, where x is whatever I define on the slider.

Any advice out there on how to go about this?

1 post - 1 participant

Read full topic


How to suppress persistent notification when device offline (Aqara G2H Pro)?

$
0
0

Hi
I recently purchased an Aqara G2H Pro (I guess I’m a pro now? lol) and the unit setup in HomeKit Controller was straightforward and I added the live camera feed and alarm cards in Lovelace.

I have it set to record when powered on, but I don’t need to record footage of people in PJ’s (thanks Aqara :slight_smile: ), so I have it set to power on only when noone’s home.

Since setting it all up I noticed that when I log into HA I getting notifications that that computer or mobile device can’t connect.

Login attempt failed
Login attempt or request with invalid authentication from mypc.domain (193.0.100.123). See the log for details.

Even if the device is on when we’re here (testing) it sometimes shows in HA as unavailable. It works as far as arming/disarming the alarm functions with single/double chirps to signify it being armed, but the live feed doesn’t always show in Lovelace. I’m assuming the Aqara app may have control of it at the time.

To test, I removed the cards from Lovelace and the notifications stopped.

My question is: Is there a way to suppress these notifications from being generated?
Maybe a way to change the status to off rather than unavailable or maybe there’s a way to auto-clear those notifications when they get generated?

2 posts - 1 participant

Read full topic

Configuration help needed - geofencing, Insteon, Hue

$
0
0

I’m new to this from the Insteon debacle.
I have HA set up and running on a ODroid box.

My prior setup used Yonomi to link Alexa - Phillips Hue - Insteon for voice command as well as geo fenced actions (run an action (like turn on exterior lights and lights within the house) when I get within a certain boundary of home).

Can anyone help me figure out the configurations I need to do to make everything work again?

  1. I would like to have combination scenes (Hue lights to certain dim, insteon dimmers to certain amount) that can be triggered by the App on my phone but more importantly Alexa. ie. “Alexa, run Entertainment” (Hue LED strips to 50%, Insteon living room dimmer to 20%, kitchen dimmer to 30%, dining room dimmer to off, three outlets to “on”) or “Alexa, run Everything Off” (sends “off” command to all lights, switches, outlets)
  2. create timer based scene (every morning at 6:00am turn lamp, and have echo dot start streaming a particular radio station, then turn both off at 7:00am)
  3. scene for house lights to turn on at a certain time in the morning and turn off after sunrise+some amount of time, OR turn house lights on at sunset-some amount of time
  4. geo-fenced scene as noted above - turn lights and stuff on when I pull in to my neighborhood
  5. lastly - what steps do I need to take to safely blow away the scheduled scenes in my Insteon hub and then only have the HA scenes going forward? I can’t get to the IDs on many of my outlets and switches as they are in the wall or behind bookcases, so I need to keep the discovered items I already have in HA.

Really appreciate the help.

1 post - 1 participant

Read full topic

How to count sensors based on attribute?

$
0
0

Is it possible to count the number of sensors that has the same icon attribute?

icon: mdi:cloud

1 post - 1 participant

Read full topic

Spotify Morning Alarm

$
0
0

Hi, I’ve tried making an automation to play a Spotify playlist in the morning on my laptop, but it hasn’t worked so far. It’s coupled with a Philips Hue light, the idea being that I’d like the sound to go off a bit later if the light doesn’t manage to wake me up. Here’s what I currently have:

alias: Bedroom Wake Up
description: ''
trigger:
  - platform: time
    at: input_datetime.wake_up
condition: []
action:
  - service: hue.activate_scene
    data:
      transition: 60
    target:
      entity_id: scene.bedroom_concentrate
  - service: input_number.set_value
    data:
      value: 0
    target:
      entity_id: input_number.bedroom_state
  - delay:
      hours: 0
      minutes: 5
      seconds: 0
      milliseconds: 0
  - service: media_player.select_source
    data:
      source: DESKTOP-0VVP0U1
    target:
      entity_id: media_player.spotify_tsuki
  - service: media_player.play_media
    target:
      entity_id: media_player.spotify_tsuki
    data:
      media_content_id: spotify:playlist:37i9dQZF1DX4PP3DA4J0N8
      media_content_type: spotify://playlist
    metadata:
      title: Nature Sounds
      thumbnail: https://i.scdn.co/image/ab67706f0000000325679ec48f09bd70884d4184
      media_class: playlist
      children_media_class: track
      navigateIds:
        - {}
        - media_content_type: spotify://current_user_playlists
          media_content_id: current_user_playlists
        - media_content_type: spotify://playlist
          media_content_id: spotify:playlist:37i9dQZF1DX4PP3DA4J0N8
mode: single

The first time it failed I had a guess that since the player on the laptop isn’t active for the whole night it couldn’t just start playing, so I added the media_player.select_source bit.

Looking through the logbook this morning seems like it just paused it instead of playing:
image

At this point I don’t know what I’m missing, can anyone give me a hand with this. Thanks.

1 post - 1 participant

Read full topic

Tuya Integration no devices

$
0
0

Hi,
I’m trying to get the Tuya integration working with HA. I’ve ensured that the ‘Device Status Notification’ is added as per Tuya - Home Assistant instructions. My device does not show up as an entity and I get the following error.

2022-05-15 16:27:55 ERROR (Thread-113) [tuya_iot] error while get mqtt config
2022-05-15 16:27:55 ERROR (Thread-113) [root] Uncaught thread exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/site-packages/tuya_iot/openmq.py", line 161, in run
    time.sleep(self.mq_config.expire_time - 60)
AttributeError: 'NoneType' object has no attribute 'expire_time'

Any ideas?

1 post - 1 participant

Read full topic

For_each attribute action in automation

$
0
0

I want to iterate trough the series of attributes of the weather.openweathermap sensor.
Goal is to send the forecast info to a Beckhoff ADS device.
This is what I came up with:

- id: beckhoff_dagtemperatuur
  alias: 'Stuur dagtemperaturen naar Beckhoff'
  trigger:
    - platform: state
      entity_id: weather.openweathermap
  action:
    repeat:
      for_each:
        -  states.weather.openweathermap.attributes["forecast"]
      sequence:
        - service: ads_custom.write_data_by_name
          data_template:
            adsvar: gvlHomeAssistant.stForecast[{{ repeat.index }}].Temperature
            adstype: real
            value: {{ repeat.item.temperature }}

Problem is that the automation gives me the error that temperature is no item of the for loop.
From this I’m concluding that there is a problem with the for_each part of the automation.
I think it has something to do that I don’t provide a needed index:

{{ states.weather.openweathermap.attributes["forecast"][INDEX].temperature}}

Problem is that I don’t know how to achieve this.
Tnx.

1 post - 1 participant

Read full topic

State of HA system language

$
0
0

Hi guys,

Does someone know if it is possible to get the state of the current language settings of HA? I am using Custom Cards and there is an option to template names. So my idea is the change the name according to the system setting of HA. (When the language is EN - the name is in English, when in IT, then in Italian, and so on.

Any ideas, please?

1 post - 1 participant

Read full topic


InfluxDB Stopped working after Home Assistant Core: 2022.5.4 installed

$
0
0

also a lot of my custom elements are no longer their ?

ie)

custom element doesn't exist grid-dnd
path: default_view
title: Home
type: custom:grid-dnd


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: InfluxDB
 Scalable datastore for metrics, events, and real-time analytics
-----------------------------------------------------------
 Add-on version: 4.4.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 7.6  (amd64 / qemux86-64)
 Home Assistant Core: 2022.5.4
 Home Assistant Supervisor: 2022.05.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] create-users.sh: executing... 
[cont-init.d] create-users.sh: exited 0.
[cont-init.d] influxdb.sh: executing... 
[cont-init.d] influxdb.sh: exited 0.
[cont-init.d] kapacitor.sh: executing... 
[cont-init.d] kapacitor.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[20:17:25] INFO: Chronograf is waiting until InfluxDB is available...
[20:17:25] INFO: Kapacitor is waiting until InfluxDB is available...
[20:17:25] INFO: Starting the InfluxDB...
panic: keys must be added in sorted order: tsm1_engine,database=homeassistant,engine=tsm1,hostname=a0d7b954-influxdb,id=12,indexType=inmem,path=/data/influxdb/data/homeassistant/autogen/12,retentionPolicy=autogen,walPath=/data/influxdb/wal/homeassistant/autogen/12#!~#tsmLevel1CompactionDuration < tsmt"gine,database=homeassistant,t"ne=tsm1,hostname=a0d7b954-influxdb,id=12,indexType=inmem,path=/data/influxdb/data/homeassistant/autogen/12,retentionPolicy=autogen,walPath=/data/influxdb/wal/homeassistant/autogen/12#!~#tsmFullCompactionsActive
goroutine 314 [running]:
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*directIndex).Add(0xc00a8f0120, 0x7f70e1c6614f, 0xfc, 0x11818, 0x1, 0x16eeb9ef2162dc00, 0x16eec3051bc99800, 0xd1676, 0xc00000001e)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/writer.go:337 +0x594
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*tsmWriter).WriteBlock(0xc000848b40, 0x7f70e1c6614f, 0xfc, 0x11818, 0x16eeb9ef2162dc00, 0x16eec3051bc99800, 0x7f70e1c336ba, 0x1a, 0x442ad, 0x0, ...)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/writer.go:686 +0x1ea
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).write(0xc00a472360, 0xc000f10000, 0x44, 0x25aa640, 0xc0000cb680, 0xc008b16601, 0x0, 0x0)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1162 +0x287
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).writeNewFiles(0xc00a472360, 0x5, 0x2, 0xc0001e6480, 0x5, 0x8, 0x25aa640, 0xc0000cb680, 0x1, 0x25aa640, ...)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1045 +0x18f
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).compact(0xc00a472360, 0xc0001e6400, 0xc0001e6480, 0x5, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:953 +0x40d
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).CompactFull(0xc00a472360, 0xc0001e6480, 0x5, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:971 +0x17e
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*compactionStrategy).compactGroup(0xc000514850)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2289 +0x1c72
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*compactionStrategy).Apply(0xc000514850)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2266 +0x4d
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactFull.func1(0xc0092b22b0, 0xc0000ca780, 0xc000514850)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2235 +0x117
created by github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactFull
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2231 +0xe8
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

1 post - 1 participant

Read full topic

Custom element doesn't exist - dwains dashboard

$
0
0

This happens sometime with dwains dashboard. If I reload my browser (no changes in any yaml file) everything is ok.
Ideas?

1 post - 1 participant

Read full topic

So how do I send TTS to media player in 2022?

$
0
0

It seems that something has changed, as my Text-To-Speech automations have gone totally silent.

Previously how I did this was with calling a script:

  alias: somethingsomething
  sequence:
    - service: tts.google_translate_say
      entity_id: media_player.player_name
      data_template:
        message: >
          Text to be sent

But now what I get in return is an error: “Media source not loaded”.

3 posts - 2 participants

Read full topic

Calculate endtime for a washing cycle

$
0
0

I want to display the end-time for a washing cycle on my dashboard. The washingmachine gives me a ‘time left’ as an attribute which I have converted to a sensor for ease of use and other display purposes on my dashboard.

But I am a bit stuck on how to calculate an endtime based on the current time and the time left.

I can fetch the time remaining either as

{{ state_attr('sensor.wasmachine', 'remain_time') }}

or

states('sensor.wash_timeleft')

This gives me a string as such “0:30:00”, “1:02:00”, “0:00:00”… etc.
What I want to do to is add this time to a now() (using now().strftime("%H:%M:%S") for example) and get a time that displays when the washingmachine will be done. So if it’s now 12:00 and the timeleft is “0:30:00” the finnish time should be 12:30 (30 minutes later).

Any help will be much appreciated!

1 post - 1 participant

Read full topic

MQTT not working as before

$
0
0

Hello,

since i updatet HA to 5.2 all MQTT “sensor” entrys are shown as not present.
But all MQTT “binary.sensor” and “switch” working fine!

mosquitto is installed and i can listen to those missing messages/entrys.

here a part of the configuration.yaml:

mqtt:
 broker: 192.168.2.223

sensor:
 - platform: mqtt
   name: "Solar SERVER Ampere"
   state_topic: "homesys/Solar MPPT/LOAD1 A"
   unit_of_measurement: "A"

 - platform: mqtt
   name: "PI CPU Temp"
   state_topic: "homesys/pi/sys/cpu/temperatur"

these are working:

binary_sensor:
  - platform: mqtt
    name: "IN1"
    state_topic: "homesys/pi/shift_inputs/in1"
    payload_on: "1"
    payload_off: "0"
  - platform: mqtt
    name: "IN2"
    state_topic: "homesys/pi/shift_inputs/in2"
    payload_on: "1"
    payload_off: "0"

Can someone help?

1 post - 1 participant

Read full topic

Viewing all 106083 articles
Browse latest View live


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