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

Alexa Custom Skill Account linking Issue. No Debug Logs

$
0
0

Hi All,
I am facing an issue with the custom alexa skill integrations. I followed the steps provided here (Amazon Alexa Smart Home Skill - Home Assistant) with a small change of using my custom purchased TLS Certificate (Comodo Positive SSL) for my custom domain (ha.myDomain.co.in). I have configured the ssl certificate to the home assistant properly. I am able to view my home assistant instance on internet with proper certificate. While trying to enable my custom skill on the alexa app, i am successfully redirected to the home assistant login page and i am able to login thru it as well. However, after login to home assistant i get redirected to a page saying “We were unable to link xxx at this time.”. Can some one please help me debug this issue with account linking. I have enabled the alexa logs like this

logger:
default: info
logs:
# log level for HA core
homeassistant.core: fatal
homeassistant.components.alexa: debug

I can see in the Supervisor Logs: “WARNING (MainThread) [supervisor.api.proxy] Unknown Home Assistant API access!”
But don’t see any logs with related to alexa. Stuck on this for 4-5 days now.

2 posts - 1 participant

Read full topic


Logging a persons whereabouts

$
0
0

Hi there,

As a cross border commuter I need to file my whereabouts every year to both the tax agencies in both the country of residence and the country I work in. My thought was that it may be possible to automate in HA, since it already has my tracking.

I found the File integration, which I would like to write to a log file, whenever my Person enters some predefined Zones in my working country. All the rest working days will be assumed working from my country of residence.

My goal would be to:

  1. Trigger when my person has been in a zone for more than 4 hours
  2. Write the log to a File: timestamp and name of zone

I tried to write an automation, but this is a bit over my current knowledge to get it to work.

alias: Whereabout
description: ''
trigger: // not sure how to add the minimum time in a specific zone
  - platform: zone
    entity_id: person.john_doe
    zone: zone.work_office_a
    event: enter
  - platform: zone
    entity_id: person.john_doe
    zone: zone.work_office_b
    event: enter
condition: []
action:
  - service: notify.john_does_whereabout //Using the File integration
    data:
      message: '{{person.john_doe}}' //Not sure how to fetch the persons current zone name as variable?
mode: single

Anyone able to help me getting this automation progressed? Or does there exist better ways of doing so? All input is appreciated thanks. :slight_smile:

1 post - 1 participant

Read full topic

OZW quit, and I think I made things works by attempting a migration to JS

$
0
0

Hi all-
Pi4
Aeotec Z-Stick Gen5 Z-Wave using a USB Hub to get around the USB problems this stick was having.
Not sure Core and Supervisor versions, I stopped updating them in Feb or March when the release notes mentioned that OZW support was being removed

Everything was working fine until I woke up to my z-wave integration not functioning properly, all devices in an ‘unavailable’ state. I performed a reboot to no luck. After initial troubleshooting to make sure the USB stick was plugged in, ensuring device path was correct, etc; I figured that now would be a great time to migrate to Z Wave JS. In hindsight, attempting a migration when the base config was not functioning was a blunder.

Ultimately, I decided to rollback to a fully operating backup. Again, another blunder was not putting core and supervisor info in the backup file name. I used the latest image, restored the backup and I’m in the same spot. OZW does not seem to be functioning. And in this broken state, I cannot seem to migrate to Z Wave JS. The other option is that the stick has failed, but I am not sure how to test that.

Presently, running core 2021.12.3 and supervisor 2022.04.0.
I have removed OZW. Rebooted, and installed the Z Wave JS supervisor and integration (again). None of the z wave devices are being pulled in. The supervisor error I get it:

