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

Enable automation when browsing the dashboard

$
0
0

A bit tricky.

My camera is a Dafang running a modified fw. It sort of works using ffmpeg and I got a camera entity in HA.
In my lovelace dashboard I set up a camera card and the image is refreshed every 10 seconds.
But it is completely unreliable.

My idea is to build up an automation that every 10 seconds retrieve an image through the camera web interface that is so much faster. And then I will setup an image card to show that latest still.
The point is that this is meaningless if nobody is looking at the dashboard.
I would like to enable the above automation only when I open my browser and navigate to HA.
Is it possible? Some sort of “heart beat” that Lovelace could trigger on HA?

Thanks for any help!

2 posts - 2 participants

Read full topic


ESPHome + lywsd02 + fast battery drain

$
0
0

I have several Xiaomi Bluetooth LCD sensors connected by ESPHome BLE Tracker and all work perfectly (Thanks OTTO! )with one exception - the xiaomi_lywsd02, this clock discharges the battery in 2 weeks, so I wanted to add an any update interval option to the sensor, but it looks like ESPHome does not support such a possibility.
Did anyone have such a problem with high power consumption of this sensor and managed to solve it?

  - platform: xiaomi_lywsd02
    mac_address: XX:XX:XX:XX:XX:XX
    update_interval: 90s  ----------------------- ERROR!
    temperature:
      name: "Xiaomi  INK Temperature"
    humidity:
      name: "Xiaomi  INK Humidity"

1 post - 1 participant

Read full topic

Notify when light unavaible

$
0
0

Been looking around, but have not found the right solution.

Is there a way to be notified when any light source gets unavailable?

I’m thinking something like a wildcard light.* is unavailable for x amount of minutes, then to notify me either as a persistent notification or via push on mobile app etc.

I’ve seen some templates, but they all depends upon the user entering every light entity manually. What I’m searching for is to include all from the light domain (also groups).

/KBrygger

1 post - 1 participant

Read full topic

LIFX bulb randomly unavailable

$
0
0

Hello,

I have a LIFX bulb that I have integrated using the integration page. It worked very well the past months but since about 1 week the lamp becomes randomly unavailable in Home Assistant. Using the Lifx app, I can always access the lamp so this problem only happens via Home Assistant.

I’ve already tried a factory reset of the lamp and reinstalling the integration in HA.

1 post - 1 participant

Read full topic

Alexa Announcements

$
0
0

Hey there, first time posting, glad to be here.

I have been using SmartThings for some time now and looking to migrate all of it over to HA. In WebCore for SmartThings, I have some automations, which when triggered, can call an announcement routine in Alexa. For instance, I have my water leak sensors and a contact sensor on a fridge that when activated will call Alexa to "PlayAnnouncement ".

I’ve read through the HA Cloud integrations and multiple videos and they all are from the point of view of having Alexa reach into HA to perform some automations. I’m looking to go the other way - to have some automations call Alex and play an announcement.

As an example of simple WebCore code, I have it attached for the water sensor alert.

My question is - how do I do this in HA - more specifically, what type of integrations do I need to do? Do I still have to do the HA Cloud integration for Alexa or is there something else? Is there any documentation on what commands can be sent to Alexa?

Thanks!

2 posts - 2 participants

Read full topic

Add torrent to Transmission by Telegram Bot

$
0
0

Hello!
I am trying to write automation for adding torrents to the transmission from the telegram bot. Integrations with telegram and transmission works well, but apparently there are some problems with the template. The template is needed to remove quotes at the beginning and at the end of {{ trigger.event.data.args }}.

- alias: Telegram Bot Add Torrent
  trigger:
    - platform: event
      event_type: telegram_command
      event_data:
        command: '/add_torrent'
  action:
    - service: transmission.add_torrent
      data_template:
        name: Transmission
        torrent: >
          {% set string = trigger.event.data.args %}
          {% set string = string[:-1] %}
          {% set string = string[1:] %}
          {{ string }}

1 post - 1 participant

Read full topic

Button to activate/deactivate alarm without code

$
0
0

I have an alarm button that gives me that status of my alarm:

type: 'custom:button-card'
entity: alarm_control_panel.somfy_protexiom_alarm
state:
  - value: disarmed
    icon: 'mdi:shield-home'
    color: red
    name: Alarm off
  - value: armed_away
    icon: 'mdi:shield-home'
    color: green
    name: Alarm On

I would like to be able to click this button so that it activates and deactivates my alarm. At the moment when i click it it comes up with a box asking for the code. Is there any way around this? Perhaps with an automation?

Kind regards

2 posts - 2 participants

Read full topic

Sensor friendly name including variable

$
0
0

Hi.
I am trying to give a sensor a friendly name where the string includes a variable from the state of another sensor as below:

friendly_name: "Smart Plug Week "+hass.states.get(sensor.iso_week_number).state+" Usage:"

with the intention of having the current iso week number given as part of the name e.g.:

Smart Plug Week 25 Usage:

