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

Trigger automation timedelta trigger

$
0
0

Why does this not work?

---
# This blueprint takes a date and ...

blueprint:
  source_url: https://github.com/niro1987/homeassistant-config/blob/main/blueprints/automation/niro1987/timedelta.yaml

  name: Timedelta

  description: >-
    Some description

  domain: automation

  input:
    dt:
      name: Date/Time Sensor
      description: The datetime sensor
      selector:
        entity:
          domain: sensor
          device_class: timestamp
    hours:
      name: Hours
      description: The number of hours to use for the timedelta
      selector:
        number:
          mode: box
          min: 0
          max: 24
          step: 1
      default: 0
    minutes:
      name: Minutes
      description: The number of minutes to use for the timedelta
      selector:
        number:
          mode: box
          min: 0
          max: 60
          step: 1
      default: 0
    seconds:
      name: Seconds
      description: The number of seconds to use for the timedelta
      selector:
        number:
          mode: box
          min: 0
          max: 60
          step: 1
      default: 0
    action:
      name: Action
      description: Action to perform
      selector:
        action:
      default: []

mode: single
max_exceeded: silent

variables:
  var_dt: !input dt
  var_hours: !input hours
  var_minutes: !input minutes
  var_seconds: !input seconds
  var_target: "{{ states(var_dt) | as_datetime }}"
  var_delta: "{{ timedelta(hours=var_hours, minutes=var_minutes, seconds=var_seconds) }}"

trigger:
  - platform: template
    value_template: "{{ (now() - var_delta) > var_target }}"

action: !input action

1 post - 1 participant

Read full topic


Error with config.yaml

$
0
0

I am trying to add sensors in config.yaml, unfortunastwly it does not work.

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
platform: google_translate

sensor: !include sensor.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml 

I get the following error:

Integration error: platform - Integration 'platform' not found.
Invalid config for [sensor]: required key not provided @ data['platform']. Got 'google_translate'. (See /config/configuration.yaml, line 8).

what am I doing wrong (probably some very basic mistake)

Thx for your help.

1 post - 1 participant

Read full topic

How to keep aqara cube connected?

$
0
0

I have two cubes. I’m on the latest version of HA. I’m using ZHA integration. I can pair both, I understand the zha_event stuff. They work fine except after about an hour they both disconnect from HA and I have to pair again. I’ve seen a lot of threads on this topic but no answers. They are all old threads, wondering if there is some magic or a dance I have to perform.

1 post - 1 participant

Read full topic

The sliders for Fan entities vanished from my dashboards - any idea why?

$
0
0

All my ceiling fans had a slider and toggle on the dashboard. Today I noticed that the sliders for my ceiling fans vanished. I use the same addon for the sliders for my lights and those are still there. Any suggestions on how to get them back?

I don’t necessarily need the slider as the fan only has 4 speeds plus off, but all solutions I have seen for buttons are for 3 speed fans… so the slider was the next best thing.

type: entities
style: |
  .card-header {
  font-size: 18px;
  padding: 2px 15px 2px 15px
  }
entities:
  - type: section
  - type: custom:slider-entity-row
    entity: light.office_light
    toggle: true
    name: Office Light
  - type: custom:slider-entity-row
    entity: fan.office_fan
    toggle: true
    name: Ceiling Fan
  - type: custom:slider-entity-row
    entity: light.office_ceiling_light
    toggle: true
    name: Ceiling Light
  - type: custom:slider-entity-row
    entity: light.office_workbench_light
    toggle: true
    name: Workbench Light
title: Main Lights & Fans
state_color: true

1 post - 1 participant

Read full topic

Default Calendar Card not usable

$
0
0

Hi. New HA user, getting the hang of things.

I know and was expecting that a lot of tweaking would be necessary to get things working in HA. However, there are a few things that feel that should already work out of the box but don’t.

My main example: I am playing with building my own dashboard, and adding some of the default out-of-the-box cards. I tried adding the calendar card, and based on previous reading of documentation I expected to get prompted for some view metadata details, and then it would provide a default calendar card. But when I add a calendar card, it looks like this:

