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

Android IP webcam and motion detection - best way to capture motion

$
0
0

I have an android phone with IP webcam installed. The app reports the motion sensor status (1…1000) and the binary motion sensor (on/off) status. Now, when it detects motion, I want HA to send a photo to hangouts. So I added required automation and it all seems working except it seems taking a photo too late, in most cases the object (a cat) is gone.

I wonder what is the best practice to solve the problem, in particular:

  1. what sensor (binary or motion) to use for a trigger?
  2. is there a way to minimize latency? The non binary sensor seems updating with a delay, I am not ever sure if it is HA polling it or the IP webcam sends an event when detects motion, is there a way to know this for sure?

thanks,

1 post - 1 participant

Read full topic


Problem booting if I enable http section

$
0
0

A few releases before I had to comment http section in configuration.yaml because if enabled Homeassitant did not work.
I have updated to last version and I wanted to enable again http section beacause I need it for accesing remotely using https.
If I enable it and reboot, then Homeassistant does not start and I have to connect using ssh for deleting http section.
Is anybody actually using http section ?
thanks

2 posts - 2 participants

Read full topic

Home Assistant Cast rotate screen?

Door Bell Magnetic Sensor

$
0
0

Hi guys,

Looking for a bit of assistance. I have an aqara magnetic door sensor that I am using to detect the magnetic field in my door bell. When I press the door bell the sensor detects it and goes to closed. However it does not re open. I guess its cause its so fast. If i measure the resistance across the reed switch its open circuit so its not that its stuck closed. The aqara sensor is thru deconz. Is there any way I can reset the sensor after trigger?

Edit: If I then use the normal magnet to trigger it after its stuck it goes back to open. Its got to be an issue with the electronics in the sensor

Thanks

1 post - 1 participant

Read full topic

deConz events doesn't always apear in Home Assistant

$
0
0

I’m struggling with my ConBee dongle in Home Assistant… I’ve set up an automation in Home Assistant that turns on some lights on a button press. Its working fine, when it works, but sometimes, 1 out of 5 times, it just doesn’t trigger.

I looked into it and at first i thought it was the automation which was not being triggered. But then i went into the events tab in developer tools to listen for the button presses, and i noticed that not always the button press would trigger an event in Home Assistant.

I’ve tried numerous things and now i don’t know what to do anymore. I have tried different extension cords for the ConBee dongle. I’ve tried moving it all to a Synology DS918+ (plenty of power i believe), I’ve tried changing wifi channels on my local wifi to make sure there is no interference with the zigbee network. I’ve also checked the deconz integration through VNC and saw that the network was all green. There is no more than a few meters between each connected bulb, and when i do try out the remote, the dongle is right beside it. Really doesn’t matter where it is located its the same behavior. I’ve ofcourse also tried other remotes… Same result

What more can i do ?

1 post - 1 participant

Read full topic

OSRAM AB32840 - cannot automatically change the color_temp

$
0
0

Hello,

Hardware and software:
-Rp pi 4 2GB
-CC2531
-OSRAM AB32840 https://www.zigbee2mqtt.io/devices/AB32840.html
-Home Assistant 0.109.3

Problem:
-I can change color_temp of my osram bulbs by using slider in lovelace
-I can’t change color_temp by automation - in the interface I can chose brightness; when I manually edit the code and use something like:

type: turn_on
device_id: 5622942752234931bbb8c96bc5b4e26d
entity_id: light.0x7cb03eaa00a9841f_light
color_temp: 300
domain: light

i get: Message malformed: Integration ‘’ not found.

-also I think my flux isn’t working (not any change in light behavior, ofc I restarted hassio, but I did’t yet tested changing the optional parameters), code in: configuration.yaml:

switch:
  - platform: flux
    lights:
      - light.0x7cb03eaa00aa87d2_light
      - light.0x7cb03eaa00aa4628_light
      - light.0x7cb03eaa00a9841f_light

I will appreciate any help :slight_smile:

1 post - 1 participant

Read full topic

Start heating panel, maintain temperature on demand

$
0
0

Continuing the discussion from Turn on device based on workday, time and temperature:

I’d like to know which will be the best approach to trigger that automation outside the workdays or scheduled time. For instance, I want to switch the heating panel ON on Saturday and keep the temperature at 21.5 while that (automation?) is running.

1 post - 1 participant

Read full topic

Attempting Homekit presence detection unsuccessfully via Traefik 2

$
0
0

I have been using presence detection automation via a binary sensor (Homekit, iOS app, and router based) when my wife and I are home and away. Homekit runs two automations, an input_boolean for when it senses we leave and the other when we arrive, the hass automation depends on the status of that switch. The main use is turning on lights and unlocking a zwave lock when we arrive home, and to lock/turn off lights when we leave.

I have began using a traefik 2 configuration to access my home assistant setup while away, and it works great, except, upon using this method, I have lost the ability to depend on the homekit functionality. Traefik cannot use Home Assistant in host mode, which breaks the Homekit functionality. (as well as the emulated hue). So long story short, I am looking for an alternative to Homekit to tell the input_boolean config to make the switch once the status of our presence changes.

