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

ZHA zigbee device connect event?

$
0
0

Hi!

I have this automation which works on my Zigbee bulbs.
when I turn on/off the lamp from HA or when I turn off/on the lamp from
physical button IF the lamp is lit.

If I turn of the lamp via HA, then power it off then on via physical switch it does not turn on again.
So state_changed is not fired when the device reconnects to my Zigbee network

I cant seem to find any other event trigger, is there any “zigbee device avalible” event? Or something that can force my bulb to ON if it was OFF when it went “offline”

- id: livarno_colorreset
  alias: Livarno RGB Reset Color
  trigger:
    - platform: state
      entity_id:
        - light.livarnolux_rgb_01
        - light.livarnolux_rgb_02
        - light.livarnolux_rgb_03
        - light.livarnolux_rgb_04
      to: "on"
  action:
    - service: light.turn_on
      data:
        entity_id: "{{ trigger.entity_id }}"
        brightness_pct: 80 
        kelvin: 3000

1 post - 1 participant

Read full topic


How to config check blueprints?

$
0
0

When writing a blueprint I noticed that HA config check passes even if I have a completely invalid blueprint in my blueprint folder. I did find that if the blueprint you’re writing has invalid syntax then it shows up with an error in the blueprints configuration menu but like this is pretty hard to read:

Is there another way to see this error message in full like you can with a normal config check failure? Or does the CLI have a way to specifically check a blueprint or all your blueprints from there?

3 posts - 2 participants

Read full topic

Add zhaquirks in config/custom_component folder

$
0
0

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

1 post - 1 participant

Read full topic

Is this screen compatible with home assistant

Using targets as conditions?

$
0
0

Hi all, thanks for the awesome new feature. One question I am struggling with is designing a blue print that checks a condition based on a target.
Simplified below, something along the lines of

  input:
    light_target:
      name: Light
      selector:
        target:
          entity:
            domain: light
...
condition:
  - condition: state
    target: !input light_target
    state: "on"
...
action:
  - service: light.turn_off
    target: !input light_target

I suppose this fails because conditions cannot be contain targets, is this correct? or am I missing something. I suppose I can specify the target to be a light, but would like to incorporate the slick new target selector if I can.

Thanks!

3 posts - 2 participants

Read full topic

New Devices on Fibaro HC2

$
0
0

Hi

I’m using my Fibaro HC2 as a z-wave controller only having moved all my automations to HAS and have added two new devices, but they have not appeared on the HAS side as entities.

Is there a way to get HAS to auto discover them or do I need to manually add them to my configuration ?

Thanks

1 post - 1 participant

Read full topic

Tradfri lights wrong status?

$
0
0

Hi Community,

I’ve a question about IKEA Tradfri light buibs

I’ve a simple setup
HA docker running on RPI3A
Deconz in docker
Philips Hue lightbulbs

Till now I only used Philips Hue lightbulbs (White and White Ambient) and never really had any issues (other than the odd bulb flashing after being switched on from switch).

I decided to stray away from Philips Hue to IKEA Tradfri as their E14 and GU55 bulbs are half the price of their hue equivalents and they are on the Deconz compatibility list.

This is where my issues have started.

All Tradfri bulbs work fine until they are switched off at the switch. Then instead of their “status = unavailable” they report the last bulb status (on or off) to both Deconz and HA.

If their status is wrong this pretty much renders their use in home automations useless !! (imho) and is also annoying when you go to bed and HA says you’ve left a light on (when you haven’t).

I’ve also noted that if you add Hue and Tradfri bulbs to the same light group in HA this will also cause the Hue bulbs to also report the same status as a Tradfri bulb (not only the light group but the individual build itself) instead of saying Unavailable as they have up until now.

I’ve seen many posts in this and other threads re. the Tradfri bulbs acting like this as if it is normal behaviour for these bulbs which I find surprising.
e.g.

Is this really the case ? and do you have to figure out how to detect if these bulbs are unavailable instead of on/off ??

If that’s the case I will stop using them !!

4 posts - 2 participants

Read full topic

Embed javascript


Doods - "Error while processing state changed"

$
0
0

I have Doods configured but when it’s called by my automation or even when I call it directly from the “developer tools” I get this error in the logs

Logger: homeassistant.helpers.event
Source: helpers/condition.py:232
First occurred: 1:45:00 PM (3 occurrences)
Last logged: 1:46:01 PM