Unable to start driver ZWaveError: The security key for class S0_Legacy must be a buffer with length 16! (ZW0108)
    at checkOptions (/usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:285:11)
    at new Driver (/usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:449:3)
    at /usr/src/node_modules/@zwave-js/server/dist/bin/server.js:96:11
    at Object.<anonymous> (/usr/src/node_modules/@zwave-js/server/dist/bin/server.js:134:3)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
    at internal/main/run_main_module.js:17:47 {
  code: 108,
  context: undefined,
  transactionSource: undefined

Puting the supervisor server in Debug mode allows the integration to connect to the server, but does not pull over any devices and I receive errors on the server:

New client
Unexpected error TypeError: driver.controller.getProvisioningEntries is not a function
    at Function.handle (/usr/src/node_modules/@zwave-js/server/dist/lib/controller/message_handler.js:50:51)
    at Object.controller (/usr/src/node_modules/@zwave-js/server/dist/lib/server.js:37:103)
    at Client.receiveMessage (/usr/src/node_modules/@zwave-js/server/dist/lib/server.js:95:99)
    at WebSocket.<anonymous> (/usr/src/node_modules/@zwave-js/server/dist/lib/server.js:48:45)
    at WebSocket.emit (events.js:400:28)
    at WebSocket.emit (domain.js:475:12)
    at Receiver.receiverOnMessage (/usr/src/node_modules/ws/lib/websocket.js:1137:20)
    at Receiver.emit (events.js:400:28)
    at Receiver.emit (domain.js:475:12)
    at Receiver.dataMessage (/usr/src/node_modules/ws/lib/receiver.js:528:14)

Deleting the legacy code, and letting it be auto configured allows the supervisor server to work without error, but breaks the Z Wave JS integration piece. Deleting, rebooting and attempting new install of the integration provides a ‘abort’ and failed to connect.

What should my next troubleshooting steps be?

1 post - 1 participant

Read full topic

Shelly 2.5 roller shutter pause/stop automatisation

$
0
0

Hello.

I use an Shelly 2.5 for my roller-shutter.

It is possible to control up, down and stop/pause over the UI:
Bildschirmfoto_2022-04-18_16-42-39

But when i try to automate the control with webhooks, i cant trigger the pause/stop command.
In the Actions i can only set the “position” from 0 - 100 or uncheck the range-slider. Nothing worked to get the running roller shutter stopped.

my config:

- id: '1650289690408'
  alias: Rollo Runter
  description: 'Down!'
  trigger:
  - platform: webhook
    webhook_id: rollo-close-111
  condition: []
  action:
  - device_id: AAAAA
    domain: cover
    entity_id: cover.shelly_123
    type: set_position
    position: 0
  mode: single
- id: '1650289847861'
  alias: Rollo Hoch
  description: 'Up!'
  trigger:
  - platform: webhook
    webhook_id: rollo-up-111
  condition: []
  action:
  - device_id: AAAAA
    domain: cover
    entity_id: cover.shelly_123
    type: set_position
    position: 88
  mode: single
- id: '1650289817193'
  alias: Rollo Stop
  description: 'Stop the shutter on current position'
  trigger:
  - platform: webhook
    webhook_id: rollo-stop-111
  condition: []
  action:
  - device_id: AAAAA
    domain: cover
    entity_id: cover.shelly_123
    type: set_position
  mode: single

Maybe there is an “type” beside “set_position” to stop the currently moving action?

1 post - 1 participant

Read full topic

How to Login to Home Assistant Windows Portable

$
0
0

Sorry but I am a total Newbie to Home Assistant. I am an Insteon user and trying to use Home assistant to use and integrate my devices. I installed HA Windows Portable on my Windows 10 PC, created an account and logged in and was successful connecting to my old hub and a number of devices. I logged out and bookmarked the login page in my Firefox Browser yesterday. Today I when I clicked on the bookmark all i got was a page showing initializing and then an unable to connect error. I re ran the CMD prompt installation to get to the create an account screen and put in the same user name and password as I did yesterday but nothing was retained so I had to start over. Why was I not able to login from my bookmark and why wasn’t my account info not retained?

1 post - 1 participant

Read full topic

Audio from picture elements card?

$
0
0

I want to stream live video and audio on my dashboard page. Is there a config to unmute the audio? I can hear the audio from more info or when viewing the entity directly.

Or, maybe there is another way to stream video with the audio from the dashboard (without having to interact with it)?

Thanks

1 post - 1 participant

Read full topic

Device State based on Sun and Time Conditions

$
0
0

I would like a specific device turned off if the following conditions are met…

A) 10 mins after Sunset
B) Before 11:30 PM

