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

Timer for announcing remaining seconds until event fires

$
0
0

i have a nice automation that notifies me which motion sensor detected motion.
i would like to add a line at the end of the notification to tell me the time remaining until the alarm siren starts sounding (which is typically 60 seconds).

i’m trying to use a timer helper for this to read the ‘’‘remaining’’’ state attribute of the timer but i found that it never changes. it only seems to show the same value as the duration attribute.

for example it always shows this state:

duration: '0:00:30'
editable: true
icon: mdi:clock
friendly_name: Alarm Trigger
finishes_at: '2022-05-14T08:00:06+00:00'
remaining: '0:00:30'

how i test:
i trigger the timer in developer tools:

service: timer.start
data:
  duration: '30'
target:
  entity_id: timer.alarm_trigger

use a script to create a notification:

alias: time remaining test
sequence:
  - service: notify.persistent_notification
    data:
      message: >-
        the time remaining is {{ state_attr('timer.alarm_trigger', 'remaining')
        }}
mode: single

is there something wrong with the timer helper?

1 post - 1 participant

Read full topic


Configuration and more

$
0
0

Hello there,
first a introduce, my name is Wil living in the Netherlands.
less experiance with Home automation systeem but, to make my live easy starting with it.
For now, i have installed Home Assistant Core on a Intel NUC because it’s hard to get a Raspberry pi right now.
in the mean time i have played with serveral items inside Home Assistant and become more surpricing on what to possibiltys are.
now my question.
i have downloaded some Hacs things and put them i the config files.
for example the Home Assistant AV Receiver Panel Card - YouTube
put it in recources from there on it’s not clear for me.
question is how can put this card and make it as a Denon AVR? so i can set all the functions of the receiver on my touchscreen?
is ther somebody who can explain me step by step how to make things done.
then second, is it possible to make a card which can show my Bosch Nefit easy controller thermostat.

waiting for some reply,
thanks in advaced.
regards
Wil

1 post - 1 participant

Read full topic

How release UART for Zigbee HAT ? (HASSOS on raspbery pi 3)

$
0
0

Please help
I need install Zigbee HAT with E72-2G4M20S1E ( CC2652P ) on Raspberry Pi 3 with HASOS.
I try:
insert HASSOS SD into PC ,
open file config.txt on hass-boot partition
add

enable_uart=1 
dtoverlay=disable-bt
dtoverlay=pi3-disable-bt

Boot Home Assistant and check
But serial not released
/dev/ttyAMA0
still in use

1 post - 1 participant

Read full topic

Google Nest Smoke + HomeKit

$
0
0

Hi All,

I have a bunch of Nest Smoke detectors around the house, and i’m trying to get them integrated in Home Assistant.

They are now on my HomeBridge docker container but i don’t know how to pair them with Home Assistant.
The HomeKit Controller show’s up with a new discoverd device, but when i try to add it i get this:

Am i missing something here?

2 posts - 1 participant

Read full topic

Nuki - json - scanResults - multiple - problem

$
0
0

Hello,

I have a problem, I try to download data using:

  - platform: rest
    scan_interval: 25 
    resource: !secret nuki_info
    name: "NUKI status"
    value_template: "{{ value_json['scanResults'][0]['paired'] }}"
    json_attributes_path: "$.scanResults[0]"
    json_attributes:
      - rssi

from the link it looks like this:

{"bridgeType": 1, "ids": {"hardwareId": xxxxxxx, "serverId": xxxxxxxx}, "versions": {"firmwareVersion": "1.21.0", "wifiFirmwareVersion": "1.2.0"}, "uptime": 428, "currentTime": "2022-05-14T08:55:11+00:00", "serverConnected": true, "scanResults": [{"deviceType": 0, "nukiId": xxxxxxxxx, "name": "Nuki_xxxxxxxx", "rssi": -78, "paired": true}, {"deviceType": 0, "nukiId": xxxxxxxx, "name": "Nuki_xxxxxxxx", "rssi": -77, "paired": true}]}

i would like to get the second rssi value. How to do it?

Value change from

value_template: "{{ value_json['scanResults'][0]['paired'] }}"

on

value_template: "{{ value_json['scanResults'][1]['paired'] }}"

it gives nothing because there is one scanResults value but there are two paired.

How to do it

3 posts - 2 participants

Read full topic

Problem: Stopping HVAC when windows and doors are open using Snapshot

$
0
0

Hello,

The logic to execute this trigger works fine, my issue is with the snapshot (I think). I have several comfort settings for my ecobee. When the doors were shut, scene.climate_snapshot was executed at the end of the automation, the temperature was set to 78, which is not what is listed in the comfort setting (73) when the snapshot was taken.

Do you have any ideas?