This gave the following error:
“…expected block end>, but found ‘scalar>’…”

I then tried the following with similar result:

friendly_name: "Smart Plug Week "+sensor.iso_week_number.state+" Usage:"

Is this a simple syntax error or is it not possible?

Thanks in advance.

2 posts - 2 participants

Read full topic


Netatmo rain gauge - get yesterday / day before vaule

$
0
0

Netatmo rain gauge resets it’s value at midnight. Do you have any solution how to get the yesterday or day before data?

For yesterday I am thinking about automation 23:59 log the state of sensor.netatmo_netino_raino_sum_rain_24 into input number.

Or do you know a better solution?

1 post - 1 participant

Read full topic

How to have sensor where "on" is when any group member has status unknown?

$
0
0

I’m solving for being notified when an ecobee room sensor goes offline. This is usually because the battery is dead.

I would like to have a sensor that turns on when one or more of the ecobee sensors is offline. The only status that the ecobee devices provide through the ecobee integration is occupancy and temperature. The temperature right now for a dead device is unknown

image

A working ecobee sensor is reporting a temperature.

image

I would like to create a group of all of the ecobee temperature devices. Then tie a new sensor to that group that would turn on if any group member has a state of unknown

I am not sure how to accomplish this. Can anyone help me?

thanks,

1 post - 1 participant

Read full topic

Google Calendar notification for today and tomorrow

$
0
0

Hi all.

I’d like to find a way to send a notification that shows all google calendar events for today and all google calendar events for tomorrow.

I’m not sure if this is actually possible as the calendar state only seems to return the next event in the calendar.

I plan to send the notification @ 6:00 am every morning so I have been working off 2 offsets:-

“<64800” (18 hours) for today’s events

“>64800”’ (18 hours) for tomorrow’s events.

My sensor templates are as follows:-

    today_event_offset:
      friendly_name: "Today Event Offset"
      value_template: >
        {% if as_timestamp(states.calendar.family_calendar.attributes.start_time) - as_timestamp( strptime(states.sensor.date_time.state, "%Y-%m-%d, %H:%M" ) ) < 64800  %}on
        {% else %}
            off
        {% endif %}
    tomorrow_event_offset:
      friendly_name: "Tomorrow Event Offset"
      value_template: >
        {% if as_timestamp(states.calendar.family_calendar.attributes.start_time) - as_timestamp( strptime(states.sensor.date_time.state, "%Y-%m-%d, %H:%M" ) ) > 64800  %}on
        {% else %}
            off
        {% endif %}

I think my offset for today’s events is working but the offset for tomorrow is staying off. I presume this is because it is referring to next event in the calendar (which is today).

Would this type of notification be possible at all? My brain is pretty fried from trying to work this all out :smile:

Thanks very much.

1 post - 1 participant

Read full topic

Can I assign individual entity in from one device to different areas?

$
0
0

The title says it all, please advice. I have dozens of wyze sensors in different areas, and it would be nice if I can assign them in areas so it can be synced over google home app. Right now I need to manually put them in rooms in google home.

1 post - 1 participant

Read full topic

Restarted HOST and HA not starting

$
0
0

Made a shutdown of host (R Pi + SSD) and HA is not starting (and nothing is showing in the logfile).

This morning I restarted the host and after it worked fine and in the meantime no changes were made.

Any idea how I can troubleshoot this problem? I am running HA in a docker

In my opinion it seems Supervisor is not starting, but I am not an expert of such things. Any help will be appreciated. (Note I should have backup taken during the night)

pi@raspberrypi:~ $ sudo docker container ls -a
CONTAINER ID        IMAGE                                         COMMAND                  CREATED             STATUS                           PORTS                    NAMES
b99fb989c255        homeassistant/armv7-addon-letsencrypt:4.8.0   "/init"                  15 hours ago        Exited (0) 15 hours ago                                   addon_core_letsencrypt
96e909114cba        hassioaddons/influxdb-armv7:3.7.1             "/init"                  24 hours ago        Exited (255) About an hour ago   0.0.0.0:8086->8086/tcp   addon_a0d7b954_influxdb
f3b6aa8ea472        homeassistant/armv7-addon-ssh:8.6.0           "/init"                  24 hours ago        Exited (255) About an hour ago                            addon_core_ssh
ec5db3860b40        hassioaddons/grafana-armv7:5.1.1              "/init"                  24 hours ago        Exited (129) 35 minutes ago                               addon_a0d7b954_grafana
c45a43df2be7        homeassistant/armv7-addon-mariadb:2.1.2       "/init"                  24 hours ago        Exited (255) About an hour ago                            addon_core_mariadb
cdd400cb27f9        homeassistant/armv7-hassio-multicast:2        "/init"                  24 hours ago        Exited (255) About an hour ago                            hassio_multicast
1972c7f88d38        homeassistant/armv7-hassio-cli:25             "/init /bin/bash -c …"   24 hours ago        Exited (255) About an hour ago                            hassio_cli
8d65b65eddef        homeassistant/armv7-hassio-audio:14           "/init"                  24 hours ago        Exited (255) About an hour ago                            hassio_audio
cd925cf6bcf0        homeassistant/armv7-hassio-dns:9              "/init coredns -con