My initial thoughts were that I have an mosquitto MQTT instance installed in my docker setup on the same machine, and I was wondering if its possible to expose that instance through Traefik, and then connect to Owntracks to mimic the functionality I had with Homekit for this singular purpose? Or am I making it overly complicated and there is a simpler way of fixing the Homekit and traefik interaction?

My whole setup is on the one machine in containers via docker-compose.

1 post - 1 participant

Read full topic


Sensing when someone enters a room - small z-wave?

$
0
0

I’m looking for a small, inconspicuous sensor that will detect when someone enters a room…which I can use to trigger some action. I could probably do this with a beam of light across the door (although I haven’t looked to see what’s available…but I’d rather have a proximity sensor of some sort.

Any thoughts?

1 post - 1 participant

Read full topic

French newbie completely lost with Zwave

$
0
0

Hello everyone,

I am completely lost with Zwave :’(
I recently purchased an Aeotec Z-Stick Gen5 for my Home Assistance installation (i’m currently running version 0.110.1). I was able to add the Zwave integration after taking care to note the correct USB path in the hardware information. I didn’t make any particular configuration afterwards and I didn’t touch my configuration.yaml file.

I added a few days ago a Qubino ZMNHJD1 relay without any difficulty to drive a radiator. Everything works perfectly.

Today, I’m desperately trying to drive my garage door with a Qubino ZMNHND1 “dry contact” relay. The integration went well (adding a secured node) but quickly the node went “dead” and since then I couldn’t do anything… I tried to reboot the Zwave network, fix it, etc…

Afterwards, I thought that I might have made a mistake by adding a secure node without first defining a secure network key… To be honest, I don’t remember having done it when I inserted my Aeotec key for the first time (but maybe the secure key is generated automatically?).
So I tried to generate a key that I added in my configuration file. Then, it was worst than before… and I was not able anymore to control my Qubino ZMNHJD1 relay, so I removed the zwave/network key from the configuration.yaml.

Here is what I can see in the Zwave configuration, in the entities and in the log. It seems in the configuration that my Node04 (which was my Qubino ZMNHND1 relay before going dead) has been “splitted” in two parts. I’m completely lost and I have no clue on what to do now. Can you please help me to fix that?

zwave_config1

In addition, we can see in the entity that it was “up” at the beginning, then “dead” and now “unavailable”. Sorry for the screenshot in french.

zwave_dead

Thank you very much!

1 post - 1 participant

Read full topic

Automation help - two triggers in succession but not simultaneous

$
0
0

Hi all,

Bit of automation logic help please and i’m not sure how to construct the logic. The idea is having two triggers happening within a short period of time…

Available sensors:
Alarm on/off as binary sensor: alarmarmed (true/false)
Garage Side Door contact as binary sensor: garagesidedoor (true/false)

I drive into my garage, disarm the alarm and leave through a side door via the garden to the house. I would like to run an ‘arriving home via garage’ script when this happens.

The logic is basically if alarmarmed is changed from false to true then if garagesidedoor subsequently changes from false/true within, say, 5 minutes then assume i am arriving home and run a script.

Hopefully makes sense and thanks in advance.

1 post - 1 participant

Read full topic

MQTT discovery startup automation to gather tasmota device states

$
0
0

Hello,

I noticed that in the docs, MQTT discovery does not save states for devices between reboots.

The embedded MQTT broker does not save any messages between restarts. If you use the embedded MQTT broker you have to send the MQTT discovery messages after every Home Assistant restart for the devices to show up.

However, after trying a few things, it’s clear to me that I don’t know what you have to send the MQTT discovery messages after every Home Assistant restart means.

Does anyone know of a way to make an automation that will launch at startup that can do this step?

I am using tasmota devices, made from sonoff S31 outlets, and I would like the state to be accurate when I restart HA.

Thanks,

Randy

2 posts - 2 participants

Read full topic

Adding a heater to a TRV

$
0
0

I have several Devolo TRVs and I’d like to have them control the boiler to call for heat when required. I was hoping that adding the boiler switch to the climate entities via customisations would work but it doesn’t seem to do anything. Is this something that’s possible and if not is it something that, if I created a pull request, might get merged into Home Assistant?

1 post - 1 participant

Read full topic

Trigger to:/from: together with for: – Why does it not work with from:?

$
0
0

So I have this best buddy, and we watch our “home” presence, respectively, to know when it’s appropriate to call each other. We’ve set up Home Zones for each other, and monitor those via a status LED. I now introduced TTS alerts, and we found, due to a smartphone’s wildly varying GPS accuracy, we get a lot of “… is at home”/"… is away" messages when crossing the Home Zone boundary.

So I thought we make a simple “for:” 5 minute delay for the “at home” triggers. This works fine for a trigger to: combined with for::

  # Frank presence
  - alias: "Frank zuhause"
    initial_state: True
    trigger:
      - platform: state
        entity_id: person.frank
        to: 'Home Frank & Hedwig'
        # 5 min delay because it flatters at zone boundary
        for: '00:05:00'
    action:
      - service: mqtt.publish
        data_template:
          topic: "weather/1/status/uv"
          payload: 0
          retain: true
      - service: script.audio_alert
        data_template:
          audiofile: "frank-home.mp3"

but not for a trigger from: combined with for::

  # Frank presence in UV light (UV 0=green=present, UV 8=red=absent)
  - alias: "Frank nicht zuhause"
    initial_state: True
    trigger:
      - platform: state
        entity_id: person.frank
        from: 'Home Frank & Hedwig'
        # 5 min delay because it flatters at zone boundary
        for: '00:05:00'
    action:
      - service: mqtt.publish
        data_template:
          topic: "weather/1/status/uv"
          payload: 8
          retain: true
      - service: script.audio_alert
        data_template:
          audiofile: "frank-not-home.mp3"

The error message from config checker is:

Invalid config for [automation]: dependency violation - key "for" requires key "to" to exist @ data['trigger'][0]. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 740). 

The problem is that I can’t simply use to: "not_home" instead, because we both have other zones defined as well, and are only interested in the event that the other one enters/leaves his home zone.

N.B.: If anyone’s interested: We both use Owntracks, and have set up a secure MQTT bridge between our MQTT brokers to share some data we’re both interested in, because we live several hundred kilometers apart. Placing the green/red presence LED into the—currently defunct—UV indicator was just a convenience option.

Any good ideas? Or maybe the devs can consider making from: work with for:?

1 post - 1 participant

Read full topic

Set binary sensor on basis of sensor loop

$
0
0

I am trying to set a binary sensor on the basis of a number of sensors of the same family. I can extract the true/false, but can I set the binary sensor on the basis of an AND of the results.

i.e. if any one of the sensors last mean of is less than 5, the sensor should be true.

{% for device in states.sensor if device.attributes.unit_of_measurement == '°C' 
      and device.attributes['sensor type'] == 'LYWSDCGQ' -%}
   {{ device.attributes['last mean of'] < 5 }}
{% endfor %}

1 post - 1 participant

Read full topic


Is there a way to set a tap action to toggle between two cards?

$
0
0

Example: Horizontal stack with two items, on tap, turns into a vertical stack of two items. Or a stack of icons that expand into an entity list with the labels. And tapping the new card reverts back to the old card.

1 post - 1 participant

Read full topic

Device Tracker Custom State Names

$
0
0

Good day,

I was wondering if there was a way in a Lovelace card, to customize the name of the state? For example, I have my router setup as a device tracker, and instead of a laptop showing home/away, I’d like it to report online/offline.

Any ideas from the gurus?

TIA,
Steven

1 post - 1 participant

Read full topic

/config/zwcfg_XXX.xml keeps resetting itself

$
0
0

It has reset itself twice now in ~6mo. It doesn’t reset when rebooting HA or the server it’s on (or it would’ve reset ~1000 times). I haven’t been able to identify exactly when it resets. Any ideas what might be causing this? Updating HA? Because I have no idea.

This is an issue because I use Inovelli z-wave devices that require specific, custom XML for scenes to work. It would be nice if this was added automatically, but whatever it’s fine if I have to add it every time I add a new switch. Or at least it would be if it would stop randomly resetting.

1 post - 1 participant

Read full topic

Action Grayed out on Automation for Vizio TV

$
0
0

I am having a problem getting automation to work for my two Vizio TVs (Simply turning them off at a certain time of night). They are configured and I can turn them on and off manually from the dashboard. When I attempt to build automation to schedule shut off at a particular time, I get to the Actions section I select action type Device, select my living room tv but the action shows no action and greyed out. This happens for either TV, any suggestions?

1 post - 1 participant

Read full topic

Multi rest sensors not updating

$
0
0

Hello Everyone

I am currently stuck when trying to extract 3 values from the following API: https://aareguru.existenz.ch/v2018/current?city=bern

I am interested in the values “aare.temperature_prec”, “aare.flow” & “bueber.state”, which I would like to have as sensor and the sensors should be updated every 5 minutes.

My configuration looks like this:

sensor:
  - platform: rest
    name: aareguru
    resource: https://aareguru.existenz.ch/v2018/current?city=bern
    json_attributes:
      - aare
      - bueber
    value_template: 'OK'.
    scan_interval: 300


  - platform: template
    sensors:
      aare_temperature:
        friendly_name: Aare Temperature
        entity_id: aare.temp
        value_template: '{{ states.sensor.aareguru.attributes["aare"]["temperature_prec"] }'
        device_class: temperature
        unit_of_measurement: '°C
      aare_flow:
        friendly_name: Aare Flow
        entity_id: aare.flow
        value_template: '{{ states.sensor.aareguru.attributes["aare"]["flow"] }'
        unit_of_measurement: 'm³/s
      aare_bueber:
        friendly_name: Aare Bueber
        entity_id: aare.bueber
        value_template: '{{ states.sensor.aareguru.attributes["bueber"]["state"] }'

The sensors are displayed, but only updated when Home Assistant is started. Nothing happens after that.

Can anyone help me what the issue might be?

1 post - 1 participant

Read full topic

Viewing all 96074 articles
Browse latest View live


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