- alias: Climate - Doors/Windows Open - Stop HVAC
  trigger:
    - platform: state
      entity_id: group.doors_windows
      to: 'on'
      for: '00:05:00'
  condition:
    condition: not
    conditions:
     - condition: state
       entity_id: climate.ecobee
       state: 'off'
  action:
    - service: scene.create
      data:
        scene_id: climate_snapshot
        snapshot_entities: climate.ecobee
    - service: climate.set_hvac_mode
      data:
        entity_id: climate.ecobee
        hvac_mode: 'off'
    - wait_for_trigger:
        - platform: state
          entity_id: group.doors_windows
          from: 'on'
          to: 'off'
          for: '00:00:30'
      continue_on_timeout: false
    - scene: scene.climate_snapshot

1 post - 1 participant

Read full topic

MQTT Server With SSL

$
0
0

To start this post I want to say that I have searched the forum and found loads of posts. I’ve also done a lot of Googling. I can’t find the answer to my question(s) and worryingly the posts I have found that come close either don’t have an answer or finish with the OP saying words to the effect of “I couldn’t get it to work”.

I have built a Mosquitto MQTT server on a Digital Ocean droplet. The SSL is provided by a Let’s Encrypt certificate. That is, it’s not self signed. My reason for this is long and involved but it involves data collection from sensors outside my home network.

To this server I have successfully connected

  • OwnTracks on my phone
  • ESP32 clients located in a field
  • A RPi on my home network running Zigbee2MQTT

And some other bits. Point is, I have

mosquitto_sub -h localhost -t '#'

running on the server and I can see a steady stream of these devices connecting and publishing without a problem.

But I can’t get HA to connect to this server. If I try and do it through the integration I get “Connection failed” and

[paho.mqtt.client] failed to receive on socket: [Errno 104] Connection reset by peer

In the log. If I go back to basics and configure it in the YAML, the log fills up with

[homeassistant.components.mqtt] The 'broker' option near /config/configuration.yaml:13 is deprecated, please remove it from your configuration

And it doesn’t connect. I remember in the days when we had to do everything with YAML you could specify keys like certificate: auto or specify paths to certificates but any of those options just cause the “deprecated” warning above and, since I’m using a LE certificate should theoretically not be needed.

Is there something else I need to do to get HA to connect to MQTT with SSL? This is Home Assistant OS 2022.5.4 by the way.

Thanks

Steve

1 post - 1 participant

Read full topic

Access camera from outside Home Assistant

$
0
0

Is it possible to get a snapshot from a camera (Netatmo) using an url to Home Assistant? I only need local access. The camera is integrated in HA already, I just want to access the image.

I found this:

http://localhost:8123/api/camera_proxy/camera.netatmo

How can i use this without password as plain url?

5 posts - 2 participants

Read full topic


How to delete history from specific sensor/entity?

$
0
0

Hi,
I read out optically my watermeter using OCR.
Now the water company was here and changed the meter to a new one.
The new meter starts at 0.
The history is so much higher and this looks crazy on graphs.

Can I somehow delete the history for a specific sensor/entity?

Thanks,
Ase

1 post - 1 participant

Read full topic

Noob question: How to get a configuration.yaml addtion to show under "services"?

$
0
0

Hi

I am new to HA. Installed it just a few days ago, and have spend quite a bit of time getting confused over it already. Nice to meet you all :slight_smile:

I tried getting it to make calls to an IFTTT webhook because my BroadLink remotes work much better there than with HA. To do so several guides state that I add this to my configuration.yaml, restart my instance and I should be good to go:

ifttt:
    key: cRd*******************

Another guide had an extra level with key:. I tried both, did not work.

I expect my ifttt to show under services in developer tools as stated in this guide: IFTTT - Home Assistant (which is the one I followed)

There is nothing there labeled ifttt. What have I done wrong?

1 post - 1 participant

Read full topic

HomeAssistant stops functioning after about one hour

$
0
0

Running latest 2022.5 version on Docker on Ubuntu x86 computer.

When (re)starting the docker container, everything works great, all works and everything.
After some time, about an hour or so, various. things stop working:

  • HomeAssistant is not accessible through :8123 port
  • I’ve also added HealthChecks.io support - health checks are stopped being fired.
  • Automations stop working

On the other hand - some other things keep “working”:

  • Docker container is alive and well
  • Logs of background services are still being written (i.g. INFO (Thread-14) [pychromecast.socket_client] [Entryway clock(192.168.1.123):8009] Connection reestablished!)
  • Docker container is accessible, running ps -ef returns 191 root 39:39 python3 -m homeassistant --config /config

This started sometime with 2022.5 (not sure exactly when).