It will not fire with the below code…

action:
  - choose:
      - conditions:
          - condition: sun
            before: sunrise
            after: sunset
            after_offset: '+00:10'
          - condition: time
            before: '23:30:00'
            weekday:
              - mon
              - tue
              - wed
              - thu
              - fri
              - sat
              - sun
            after: '16:00:00'
        sequence:
          - type: turn_on
            device_id: 8e020108f0f9a30ec6e30d6d16c53698
            entity_id: switch.study_light
            domain: switch
    default: []

Although the other 2 Actions in the below Automation fire, I cannot get the above Action w/ Conditions (first Action in Automation) to fire in it.

alias: Computer - Status-Locked
description: ''
trigger:
  - platform: mqtt
    topic: iotlink/home/haf922/windows-monitor/status
    payload: SessionLock
    value_template: '{{ states.sensor.my_computer_session_status.state }}'
condition: []
action:
  - choose:
      - conditions:
          - condition: sun
            before: sunrise
            after: sunset
            after_offset: '+00:10'
          - condition: time
            before: '23:30:00'
            weekday:
              - mon
              - tue
              - wed
              - thu
              - fri
              - sat
              - sun
            after: '16:00:00'
        sequence:
          - type: turn_on
            device_id: 8e020108f0f9a30ec6e30d6d16c53698
            entity_id: switch.study_light
            domain: switch
    default: []
  - type: turn_off
    device_id: 49dc7efaec0941a1a9a0470e8424c3f7
    entity_id: light.office_desk_lamp
    domain: light
  - service: rest_command.computer_locked
    data: {}
mode: single

2 posts - 2 participants

Read full topic

Cannot get button card to return entity name, image, or url

$
0
0

I have been trying to integrate Spotify into custom button cards and I can’t figure out why some of the cards can’t -’[[[ return value(‘sensor.attributes.name’) ]]]’ - . The sensors were setup through Node-red. I am fairly new to HA and very new to node-red, any help is appreciated. Thank you!

1 post - 1 participant

Read full topic


Sonoff Zigbee Device has no history of battery level

$
0
0

Hi,

I have few Sonoff Zigbee devices connected to Home Assistant via Sonoff Zigbee 3.0 USB dongle plus. Some of them were used more than a year, but battery level is still showing 100%. So I took a look at history data of the battery indicator entity and find some have history data, other don’t have at all.

  1. I have 4 Zigbee Buttons SNZB-01, 3 of them has history data, one of them simply shows “No state history found.”.
  2. One temp and humidity sensor SNZB-02 has no history data for battery level indicator, showing “No state history found.”
  3. Both my door sensor (SNZB-04) and Motion sensor (SNZB-03) has history data.

All my Zigbee devices are working as expected, except two Zigbee buttons have unstable connection and power consumption issues.

I am quite confused why some devices have history data, others don’t, even among the same type of devices. like buttons.

I am using HA core version 2022.3.3 and OS version 7.4. running on Raspberry PI 4. I am also using Zigbee Home Automation integration to connect Zigbee devices. The Sonoff Coordinator shows the information “CC1352/CC2652, Z-Stack 3.30+ (build 20210708)”.

if anyone has experience on Sonoff Zigbee devices, please help.

Thank you for your help in advance.

Henry Yuan.

1 post - 1 participant

Read full topic

Mqtt as a test in the action

$
0
0

using this input_boolean

input_boolean:
  shop_lock:
    name: 'Shop is Lock'

There are a lot of examples of using MQTT as a trigger. I have a button that action is “single”, “double”, and “long”.
This one will turn on the boolean.

automation:
  - alias: Shop Lock From Click
    id: Shop Lock From Click
    trigger:
    - platform: mqtt
      topic: "zigbee2mqtt/0x00xxxxx"
    condition:
      - condition: template
        value_template: "{{ trigger.payload_json['action'] == 'single' }}"
    action:
    - service: input_boolean.turn_on
      entity_id: input_boolean.shop_lock