Error while processing state changed for image_processing.doods_camera_solarium
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 257, in _async_state_change_dispatcher
    hass.async_run_hass_job(job, event)
  File "/usr/src/homeassistant/homeassistant/core.py", line 433, in async_run_hass_job
    hassjob.target(*args)
  File "/usr/src/homeassistant/homeassistant/components/homeassistant/triggers/numeric_state.py", line 130, in state_automation_listener
    matching = check_numeric_state(entity_id, from_s, to_s)
  File "/usr/src/homeassistant/homeassistant/components/homeassistant/triggers/numeric_state.py", line 99, in check_numeric_state
    return condition.async_numeric_state(
  File "/usr/src/homeassistant/homeassistant/helpers/condition.py", line 232, in async_numeric_state
    fvalue = float(value)
TypeError: float() argument must be a string or a number, not 'dict'

Here is my configuration

- platform: doods
  url: "http://192.168.XX.XX:8080"
  detector: default
  scan_interval: 10000
  source:
    - entity_id: camera.camera_solarium
  file_out:
    - "/config/www/cameras/{{ camera_entity.split('.')[1] }}_latest.jpg"
    - "/config/www/cameras/{{ camera_entity.split('.')[1] }}_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg"
  labels:
    - name: dog
      confidence: 50
      area:
        top: 0.2
        right: 0.2
        left: 0.2
        bottom: 0.2
        covers: true

And here is my automation analyzing the results of the image processing and sending me a notification if something matches

alias: Send Notification when motion is detected
description: ''
trigger:
  - platform: numeric_state
    entity_id: image_processing.doods_camera_solarium
    above: '0'
    attribute: matches
condition: []
action:
  - service: notify.mobile_app_iphone
    data:
      message: Motion detected at the back yard
      title: Solarium Motion
      data:
        photo:
          - file: /config/www/cameras/camera_solarium_latest.jpg
        caption: Camera Solarium
mode: single

What am I doing wrong?

1 post - 1 participant

Read full topic

Hue lights present but cannot be controlled, no error messages

$
0
0

Philips Hue is my nemesis lately. After fighting through an issue with it creating “phantom” devices in Amazon Alexa that didn’t really exist, I’m onto the latest issue, which is that I cannot control my Hue devices from Home Assistant.

The devices are present in HA (I just have two light bulbs and two Hue remotes right now), but their status and controls are disabled/grayed out (e.g. I can’t click on the toggle to turn it on/off). There’s no error message about Hue in the logs.

I removed the Hue integration, then re-added it…no effect. The devices disappeared when the integration was removed, as expected, and re-appeared after the integration was re-installed, but I still can’t see their status or control them. Any ideas?

2 posts - 2 participants

Read full topic

Alexa Media player MP3

$
0
0

I’m working on setting up an alarm. I have it all working put can not get the audio alarm sound to play on my Alex Eco. th is the code I’m using;
‘- service: media_player.play_media
data:
entity_id: media_player.everywhere
media_content_id: ttp://192.168.1.205:8123/local/siren.mp3’
media_content_type: ‘music’ ’
Any idea what I have wrong?
Thx

2 posts - 2 participants

Read full topic

Tesla Component Disappearing

$
0
0

My Tesla component becomes unresponsive all the time. If I remove the integration, then re-add it, it will come back. But the cycle continues.
Anybody have any luck with fixing this?

DK

1 post - 1 participant

Read full topic

Automation no Trigger

$
0
0

Hello,

after hours of trying to find a solution for my automation not triggering and reading a lot of topics, i am almost quitting. I did set up an automation via the webinterface and just, for testing, wanted to switch on my shelly if an MQTT-Topic is “1”. The Trigger isn’t working and i cant find the a solution. I checked my log but there are no triggered automations listed. I also checked under dev-tools–>states, if the automation is active.

alias: Test
description: ‘’
trigger:

  • platform: state
    entity_id: switch.lichthandtuer
    to: ‘1’
    condition:
  • condition: state
    entity_id: switch.lichthandtuer
    state: ‘1’
    action:
  • type: turn_on
    device_id: 6b2ff7e743720414a4e1aa6db25e5de3
    entity_id: switch.shellylichttuer
    domain: switch
    mode: single

The Problem is not that the switch-command, i have tested it by manually triggering the automation. But the Automation Trigger does not fire. :frowning:

Please Help, i have no idea, what to check. The log says switch.lichthandtuer is switched on but the automation does not trigger.

Thank You

Martin

1 post - 1 participant

Read full topic

Nuki lock and automation HELP

$
0
0

Hi, i have a nuki lock who I can see in de home GUI. Now I want too make a automation, dat every evening @ 10PM the lock goes te lock en open @ 8AM in morning again. When I’m in automation gui and I want too make this automation I can only add een device and not a identity, sinds my lock is only a identity I can select it. I hope you can help me with a solutions too this problem. Thanks in advance!

1 post - 1 participant

Read full topic

Naming multiple lights in one room

$
0
0

Hi Guys,
What’s the best way to name your multiple Lights in one room for HA & google Home ?
For example I have the master Bedroom : 1x Main light and two separate bedside Lamps. The main light is the Sonoff T3 and the two Bedside Lamps have Sonoff Basic connected separately.
Some suggestions in the naming of these light’s so that google home does not get confused when you give an instruction on the Master bedroom lights.
Like to see what your naming of lights that does not cause confusion.

Thanks

1 post - 1 participant

Read full topic


ZHA - Zigbeegroup wrong light status in HA

$
0
0

Hi,

Before i start explaining my small issue, I searched the forum and I did found similar issues but the topics were old or the setup was slightly different ( using deconz ). So i decided maybe it is better to start a new topic.

I have 6 Ikea tradfri lights combined in a zigbee group using ZHA. The issue is, when i turn on or off the zigbee group not all lights in home assistant are updated correctly. For example when i want to turn off all the lights then I press the button and all lights are off however in home assistant 1 or 2 lights most of the times are still on which results that the zigbee light group according to home assistant is still on but the physical lights are off. When i press the button again then it will send the off signal again and then the full group in home assistant is off.

So that means that i often have to press the button twice to turn on or off the lights which is not a big issue but just annoying.

It happens from within home assistant and also when using the Ikea 5 button remote ( currently using frencks blueprint ) calling the ZHA group.

I tried to recreate the group but that did not really help.

All the lights are in the same room so i need to group them to have them switch on / off at the same time.

I’m using a conbee2 stick with the latest firmware and home assistant is running on a Raspberry PI 3

As the lights are responding really fast on button press. timeout seems to be unlikely but i don’t have debug logs to proof it.

Assuming this is not a bug, any ideas what else i can try to fix it?

1 post - 1 participant

Read full topic

Auto populate card based on MQTT announce responses

$
0
0

I have a bunch of Shellies in my system, all configured to use their native MQTT. All my Shellies are in my NoT network so they do not have access to anything (LAN or WAN) except my MQTT broker. What I want to do is have a card that lets me easily update and access each Shelly’s web interface.

What I want to do is post announce to shellies/command. All my Shellies will respond with their IP address, model id, etc. With that I can create a link for its web interface as well as an update command following the pattern returned by http://archive.shelly-faq.de. I have all firmwares stored on a local web server so Shellies can update without access to the internet.

Right now, I manually build a web page, but that’s a pain. I want to do it all directly in HA. I see there is a filter entity card, but that works by entity type. I want to build based on every device that response to an MQTT announce command.

1 post - 1 participant

Read full topic

I found this the other day

Wanting to use Home Assistant to train my German Shepherd

$
0
0

I would like to use Home Assistant to teach and train my dog things. My first project I would like to do is to teach him that he can only have one toy out at a time from his toy basket.

To do this; I am going to attach such a sensor (**) that is proximity based that will be reporting into a ‘receiver platform’ that Home Assistant will be tracking. Any time that a toy (containing the concealed sensor) is removed from the basket (exceeds a footage threshold away from the receiver), Home Assistant will trigger a nearby buzzer to sound.

I will of course then be showing him to drop a toy that he has out back into the basket, and the buzzer will no longer go off; so buzzers are a bad thing to hear, Pavlov!)

(**) - What my question of this post is; is does anyone know if there is some sort of a radio / etc sensor solution that will accomplish this goal that essentially reads distance without needing line of sight? I would prefer to be able to connect multiple sensors to one receiving unit. It of course would have to be small enough to be able to be concealed within most toys.

1 post - 1 participant

Read full topic

deCONZ sensors and switches don't work (don't change state)

$
0
0

Hello.

I have a problem witch my aqara motion sensors and remote switches.
They are discovered by the deconz-integration, i have set up some automations and everything worked very well!
Than i restarted the raspberry where the conbee II is connected to, that’s running deconz.
It is another pi than that one i run home assistant on…
Everything seems okay, but nothing worked any more.
I have deleted the deconz-integration and readded it, it discovers everything right, but nothing works.
When I get in range of a sensor, and push the “neu laden” button in the ha gui on the deconz-integration, the sensor state in ha switches but don’t update any more. Only if i push the button to reload the integration, the sensors change state on start and stop working…
Any ideas how i can solve this problem?

1 post - 1 participant

Read full topic

Viewing all 106623 articles
Browse latest View live


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