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

Harmony Automation fails

$
0
0

@nicoske wrote:

Hi,

I recently upgraded to latest HASS version (running in docker).
I have an issue with an automation that doesn’t work anymore.
I’m using an harmony remote to power on/off a few tp-link switches based on the state of the remote control.

I have no idea why the action is not triggered anymore.
What I noiticed:

  • State of the remote.harmony entity is updated when I’m using the remote control:

2019-10-30 10:29:14 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=remote.harmony, old_state=<state remote.harmony=off; current_activity=PowerOff, friendly_name=harmony, supported_features=0 @ 2019-10-30T10:29:05.902707+01:00>, new_state=<state remote.harmony=on; current_activity=TV, friendly_name=harmony, supported_features=0 @ 2019-10-30T10:29:14.788002+01:00>>

  • I can trigger the “Power on TV” automation manually and automation works…

Any idea?
Here’s my automations.yaml

- alias: "Power on TV"
  hide_entity: false
  trigger:
    platform: state
    entity_id: remote.harmony
  condition:
    condition: state
    entity_id: remote.harmony
    state: 'on'
  action:
   - service: switch.turn_on
     entity_id: switch.TV
   - delay: '00:00:03'
   - service: remote.send_command
     entity_id: remote.harmony
     data:
      device: 53023039
      command: "PowerOn"
   - service: switch.turn_on
     entity_id: switch.DAC
   - delay: '00:00:05'
   - service: switch.turn_on
     entity_id: switch.Speakers
- alias: "Power off"
  hide_entity: false
  trigger:
    platform: state
    entity_id: remote.harmony
  condition:
    condition: state
    entity_id: remote.harmony
    state: 'off'
  action:
   - service: switch.turn_off
     entity_id: switch.Speakers
   - delay: '00:00:01'
   - service: switch.turn_off
     entity_id: switch.DAC
   - service: media_player.kodi_call_method
     data:
      entity_id: media_player.kodi
      method: System.Shutdown
   - delay: '00:00:10'
   - service: switch.turn_off
     entity_id: switch.TV

Posts: 2

Participants: 1

Read full topic


Question: Full screen (instead of windowed view) of camera stream with single press on picture glance

$
0
0

@mmatesic01 wrote:

Hi,
I currently successfully use stream component for my cameras.
I have set in Lovelace to see the camera stream through the “picture-glance”.
When I press on the picture-glance I open a new window with live video, but not in full screen. For full screen view I have to additionally press an icon in the right bottom of the stream window to activate it.

Is there an option the would that show me full screen immediately after i press on the “picture-glance”?

Thank you for any advice.

Posts: 1

Participants: 1

Read full topic

TTS in automations.yaml generates an error

$
0
0

@HansHassio wrote:

My smoke sensor sends an RF code which is processed correct and as set in automations.yaml the sensor RF value is reset after 5 seconds. So far so good.

Now I want to use TTS so, when smoke is detected, my Nest hub speaks saying “Alarm” but this does not work so far. With below code in the config and automation files an error is shown:

Invalid config for [automation]: Service tts_google_say does not match format . for dictionary value @ data[‘action’][1][‘service’]. Got None. (See /config/configuration.yaml, line 16).

I have read al what is written in the online Hassio docs but can’t figure out what I am doing wrong, would be great if someone can help me.

configuration.yaml:

tts:
  - platform: google_translate
    service_name: google_say

automations.yaml:

  hide_entity: true
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: binary_sensor.overloop_rook
    from: 'off'
    to: 'on'
    for:
      seconds: 5
  action:
    - service: mqtt.publish
      data:
        topic: 'tele/SonoffRF1/RESULT'
        payload: 005015off
    - service: tts_google_say
      entity_id: media_player.kantoor
      data:
        message: 'Alarm'

Posts: 3

Participants: 2

Read full topic

Trigger automation 15 minutes before date_time stored in input_datetime

$
0
0

@flemmingss wrote:

Okey, I have this in my configuration.yaml file:

sensor:
  - platform: time_date
    display_options:
      - 'time'
      - 'date'
      - 'date_time'
      - 'date_time_iso'
      - 'time_date'
      - 'time_utc'
      - 'beat'

input_datetime:
  flemming_phone_next_alarm_date_and_time:
    name: Flemmings neste alarm
    has_date: true
    has_time: true

I want to trigger an automation 15 min before the above input_datetime.

Example:
If input_datetime is 2019-11-02 15:45:00 I want the automation to trigger 2019-11-02 15:30:00.
If input_datetime is 2019-11-02 00:05:00 I want the automation to trigger 2019-11-01 23:50:00.