What I would like is some sort of combination of single and double
For example, a ‘single’ a ‘double’ then a ‘single’
How do you get it to read mqtt in a wait_template?
I am guessing I need a different way, since I guessing the json is loaded off of the first trigger.

automation:
  - alias: Shop Lock From Click
    id: Shop Lock From Click
    trigger:
    - platform: mqtt
      topic: "zigbee2mqtt/0x00124xxxxxx"
    condition:
      - condition: template
        value_template: "{{ trigger.payload_json['action'] == 'single' }}"
    action:
    - wait_template: "{{ trigger.payload_json['action'] == 'double' }}"
      timeout: 
        seconds: 5
      continue_on_timeout: false
    - wait_template: "{{ trigger.payload_json['action'] == 'single' }}"
      timeout: 
        seconds: 5
      continue_on_timeout: false
    - service: input_boolean.turn_on
      entity_id: input_boolean.shop_lock

1 post - 1 participant

Read full topic

Template help temperature error

$
0
0

Hi

I am trying to get this template working, however it is not for some reason.

I have checked if the weather.dark_sky has the temperature attribute and it does. Here is my template:

          Today it will be {{state_attr('weather.dark_sky',
          'forecast')['condition']}}. You should wear   {% if
          state_attr('weather.dark_sky', 'forecast')['temperature'] > 20 -%}
          {%- endif %}
            flipflop

and the error:

UndefinedError: 'list object' has no attribute 'temperature'

Any idea?

1 post - 1 participant

Read full topic

Temperature sensor, smart plug & oven. Not turning on/off with temperature

$
0
0

Hi!

I have installed HA OS in a VM and its working fine. It has found my devices from philips hue, and some others.

I am trying to get a temperature sensor from Philips, to control a smart plug (which has an oven connected to the smart plug).

I am unable to get it to trigger automatically. I have made this automation, just to test the setup.

alias: Ovn Stue Av
description: Slå av ovn i stue over gitt temperatur.
trigger:
  - type: temperature
    platform: device
    device_id: 2941d140e8b5497d05bb51af2c86dc6b
    entity_id: sensor.hue_motion_sensor_2_temperature
    domain: sensor
    above: 22
condition:
  - type: is_temperature
    condition: device
    device_id: 2941d140e8b5497d05bb51af2c86dc6b
    entity_id: sensor.hue_motion_sensor_2_temperature
    domain: sensor
    above: 22
action:
  - type: turn_off
    device_id: 87bbde2ea635327b35a9e36f3182cc48
    entity_id: light.ovn_stue
    domain: light
mode: single

What I do now to test is the following:

  1. Turn on the oven in the living room manually.
  2. Check manually the temperature from sensor.hue_motion_sensor_2_temperature and its below 22.
  3. I am running the automation automatically, and as far as I understand it should NOT turn the oven off because the temperature is below 22. But it turns it off when I run it manually.

I run it manually, because it doesnt seem to do it by itself? What am I missing?

Apprechiate any advice, or pointers to where I can find out how to this simple setup. I have tried watching some youtube videos, and reading the documentation. Someone talks about trying the “Generic Thermostat” addon? but I cant find that anywhere?

1 post - 1 participant

Read full topic

Newer template sensor config type with split config

$
0
0

I’m attempting to adhere to standards and leverage the newer standard for template sensors.

I leverage a split config where I have a sensors.yaml file.

Typically I would add a template sensor like this which works.

- platform: template
    sensors:
      speedtest_download_rounded:
        friendly_name: Speed Test Download Rounded
        unique_id: sensor.speedtest_download_rounded
        value_template: '{{ states("sensor.speedtest_download") | round(0) }}'

Attempting to leverage the new standard I have this:

- template:
      - sensor:
          - name: "Runtime Remaining"
            state: "{{ states('input_text.sprinkler_qr_timer_zone1') }}"

But this format fails with error:
Invalid config for [sensor]: required key not provided @ data[‘platform’]. Got None.