I’ve tried to change the logs to debug (all of them, via `logger: default: debug") – but no correlated logs appear at that time, it looks like everything works well.

How can I debug the issue?
Anyone experienced something similar?

Some extra data if needed:

Version	core-2022.5.4
Installation Type	Home Assistant Container
Development	false
Supervisor	false
Docker	true
User	root
Virtual Environment	false
Python Version	3.9.9
Operating System Family	Linux
Operating System Version	5.15.0-27-generic
CPU Architecture	x86_64
Timezone	Asia/Jerusalem

1 post - 1 participant

Read full topic

Favorite TV Channels list?

$
0
0

Hi

I have some satellite TV boxes that I control in IR. I want to do some favorites in Lovelace so I can get straight access at some channels. I push a button in Lovelace and it dials automatically on my Infrared interface to get that channel on satellite box.
Any suggestions how to do that easily and in a scalable way ? as I have quite a lot of favorites to code !

Thanks for your ideas, suggestions,

Vincèn

1 post - 1 participant

Read full topic

Alexa skill configuration not working

$
0
0

Hi I have problem with alexa, I followed Amazon Alexa Smart Home Skill tutorial, but when I use layla.amazon.com (I’m in EU) in Client ID in account link I get an error while linking account “invalid client id or redirect uri” from home assistant. When I change it to pitangui.amazon.com I got an error (while linking account) “Unable to link HomeAssistant with Alexa”. Test discovery in lambda function works fine.

1 post - 1 participant

Read full topic

Sonoff Zigbee USB Dongle - can't pair any devices on a RP4

$
0
0

Hi! I recently bought a Sonoff Zigbee USB Dongle and some Aqara door/window and temperature sensors. I’ve read that they are supported and should work, and have also read some users confirming it works.

Sadly, I cannot get any device paired with the Dongle, neither in ZHA nor Zigbee2mqtt. I’ve flashed the Stick with the latest stable/development firmware (I tried both), but my devices cannot be paired (or show up when pairing) in Zigbee2mqtt or ZHA.

I’ve already bought a USB hub with external power supply, but that didn’t help. With the USB hub however, I was able to partly pair one sensor I tried, but it shows as “Manufacturer: Unsupported” in Zigbee2mqtt, and ZHA could never complete the interview.

I tried plugging in the Sonoff Dongle in my Windows PC, and running Zigbee2mqtt on it. On my PC I was able to pair the devices. I used the same configuration for Zigbee2mqtt on both my RP4 and my PC.

Thanks for your help!

1 post - 1 participant

Read full topic

Find last state before state iteration identified by a context

$
0
0

I’m using some self referencing in template sensors, namely I calculate the state from an attribute. So, every time the attribute changes, the state changes, too.

Now, I want to trigger an automation on the state change and it does matter, what is the from_state. But, in my automation, the from_state already has the attribute set as it is used to calculate the to_state.

Obvious, because the calculation is

  1. Change attribute
  2. Change state

And only the second step causes the automation to trigger. Yet, in my head, the two steps actually are part of the same state change. Let’s say in an iterative way.

My question is: can I somehow find out the last state of my template sensors before this iteration? Maybe with contexts?

1 post - 1 participant

Read full topic


Negative values for 1 device - Energy dashboard

$
0
0

it work for month ago, but today i will use it but is showing negative value.
how do i change it

image

1 post - 1 participant

Read full topic

502: Bad Gateway with addons

$
0
0

Hi everyone,
Im kinda noob, so I dont understand many things. I have installed today HA Supervised, and I tried to use 2 new addons, Portainer and Zigbee2mqtt. I tried to configurate second, and I dont know if I have any error, but If I open both in the leftbar, it sends me a message that says: 502: Bad Gateway. I tried all I could searching information, any idea?

1 post - 1 participant

Read full topic

Nest Integration Setup Failing Reauthentication

$
0
0

Hi Folks, I’m having an issue getting the Nest Integration set up. It is failing after I enter the project ID.
image

Here is some related log content:

Logger: homeassistant.config_entries
Source: components/nest/__init__.py:188
First occurred: 2:29:06 PM (2 occurrences)
Last logged: 4:57:51 PM

Error setting up entry OAuth for Web for nest

...

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/nest/__init__.py", line 188, in async_setup_entry
    await subscriber.start_async()
  File "/usr/local/lib/python3.9/site-packages/google_nest_sdm/google_nest_subscriber.py", line 416, in start_async
    await self._subscriber_factory.async_new_subscriber(
  File "/usr/local/lib/python3.9/site-packages/google_nest_sdm/google_nest_subscriber.py", line 261, in async_new_subscriber
    return await loop.run_in_executor(
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/google_nest_sdm/google_nest_subscriber.py", line 284, in _new_subscriber
    creds = self._refresh_creds(creds)
  File "/usr/local/lib/python3.9/site-packages/google_nest_sdm/google_nest_subscriber.py", line 272, in _refresh_creds
    creds.refresh(Request())
  File "/usr/local/lib/python3.9/site-packages/google/oauth2/credentials.py", line 302, in refresh
    ) = reauth.refresh_grant(
  File "/usr/local/lib/python3.9/site-packages/google/oauth2/reauth.py", line 322, in refresh_grant
    response_status_ok, response_data = _client._token_endpoint_request_no_throw(
  File "/usr/local/lib/python3.9/site-packages/google/oauth2/_client.py", line 115, in _token_endpoint_request_no_throw
    response = request(method="POST", url=token_uri, headers=headers, body=body)
  File "/usr/local/lib/python3.9/site-packages/google/auth/transport/requests.py", line 199, in __call__
    six.raise_from(new_exc, caught_exc)
  File "<string>", line 3, in raise_from
google.auth.exceptions.TransportError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

I looked at traffic using Wireshark and it appears that Google is terminating the TCP connection after it receives the TLS Client Hello from Home Assistant.

I have read many posts regarding Nest Integration issues, but have not made progress. Has anyone come across a similar issue and/or be able to help?

Thanks in advance!

1 post - 1 participant

Read full topic

Subscribe to MQTT topic on io.adafruit.com while still running the Mosquito broker add-on

$
0
0

I have HA running on a raspberry pi with the Mosquito MQTT broker add-on. I have local devices running and successfully publishing to the MQTT server and all is working well. I now have a temperature sensor that will be running outside my network (way out side) that I am publishing data to io.adafruit.com. I was hoping to just “subscribe” to the data on adafruit using their MQTT connection.

From what I read, I need to setup a “bridge” because HA can only connect to one MQTT server. I have spent a day trying to get that to work based on multiple posts from this site. After breaking everything, I just got back to level ground and I again have everything working on the internal MQTT broker again.

I feel like it can’t possibly be this difficult to subscribe to outside MQTT server data and still keep my internal MQTT add-on server working as normal for my local devices. Am I over complicating things here by trying to setup of a MQTT “bridge” on the MQTT add-on server? Is that the correct way to go?

2 posts - 1 participant

Read full topic

Media player template behaves not as expected

$
0
0

Okay, I’m tinkering around with Mushroom cards again and I build a chip card that should do the following. The chip should change:

  • the icon should change depending on state.attr of the media player (Arbeitszimmer = Office) → working
  • the icon color should change to → working
  • the service being called should change dependiung on the state.attr → not working

This code is working flawlessly in Developer Tools\Services:

service: |-
  {% if is_state_attr('media_player.arbeitszimmer', 'group_members',
  [
    "media_player.arbeitszimmer",
  ]) %}
    script.join_bad
  {% elif is_state_attr('media_player.arbeitszimmer',
  'group_members', [
    "media_player.arbeitszimmer",
    "media_player.bad"
  ]) %} 
    script.unjoin_bad
  {% endif %}

But if I put it in with the rest of it in my chip card I get

Failed to call service <{% if is_state_attr('media_player.arbeitszimmer', 'group_members',["media_player. Service not found

Here’s the full chip card and if I replace the service with just ‘script.join.bad’ or ‘script.unjoin.bad’ everything is working fine so the card is okay.

type: custom:mushroom-chips-card
chips:
  - type: template
    entity: media_player_bad
    icon: >-
      {% if is_state_attr('media_player.arbeitszimmer', 'group_members',
      [
        "media_player.arbeitszimmer",
      ]) %}
        hue:room-bathroom
      {% elif is_state_attr('media_player.arbeitszimmer',
      'group_members', [
        "media_player.arbeitszimmer",
        "media_player.bad"
      ]) %} 
        hue:room-bathroom-off
      {% else %}
        mdi:cloud-question
      {% endif %}
    icon_color: >-
      {% if is_state_attr('media_player.arbeitszimmer', 'group_members',
      [
        "media_player.arbeitszimmer",
      ]) %}
        disabled
      {% elif is_state_attr('media_player.arbeitszimmer',
      'group_members', [
        "media_player.arbeitszimmer",
        "media_player.bad"
      ]) %} 
        blue
      {% else %}
        mdi:cloud-question
      {% endif %}
    content: ''
    hold_action:
      action: call-service
      service: |-
          {% if is_state_attr('media_player.arbeitszimmer', 'group_members', ["media_player.arbeitszimmer", ]) %}
            script.join_bad
          {% elif is_state_attr('media_player.arbeitszimmer','group_members', ["media_player.arbeitszimmer", "media_player.bad" ]) %} 
            script.unjoin_bad
          {% endif %}
      service_data: {}
      target: {}

Hope that’s just a ',{ somewhere that has to be in the card code and Developer Tools is that picky.

1 post - 1 participant

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>