By the way, checking the template I see the formatting of sensor.date_time and my input_datetime is not the same:
{{ states.sensor.date_time.state }} show as 2019-10-30, 13:30
{{ states.input_datetime.flemming_phone_next_alarm_date_and_time.state }} show as 2019-10-30 13:30:00

Tried to google, and I find examples on time and date separate, but not with them together, and with trigger in “past-time”

Posts: 10

Participants: 3

Read full topic

Change icon size and font color

$
0
0

@SKM wrote:

Hello,
In my picture-glance card I am trying to change the font color of an entity from black to white (state-label) and I would like to resize my state-badge icon in that view.
I just cannot figure it out.
Am I missing something? Shouldn’t it be possible to do this under „- entity…“ and „style:“?
If yes, could you please provide an example?

That would be very helpful.

Posts: 1

Participants: 1

Read full topic

Another Unifi integration issue

$
0
0

@finity wrote:

I’m not sure when it happened but I just realized that my unifi device trackers aren’t updating in HA at all.

I tried to bring up my history for pretty much the first time ever and that didn’t go well either. Every time I tried it completely locked up my browser window and I had to close it out & reopen it again before the HA frontend would work again. So I can’t bring up my history to know when it started.

I didn’t really notice when it started because I use the Life360 integration and it works so well that I didn’t notice that the unifi device tracker wasn’t working (good job @pnbruckner!) until my daughters iphone (that doesn’t use Life360) that was connected to the network never showed up as “home”.

I’ve noticed a bit of strangeness recently but I just chucked it off to network timing issues and the common “iphones go to sleep and drop off the network occasionally” thing. But this morning I started digging in to re-formatting some of my device tracker names and realized that my own phone, which is an android, was definitely awake and connected to the network was showing as “not_home”. I tried turning off & on the wifi, restarted HA & even restarted the unifi controller software but it still didn’t ever show as “home”. I even went as far as updating the unifi controller software to the latest version
which is running in docker on the same machine as HA and it still hasn’t helped.

I know that everything used to work. but now it’s not.

There are no errors in the HA log.

I even went in and verified that the “track network clients” and “include wired clients” was selected. They were already on but I clicked on submit again anyway as soon as I did that all of my clients that I had previously disabled were all re-enabled and rediscovered. So I know that HA is communicating with the unifi controller on some level. (It sucked having to go thru and disable all of the unwanted device trackers again tho :frowning:).

I’ve done and checked all of the stuff I know to do or check except for deleting the integration completely and re-integrating it and I’m not too keen to do that unless I have to.

Is there any way I can troubleshoot this?

Posts: 1

Participants: 1

Read full topic

Alexa Skills won't take my Lambda Function as an EndPoint

$
0
0

@MastaaK wrote:

Hello,

I want to integrate Home Assistant in my Alexa account with this following instructions.

I must admit it’s not that hard to follow, but I’m stuck at this stage where the management consol say :

Failed to save skill information
The requested content has an invalid property ‘skillmanifest’.

I’m located in France so I firstly created my lambda function in Ireland, but then I tried in N.Virginia but not with a better success.

A bit of searching point me to this -> I need to insert the Alexa Skill Kit in place of the Alexa Smart Home in order to work. Same results.

I also tried haaska as per their instruction on the wiki of the repository, same issue.

Is their something broken or do the fault come from me or my account ?

Thanks !

Posts: 1

Participants: 1

Read full topic

Change scaling of casted Lovelace view

$
0
0

@Dan_Bowkley wrote:

Is there a way to change the overall size of a casted Lovelace view? For example, on my 17" laptop screen at 1920x1080 it renders four cards wide and looks great, whereas on my 42" TV screen also at 1920x1080 it’ll only render two cards wide and cut off practically all of the information I want to see. I’d like to at least be able to specify how many cards wide to render, if that’s possible. Cuz let’s face it, this is a little silly:


Posts: 1

Participants: 1

Read full topic


Looking for some help with template and auto that i think alot of people could find useful

$
0
0

@Chandler_K_Sharp wrote:

So ill try to give you a brief overview of what i would like to accomplish. We currently have 2-3 people in the house using geofencing with HA. I would like to build an automation that would

a) Know who the last person leave was, and only send this message to them

b) include in the message a list of any open doors,windows,covers

c) If the cover is left open give me an actionable button to close it