I’m sure this is simple but I have yet to figure it out with the new formatting.

1 post - 1 participant

Read full topic

Tracking down phantom light signals

$
0
0

I’m hoping someone here might have an idea of where to look on this: I have a single Hue light bulb that seems to turn on via the cloud without any obvious automations, scripts, or other easily trackable reasons. Here’s what I’ve done to troubleshoot this:

  • Removed almost all automations (GUI and YAML), including everything that had lights in them
  • Removed almost all scripts, except for a single script to turn off all lights in the home
  • Removed almost all scenes, except for the ones that Hue has inserted (these aren’t avail to delete)
  • Removed the troublesome light from all Node-Red flows

Still, the issue persists. I’m not sure where else I can look to find the source. Just to get in front of other questions, here’s my setup:

  • Intel NUC system
  • Proxmox PVE with HAOS virtualized
  • Zigbee and Zwave support (Conbee and Aotec sticks)
  • Philips Hue bridge add-on for Hue bulbs and Hue motion sensors
  • Home Assistant mobile app installed on Google Pixel 6 Pro
  • Node-Red add-on for almost all automations
  • Nabu Casa paid account for HA Remote support

Any guesses of where else to go looking on this issue?

1 post - 1 participant

Read full topic

RTSP stream 'Invalid data found when processing input' from IP camera

$
0
0

I have a cheap IP camera that I’m trying to configure to view in Home Assistant. I can view the RTSP stream fine using VLC with the URL rtsp://username:password@192.168.X.X:554, but trying to use this with the “Generic Camera” integration fails, with this error in the logs:

  File "av/container/core.pyx", line 401, in av.container.core.open
  File "av/container/core.pyx", line 272, in av.container.core.Container.__cinit__
  File "av/container/core.pyx", line 292, in av.container.core.Container.err_check
  File "av/error.pyx", line 336, in av.error.err_check
av.error.InvalidDataError: [Errno 1094995529] Invalid data found when processing input: 'rtsp://username:password@192.168.X.X:554'

I’ve tried both TCP and UDP, both of which produce the same error.

I think ffmpeg is not handling the stream correctly, when it recieves an empty packet. As if I run ffmpeg on the command line:
ffplay -rtsp_transport tcp -i rtsp://username:password@192.168.X.X:554 -v 9 -loglevel 99
I get the same error, which seems to happen immediately after an empty line='' response:

[rtsp @ 000001bcf497c400] line='Cache-Control: private'
[rtsp @ 000001bcf497c400] ret=1 c=78 [x]
[rtsp @ 000001bcf497c400] ret=1 c=2d [-]
[rtsp @ 000001bcf497c400] ret=1 c=44 [D]
[rtsp @ 000001bcf497c400] ret=1 c=79 [y]
[rtsp @ 000001bcf497c400] ret=1 c=6e [n]
[rtsp @ 000001bcf497c400] ret=1 c=61 [a]
[rtsp @ 000001bcf497c400] ret=1 c=6d [m]
[rtsp @ 000001bcf497c400] ret=1 c=69 [i]
[rtsp @ 000001bcf497c400] ret=1 c=63 [c]
[rtsp @ 000001bcf497c400] ret=1 c=2d [-]
[rtsp @ 000001bcf497c400] ret=1 c=52 [R]
[rtsp @ 000001bcf497c400] ret=1 c=61 [a]
[rtsp @ 000001bcf497c400] ret=1 c=74 [t]
[rtsp @ 000001bcf497c400] ret=1 c=65 [e]q=    0KB sq=    0B f=0/0
[rtsp @ 000001bcf497c400] ret=1 c=3a [:]
[rtsp @ 000001bcf497c400] ret=1 c=20 [ ]
[rtsp @ 000001bcf497c400] ret=1 c=31 [1]
]rtsp @ 000001bcf497c400] ret=1 c=0d [
[rtsp @ 000001bcf497c400] ret=1 c=0a [
]
[rtsp @ 000001bcf497c400] line='x-Dynamic-Rate: 1'
]rtsp @ 000001bcf497c400] ret=1 c=0d [
[rtsp @ 000001bcf497c400] ret=1 c=0a [
]
[rtsp @ 000001bcf497c400] line=''
rtsp://username:password@192.168.X.X:554: Invalid data found when processing input

(also tried using UDP, same issue)

I’ve tried searching for similar issues with ffmpeg, and there are a lot of topics about this (from several years ago…) but no solutions or workarounds. They also seem to be triggered by something different (in other posts the response from the camera was missing UDP or TCP in the Transport message, but I don’t think that is the case here as I can see it in earlier logs (haven’t included those here because otherwise logs would be too long).

Is there any way around this issue? Perhaps somehow use VLC (or similar) instead of ffmpeg to handle the streams? (as long as they can be displayed in the dashboard it does not matter).

Any help will be greatly appreciated :slight_smile:

1 post - 1 participant

Read full topic


Question - automating roller blinds based on light level

$
0
0

Hi,

I have been running HA for about 4 months now and, wow, the world has come a long way since I played with Z-Wave over a decade ago!

I currently have open / close routines configured based on time of day but would like to up my game and use the current level of brightness factor into the decision making logic. Given that I already have HUE integrated and working well, I intend to use the “Illuminance” value as a trigger to open or close the blinds.

I’m looking for guidance as to how to have an event triggered (such as too bright, close the blinds OR too dark, open the blinds) but not too have this happen to frequently. Is there a way to lock out an automation from being triggered for a set duration?

1 post - 1 participant

Read full topic

Wireguard - client has connection, but HA hosted on client in Docker - seems not

$
0
0

Hi everyone.
I’ve just setup wireguard on my main HA instance which is home assistant operating system and this acts as wireguard server. I’ve added three peers - first is my mobile phone, second is my laptop and the third is another HA instance which i plan to move to another place, but now i’m testing it. It’s installed at hp t630 in docker. While all of the peers have internet connection, working fine and can reach other peers, HA on docker seems like have no connection with the internet - cannot update or install integrations, hacs and so on. But outside the Docker for example ping is working. What am i missing?

Best regards!

1 post - 1 participant

Read full topic

Omitting trigger.event.data attributes if they do not exist

$
0
0

Hi,

I’m currently trying to build a Rhasspy activated timer using (hopefully) just a single automation. The code currently looks like this:

- alias: Rhasspy Set Timer
  trigger:
    platform: event
    event_type: rhasspy_SetTimer
  action:
    service: timer.start
    data:
      entity_id: timer.timer
      duration: >
        0{{ trigger.event.data.hours }}:{{ trigger.event.data.minutes }}:{{ trigger.event.data.seconds }}

This works, but only if all three attributes have values in them. (eg. “Set timer for 1 hour, 15 minutes and 20 seconds.”) But of course when one or two of these values are not mentioned, the whole thing breaks. I have tried some solutions, but using “trigger.event.data” seems to be really tricky.

Any ideas for a solution here? Thanks.

1 post - 1 participant

Read full topic

Template as image URL in picture elements card

$
0
0

I’m trying to use the state of this sensor,

{{states('sensor.jewish_calendar_day_of_the_omer')}}

to show different images depend on this picture elements card.

It doesn’t seem to work, even though in developer tools the template renders as expected. Does anyone know why?

1 post - 1 participant

Read full topic

ZHA creates "no name group 0x*"

$
0
0

Hello all,

for a few days now I have been having more and more problems with the connectivity of various devices. Especially with the connection of the IKEA roller blinds despite the repeater.

I clicked through the menus of ZHA and wondered about the “No name Groups” in the group overview.

I’m pretty sure there used to be only one here. It was already unclear to me why. According to the overview, only the ConBee II Stick is a member of this group. A colleague of mine started the integration for the first time today. His group has a name “Default Lightlink Group”.

Now my question:
What is the problem with the groups?
Can this be removed? Why no name?

I would like to understand if it is related to my problem.

Many thanks in advance
Schmandre

1 post - 1 participant

Read full topic

Viewing all 106299 articles
Browse latest View live