1 post - 1 participant

Read full topic

New integration configured: weather.br_unknown_station

$
0
0

while before I used a name in the Buienradar weather integration, I decided to take that out, and get a weather.buienradar integration name.

Upon restart though the integration has made this

weather.br_unknown_station

while at the same time its friendly_name is: BR Woensdrecht (6340) proving is does know which station it is using.
So, this comes across as a double bug:

it really should have named the integration weather.buienradar, (like the other integrations giving the correct name to weather.openweathermap and weather.dark_sky),


or, if it really should have used the station name in its name, weather.br_woensdrecht.

Aynone with a suggestion? Of course I can simply rename it, (in .storage btw, not in the entity editor see the image) but why would this buienradar be handled differently from the rest?


thanks for having a look

yes, I did see https://www.home-assistant.io/integrations/buienradar/#name, but the name doesnt change…

1 post - 1 participant

Read full topic

MQTT automation trigger: How do I access the payload?

$
0
0

Hi,

This automation doesn’t work:

- id: '1592574825562'
  alias: ping
  description: MQTT-Test
  trigger:
  - platform: mqtt
    topic: home/ass/ping/hass
  condition: []
  action:
  - data:
      payload_template: '{{ trigger.payload }}'
      topic: home/ass/ping/hass/reply
    service: mqtt.publish

It complains Error executing script. Error rendering template for call_service at pos 1: UndefinedError: 'trigger' is undefined.
Using a plain “payload” doesn’t work either; while that variable is defined, the content is empty.

Help?

1 post - 1 participant

Read full topic


(Newbie problem!) Switch light on at sunset and off at 11PM (23:00)

$
0
0

This has got to be so trivial - but the light stubbornly remains off:

Using the Automations UI:

  1. Trigger set to sunset.
  2. Condition - Time set to before 23:00
  3. Action - switch light on.
    This renders in YAML to:
- id: '1592063073391'
  alias: Fireside Light On at Sunset
  description: ''
  trigger:
  - event: sunset
    platform: sun
  condition:
  - before: '23:00'
    condition: time
  action:
  - data:
      effect: colorjump
    entity_id: light.d8f15bb1d0be_192_168_1_19olo
    service: light.turn_on

(I’ve set the bulb IP address as static in my router)
I’d be grateful for some help, please?
Jim

1 post - 1 participant

Read full topic

Script caller person

$
0
0

Hello everyone, i was wondering whether there is any way within a script to know who (which person) is the caller of that script.
Thank you.

1 post - 1 participant

Read full topic

Can't start Add-on Core zwave error

$
0
0

I can use some help fixing this error.
Could this be the reason I often (one or twice some days) need to unplug an plug in my GoControl CECOMINOD016164 HUSBZB-1 USB Hub

20-06-20 02:50:40 ERROR (MainThread) [supervisor.addons.addon] Add-on core_zwave has invalid options: Missing required option 'device'. Got {'device': None, 'network_key': ''}
20-06-20 02:50:40 WARNING (MainThread) [supervisor.addons] Can't start Add-on core_zwave: 

    serial:
        /dev/ttyUSB0
        /dev/ttyUSB1
        /dev/ttyS1
        /dev/ttyS0
        /dev/ttyS3
        /dev/ttyS2
        /dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_81300744-if01-port0
        /dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_81300744-if00-port0
    input:
        ImExPS/2 Generic Explorer Mouse
        VirtualBox USB Tablet
        Sleep Button
        Video Bus
        AT Translated Set 2 keyboard
        Power Button
    disk:
    gpio:
    audio:


1 post - 1 participant

Read full topic

GPIO relay on/off timer

$
0
0

Hey :slight_smile:

Just installed HomeAssistant. So i’m a total beginner.

What i have so far:

The relay board is connected to the Raspberry Pi4 GPIO and i can turn on/off the relays using this configuration.yaml:

switch:
  - platform: rpi_gpio
    ports:
      2: GPIO 2
      3: GPIO 3
      4: GPIO 4
      ....

Manually i can control the dimmer states

  • “trigger relay on/off” - turns on the dimmer, when run again it turns it of
  • “trigger relay on/wait 500ms/off” dimms to ~50%
  • and so on…

Sadly i can’t predict the state of the dimmer.

The questions

Is there a way to lets say “programm” the behavior of the switch, e.g. on setting it to on turn on the relay, leave it on for 500ms to dimm to a certain 50%?

Is it possible to customize the GUI with additional buttons for ON / OFF and a slider (pull left dimms down, and pull right dimms up) ?

SainSmart 16-Channel relay board

Thank you

2 posts - 1 participant

Read full topic

Z Waze default integration or Open Z wave addon?

Viewing all 108497 articles
Browse latest View live


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