Here is some of the logic ive thought about so far. I can use trigger.entity_id to figure out who was the last person to leave and triggered the automation to start, but how can i get it to only notify that person. At first i thought about using a service_template with notify… but i couldnt figure anything out. Then I thought about just using and if else statement to say if user A was the result of trigger.entity_id notify user A else notify user B. Not sure what would be easiest and cleanest.

So far i have this to return a list of entities in a given state that i can adjust for anything… but it would be nice to be able to nest them into a single function.

> ##Test
> - id: testsad
>   alias: testsad
>   trigger:
>     platform: state
>     entity_id: group.life360
>     from: home
>     to: not_home
>   condition:
>     condition: template
>     value_template: > 
>       # this counts the doors that are open and if we have any that are open, the notify will occur
>       {{ states | selectattr('entity_id', 'in', state_attr('group.all_covers','entity_id')) | selectattr('state','in',['on','open']) | list | length >= 1 }}
>   action:
>     - service: notify.ios_iphone
>       data_template:
>         title: "Doors Open!"
>         message: > 
>           {% set open_doors = states | selectattr('entity_id', 'in', state_attr('group.all_covers','entity_id')) | selectattr('state','in',['on','open']) | list | map(attribute='name') | join(', ') %}
>           The following doors are open: {{ open_doors }}

If anyone has any help or suggestions it is greatly appreciated… i think drzzs has a good video for actionable notifications so i need to watch that but was gonna try and get A and B accomplished first haha

Posts: 1

Participants: 1

Read full topic

Ping (ICMP) Binary Sensor Stopped Working

$
0
0

@CaptTom wrote:

I’ve been using the subject sensor for some time now. Specifically, I took my example directly out of this documentation.

I recently noticed it had stopped working. I’m not sure if it was at the same time I updated to HA 0.100.3 or not. I’m running HA on a Raspberry Pi 3B+.

I’m getting “Entity not available: binary_sensor.internet_connection.”

In fact, I can’t find any reference to this entity in HA.

My Configuration.yaml file contains the following, which hasn’t changed since May:

# Internet Status: ping host 8.8.8.8 with 2 packets every 60 seconds.
binary_sensor:
  - platform: ping
    host: 8.8.8.8
    count: 2
    scan_interval: 60
    name: Internet_Connection

I’m wondering if anyone else has this issue, or even where to start looking to diagnose it.

I can ping the host 8.8.8.8 from other machines on my network, so it’s not that.

Thank you!

Posts: 1

Participants: 1

Read full topic

Camera_Proxy with LLAT

$
0
0

@tc23 wrote:

Now that api_password has been removed for making requests, what is the proper call if I want to get an image from a camera? I previously tried to get it to work with a LLAT but the call wasn’t working. Does anyone have an example?

Posts: 1

Participants: 1

Read full topic

Getting Ecobee remote sensor battery level

$
0
0

@blich wrote:

Is it possible to get the battery level for the Ecobee remote sensors? I see sensors for Occupancy and Temperature, but I can’t find battery level.

Posts: 1

Participants: 1

Read full topic

How to capture initial state of non-triggering entity for all actions to use?

$
0
0

@ktownsend-personal wrote:

I’m trying to make a rapid light flashing automation. The behavior is intended to be 2 quick flashes and remain at the initial state when done. I got it mostly working with discrete switch.turn_on and switch.turn_off actions with wait_template between the actions to ensure the state is reached before the next action, however it only works properly if the light is initially off. If the initial state is on, then it only flashes once and leaves the light off when done.

I believe switch.toggle would better account for the initial and final states with the correct number of flashes, except I can’t figure out how the wait_template can know the initial state for comparison.

Note 1:
The entity being flashed is not the triggering entity for the automation, so I can’t use the trigger variable in the templating.

Note 2:
Using switch.toggle with delay: 0:00:01 works without having to know the initial state, but it’s far too slow for my purpose.

My first thought was to capture the initial state as a variable that all the wait_template actions would be able to compare to, but I have been searching all day how to create that variable in the automation without any luck.

My second thought was to use a script to do the toggle/wait and pass the desired entity and its starting state to the script. That basically reverses the problem because now I have the initial state value, but I haven’t figured out how to successfully pass an entity from the automation to the script and then use it in the toggle and wait actions. Again, searching for hours and not finding any examples that pass an entity to a script.

Examples of my attempts below. Does anyone know how to get the desired behavior?

Incidentally, if anyone knows how to do a loop for n times, that would be handy to know. I couldn’t find anything on that either.


Example 1: my first working automation (incorrect behavior if initially on)