Now, I am able to get past this by going into the code editor and manually setting some of the fields appropriately in the YAML, and I can eventually get a proper calendar appearing. But even then, clicking on the controls to switch to different months doesn’t entirely work - the calendar day grid updates, but the month title stays on the current month (at time of writing, “April 2022”).

Is it expected that even the default OOB cards need full customization to work, or should these be working in a default state? I just want to make sure that I’m not in some broken state with HA that is going to cause further headaches going forward.

Appreciate any feedback people can offer - thanks!

Ivan

1 post - 1 participant

Read full topic

Some Linked Insteon USB Devices aren't showing up in HA

$
0
0

Yesterday, I added a PCM to a Linux box, and used insteon.add_all_link to connect my wall 2477S switches. After fiddling with it for hours, it started adding devices into HA. I was able to add 2 devices before it stopped working again.

Adding the third device works. I can see it being added in the log without error. It also gets added to the insteon_devices.json. However, the configuration in that file is empty, and HA is not showing the item (even after multiple restarts).

  {
    "address": "33ec12",
    "cat": 0,
    "subcat": 0,
    "firmware": 0,
    "engine_version": 3,
    "aldb_status": 1,
    "aldb": {},
    "operating_flags": {},
    "properties": {}
  }

The other two devices have a lot more information.

I’m not sure what to do next. I’ve tried it with a couple different switches, and I keep getting the same result.

1 post - 1 participant

Read full topic

Chime from Z-Wave State Changes

$
0
0

TL;DR Does anyone else have any creative solutions for an audible notification on home speakers/devices when a state changes on a z-wave device?

I finally invested in some Z-Wave devices and I’m honestly super impressed. Their responsiveness is really great!

There are a few situations where I would want the be notified when a z-wave device changes state (i.e when a certain door opens). I’ve tried a few of the suggestions of putting a .wav or .mp3 in the media/ or www/ folders, but I couldn’t get that to work. For the time being, I’m having google TTS say “ding dong” and it works fairly well and Google is quick to play the sound (usually less than a second).

I guess my first questions is how to get the sound file to play? I tried both Node Red and HA Automations, but neither played the file. My google home screen changed as if it was loading and going to play the file, but then silence. I inspected the web page where I downloaded the file and tried using the URL. That worked once, then threw an API error.

In the end, I’d prefer a sound of some sort. Even if the local wav/mp3 file does work, I’d be concerned that the time to retrieve, read, and play the file would be longer than TTS.

I see there are Z-Wave alarms/sirens/speakers, but I’d like to use what I have for now.

Other than the previous questions of getting the file to work, does anyone else have sound notification on home speakers/devices when a state changes on a z-wave device?

1 post - 1 participant

Read full topic

What format is the timestamp in the notify component

$
0
0

I want to do some data analysis of a sensor output, so I am using the notify component to record the sensor data to a file. One option of the notify component is to put a timestamp on each entry.
What format is the timestamp and does anyone have a clue how to decode it in Excel?

2022-04-22T22:18:09.462129+00:00 453.35
2022-04-22T22:18:40.768944+00:00 453.35
2022-04-22T22:19:49.480535+00:00 457.0
2022-04-22T22:21:29.489775+00:00 458.56
2022-04-22T22:23:09.473489+00:00 450.65

Thanks.

2 posts - 2 participants

Read full topic


[help with yaml] UI showing 404 page not found. couldn't understand what's wrong with this configuration

$
0
0

I have started my journey with HA and modified the configuration.yaml based on this documentation.

Here is the info from the server. The validations were always fine, but after the restart, the UI won’t load and gives me 404: Not Found . I see these errors on log.
I can access the server fine, just the UI won’t load.

can someone help me understand what the mistake I am doing here?

1 post - 1 participant

Read full topic

Re-interview Device with Security?

$
0
0

So I had to completely blow up my z-wave setup to rollback to a generation 5 stick. The 700 is in the trash can, the firmware update didn’t fix anything for me …but my new problem is: I have 3 Yale locks that I added at the very end after waiting a couple days to build a solid mesh. The first two pairings went great but the last one added itself to the network with security and for despite being seen by the network, doesn’t do much else.