# This automation works great if the light is initially off, but only flashes 
# once and leaves the light in the wrong final state if initially on.

- id: example1_automation
  trigger:
    platform: state
    entity_id: input_boolean.var1
  action:
    - service: switch.turn_on
      entity_id: switch.office_neon
    - wait_template: "{{ is_state('switch.office_neon', 'on') }}"
    - service: switch.turn_off
      entity_id: switch.office_neon
    - wait_template: "{{ is_state('switch.office_neon', 'off') }}"
    - service: switch.turn_on
      entity_id: switch.office_neon
    - wait_template: "{{ is_state('switch.office_neon', 'on') }}"
    - service: switch.turn_off
      entity_id: switch.office_neon
    - wait_template: "{{ is_state('switch.office_neon', 'off') }}"    

If I change all services to switch.toggle, the wait_template needs to be conditional based on the initial state of the switch. I have not been able to figure out how to capture the initial state of the switch for each action to compare to.


Example 2: passing entity and initial state to script (broken)

- id: example1_automation
  trigger:
    platform: state
    entity_id: input_boolean.var1
  action:
    - service: script.turn_on
      entity_id: script.flash_entity
      data_template:
        variables:
          enttiy_id: "{{ switch.office_neon }}"
          start_state: "{{ states('switch.office_neon') }}"

# The script has this error in the logs:
# Error rendering data template: UndefinedError: 'switch' is undefined
script:
  flash_entity:
    alias: Flash Entity
    description: 'Turns an entity on and off repeatedly'
    fields:
      entity_id:
        description: "The entity ID"
        example: 'switch.office_neon'
      start_state:
        description: "The initial state of the entity so we can toggle appropriately"
        example: 'on'
    sequence:
      - service: switch.toggle
        data_template:
          entity_id: "{{ entity_id }}"
      - wait_template: "{{ states( entity_id ) != start_state }}"
      - service: switch.toggle
        data_template:
          entity_id: "{{ entity_id }}"
      - wait_template: "{{ states( entity_id ) == start_state }}"
      - service: switch.toggle
        data_template:
          entity_id: "{{ entity_id }}"
      - wait_template: "{{ states( entity_id ) != start_state }}"
      - service: switch.toggle
        data_template:
          entity_id: "{{ entity_id }}"
      - wait_template: "{{ states( entity_id ) == start_state }}"

I can’t seem to handle passing the entity correctly. I have tried a few things, such as passing {{ switch.office_neon.unique_id }}, but that gets the same error: “switch is undefined”.

Posts: 9

Participants: 2

Read full topic

Problem updating from 0.100.3 to 0.101.0

$
0
0

@Allanon wrote:

I’m running hassio in a docker container on CentOS 7. I usually upgrade when there’s a new version of hassio. I’m no longer getting the upgrade banner in the hassio dashboard. I also notice that there’s an update for AdGuard Home, but the latest version requires 0.101.0. I’ve also tried pulling the latest docker container for hassio, but it tell me I already have the latest.

Is there something I’m missing?

Posts: 3

Participants: 3

Read full topic

Theme switch bug?


Meteo france integration

$
0
0

@sgaluf wrote:

When I try to add the configuration for Meteo France, I get the following error:
Component error: meteo_france - Requirements for meteo_france not found: [‘meteofrance==0.3.7’].

On this page I see the latest version 0.3.8 was released on 9th October

I guess the component needs to be updated?

Posts: 1

Participants: 1

Read full topic

Automations editor

Heating AND hot water (storage tank heating) with the same boiler

$
0
0

@vobi wrote:

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

Posts: 1

Participants: 1

Read full topic

How to configure Home Assistant iOS app with token?

$
0
0

@schulpr wrote:

Hello,

I want to make use of the Long-Lived Access Token for logging-in with the IOS app. After reading a lot a can’t still figure it out how the url with the token has to be. I hope someone can put me in the right direction.

Thanks in advance for the help!

Kind regards, Rob

Posts: 1

Participants: 1

Read full topic

Hiding Overlay

$
0
0

@MDLefevere wrote:

hi there,

I’ve setup a weather image in my home assistant.
Is there a way to hide the overlay?.

On the left side you can see a white dot, that’s the name i gave it. On the right side there is some text “Inactive”. I would like to hide that aswell as the bottom border.

I’m using a custom card with the following in it:

cards:
  - entity: camera.generic
    type: picture-entity
    name: .

Posts: 3

Participants: 2

Read full topic

Viewing all 95284 articles
Browse latest View live


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