I’ve tried to reinterview the device through Zwave2Mqtt while selecting the “reset security class” option several times. Each time it successfully reinterviews the node but doesn’t update the security.

Sooooo my question is: Is there anyway to save this node without excluding it and having to re-include it? I know this sounds petty, but I’m trying my damnest to not have a gap in my nodes…any advice?

3 posts - 2 participants

Read full topic

Is there a way to interrupt a delay in a script?

$
0
0

I have a script that turns on my sprinklers, delays for a few minutes, then turns off.
Is there a way to interrupt the delay?
In other words, let’s say I start Zone 1 and the relay turns on.
I want to stop Zone 1, but I can’t because the process is stuck in the delay.

Is there a better way, like a separate script for on and off? (Where do I put the delay?)

alias: Sprinkler Zone01 run
sequence:
  - condition: state
    entity_id: input_boolean.zone1_enable
    state: 'on'
  - service: switch.turn_on
    data: {}
    target:
      entity_id: switch.sprinkler1_relay_1
  - delay: '{{states(''input_number.irrigation_zone1_duration'')|int *60}}'
  - service: switch.turn_off
    data: {}
    target:
      entity_id: switch.sprinkler1_relay_1
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
mode: single

5 posts - 2 participants

Read full topic

Post Multiple Sensor values to MQTT - different Topics

$
0
0

Guys,

I am trying to publish multiple Climate Sensors to MQTT to enable Other systems to consume and operate on the information.

I have found a number of posts but can not quite get to the end goal

What i have in my automations now is

trigger:
    platform: time_pattern
    minutes: '/1'
    seconds: 00
  action:
     - service: mqtt.publish
       data:
         topic: /HomeAssistant/Airtouch/Temperature/Camryn
         payload_template: '{{states.climate.camryn.attributes.current_temperature}}'

And this is working to publish a Single sensor to a distinct topic.

I can not work out how to publish multiple sensors to multiple topics - effectively duplicating the data section as such

topic: /HomeAssistant/Airtouch/Temperature/Kitchen
payload_template: ‘{{states.climate.kitchen.attributes.current_temperature}}’

topic: /HomeAssistant/Airtouch/Temperature/Study
payload_template: ‘{{states.climate.study.attributes.current_temperature}}’

etc etc

Can anyone give me an idea of how to either loop through a list of these entities or (as there are currently only 5 of them) just hard code all 5 and have them published each minute ?

Thanks

Craig

1 post - 1 participant

Read full topic

Getting local IP address for RESTful request

$
0
0

I have implemented wireguard and have the client info status option listening on port 8124 which I can query from a web browser and using curl:

curl -X GET http://192.168.0.55:8124

However I am deploying this on a few different devices / LANS and for that reason I dont want to hardcode the IP address.

I have tried these and none work:

curl -X GET http://localhost:8124
curl -X GET http://127.0.0.1:8124
curl -X GET http://172.30.33.0/:8124
curl -X GET http://homeassistant.local:8124

172.30.33.0 - is the ip address of the hassio from ip addr.

So how can I get the local IP address, is it stored in some global variable

- platform: rest
  resource: http://MY_LOCAL_IP:8124
  name: Wireguard Status

1 post - 1 participant

Read full topic

Lolin TFT2.4 inch and D1 Mini Pro?

$
0
0

I have an ESP32 D1 Mini Pro equivalent board and a Lolin TFT2.4 display and I’m really struggling to get them to work together. Has anyone done this successfully? I know this combination works with OpenHASP but I would prefer to use ESPHome and I think it is just the GPIO pin configuration I have wrong - but I can’t figure out what it should be despite multiple attempts!

Any help greatly appreciated!

1 post - 1 participant

Read full topic

Help With NFC Tag - Conditional Device

$
0
0

Hi, I am trying to use a NFC tag to trigger an automation. I have that working great but I want to now have a condition on my automation to only run if the tag_scanned event’s device_id is the device id of my phone.
I have tried a couple of things:

One is this sort of technique:

  trigger:
    platform: event
    event_type: tag_scanned
  condition:
    # Test that we support this device and tag
    - "{{ trigger.event.data.device_id == '123456789' }}"

and the other way is to have this in the triggers section:

platform: event
event_type: tag_scanned
event_data:
  device_id: 123456789

In both cases the automation just runs regardless of what I set the device_id to.

Can anyone advise what I’m doing wrong?

1 post - 1 participant

Read full topic


Google Home - Add device failed with "could not establish a secure connection"

$
0
0

Hi everyone,

I was able to follow the instruction on this page: Google Assistant - Home Assistant, including setting up an external hostname and SSL certificate. Let’s Encrypt add-on has no error and my Home Assistant received a SSL certificate. My external IP address is correct since Let’s Encrypt requires port 80 in order to generate a SSL certificate.

However, when I tried to add my newly created [test] xxx device, my browser would say “could not establish a secure connection”. What am I missing?

Thanks.

1 post - 1 participant

Read full topic

Status button not updated

$
0
0

Hi,

I have 3 smartplugs that I grouped.

On my dashboard I have the group and the 3 individual smartplugs :

  - type: horizontal-stack
    cards:
      - show_name: false
        show_icon: true
        type: button
        tap_action:
          action: toggle
        name: Sfeer
        icon: mdi:lightbulb-group
        entity: switch.group_smart_plug_sfeerverlichting
      - type: button
        entity: switch.smart_plug_sfeerverlichting_dressoir_on_off
        color: grey
        show_state: false
        name: Dressoir
        show_name: false
        icon: mdi:buffet
      - type: button
        entity: switch.smart_plug_sfeerverlichting_links_on_off
        color: grey
        show_state: false
        name: Links
        show_name: false
        icon: mdi:dock-left
      - type: button
        entity: switch.smart_plug_sfeerverlichting_rechts_on_off
        color: grey
        show_state: false
        name: Rechts
        show_name: false
        icon: mdi:dock-right

Everything works fine, except that when switched off sometimes some of the smartplugs shows ON on the screen even if they are OFF.

What can I do to resolve this ?

1 post - 1 participant

Read full topic

Using Scenes for "Movie Mode" but it won't close my blinds

$
0
0

Hi All
I am brand new to home assistant having only installed it about an hour ago so there are probably some concepts that I am missing!
As the title says I am trying to setup a movie mode scene that closes my blinds. I have added the blinds to my scene, saved the scene and tried it but my blinds do not close!
I think that the problem is probably that my blinds do not report their status or position (somfy roller blinds) so home assistant does not know what state they are in when saving the scene.
Is there any way I can add a script or something to my scene so that whne it’s activated is closes the blind?
Thanks

1 post - 1 participant

Read full topic

DWD Weather Warnings integration stopped working

$
0
0

Hi,

The DWD integration stopped working for me. The state of the following entities is shown as unavailable:

  • DWD-Weather-Warnings Advance Warning Level
  • DWD-Weather-Warnings Current Warning Level

Other than these, I can’t find any DWD sensors in my system.

My configuration:

sensor:
  - platform: dwd_weather_warnings
    region_name: 804011000 # Bremen

I’m not sure if it’s related to the latest upgrade. I’m on version 2022.4.6 (Docker).

Am I missing something?

Thanks,
Aaron

1 post - 1 participant

Read full topic

Shelly to control gate using custom button card

$
0
0

I’m using a shelly to control an electric gate all working OK. I started with trying to do it with MQTT then decided to use the inbuilt shelly integration. Then I tried via covers template but gave up. Finally decided easiest would be to use custom button-card in the dashboard.

Question is how to I add a an action/tap to the button that is showing a binary sensor at the moment, to toggle or turn on switch.driveway_gate??

type: custom:button-card
name: Driveway Gate
entity: binary_sensor.driveway_gate
state:
  - value: 'on'
    icon: mdi:gate-open
    color: red
    styles:
      card:
        - animation: blink 2s ease infinite
  - value: 'off'
    icon: mdi:gate
    color: green

Thanks

1 post - 1 participant

Read full topic

Viewing all 99623 articles
Browse latest View live


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