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

Creating an IF Statement or Multiple Automations aren't Working

$
0
0

Hello, I created multiple automations to set my thermostat based on the outside temperature. When I click on Execute for each automation, they are completing the actions requested. However, once the conditions are met, the automations are not executing.

I think I would be better off with an IF statement, but I can’t seem to figure that out either. I haven’t taken programming in over 10 years, so that leaves me with understanding what I’m needing but clueless on how to make this.

Would someone be able to either help me figure out why any of these multiple automations are not running when their conditions are met or help me create the correct IF statement.

 id: '1591843203331'
  alias: Air at 75
  description: Sets the air at 75 when it's 82 outside.
  trigger:
  - platform: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''))}}'
  condition:
  - condition: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''|int)==82|int)}}'
  - condition: and
    conditions:
    - condition: template
      value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''away'')}}'
    - condition: or
      conditions:
      - condition: template
        value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''sleep'')}}'
  action:
  - data:
      hvac_mode: heat_cool
      target_temp_high: 75
      target_temp_low: 69
    entity_id: climate.home
    service: climate.set_temperature
  - data:
      fan_mode: 'on'
    entity_id: climate.home
    service: climate.set_fan_mode
- id: '1592187904943'
  alias: Air at 76
  description: Sets the air at 76 when it's 83 outside.
  trigger:
  - platform: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''))}}'
  condition:
  - condition: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''|int)==83|int)}}'
  - condition: and
    conditions:
    - condition: template
      value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''away'')}}'
    - condition: or
      conditions:
      - condition: template
        value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''sleep'')}}'
  action:
  - data:
      hvac_mode: heat_cool
      target_temp_high: 76
      target_temp_low: 69
    entity_id: climate.home
    service: climate.set_temperature
- id: '1592190145589'
  alias: Air at 77
  description: Sets the air at 77 when it's 84 outside.
  trigger:
  - platform: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''))}}'
  condition:
  - condition: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''|int)==84|int)}}'
  - condition: and
    conditions:
    - condition: template
      value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''away'')}}'
    - condition: or
      conditions:
      - condition: template
        value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''sleep'')}}'
  action:
  - data:
      hvac_mode: heat_cool
      target_temp_high: 77
      target_temp_low: 69
    entity_id: climate.home
    service: climate.set_temperature
  - data:
      fan_mode: 'on'
    entity_id: climate.home
    service: climate.set_fan_mode
- id: '1592190826693'
  alias: Air at 78
  description: Sets the air at 78 when it's 85 outside.
  trigger:
  - platform: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''))}}'
  condition:
  - condition: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''|int)==85|int)}}'
  - condition: and
    conditions:
    - condition: template
      value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''away'')}}'
    - condition: or
      conditions:
      - condition: template
        value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''sleep'')}}'
  action:
  - data:
      hvac_mode: heat_cool
      target_temp_high: 78
      target_temp_low: 69
    entity_id: climate.home
    service: climate.set_temperature
  - data:
      fan_mode: 'on'
    entity_id: climate.home
    service: climate.set_fan_mode
- id: '1592191106126'
  alias: Air at 79
  description: Sets the air at 79 when it's 86 outside.
  trigger:
  - platform: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''))}}'
  condition:
  - condition: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''|int)==86|int)}}'
  - condition: and
    conditions:
    - condition: template
      value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''away'')}}'
    - condition: or
      conditions:
      - condition: template
        value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''sleep'')}}'
  action:
  - data:
      hvac_mode: heat_cool
      target_temp_high: 79
      target_temp_low: 69
    entity_id: climate.home
    service: climate.set_temperature
  - data:
      fan_mode: 'on'
    entity_id: climate.home
    service: climate.set_fan_mode
- id: '1592191936289'
  alias: Air at 80
  description: Sets the air at 80 when it's warmer than 86 outside.
  trigger:
  - platform: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''))}}'
  condition:
  - condition: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''|int)>86|int)}}'
  - condition: and
    conditions:
    - condition: template
      value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''away'')}}'
    - condition: or
      conditions:
      - condition: template
        value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''sleep'')}}'
  action:
  - data:
      hvac_mode: heat_cool
      target_temp_high: 80
      target_temp_low: 69
    entity_id: climate.home
    service: climate.set_temperature
  - data:
      fan_mode: 'on'
    entity_id: climate.home
    service: climate.set_fan_mode
- id: '1592192445564'
  alias: That Normal Air
  description: Resume's the Ecobee Programming
  trigger:
  - platform: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''))}}'
  condition:
  - condition: template
    value_template: '{{(state_attr(''climate.home'',''current_temperature''|int)<82|int)}}'
  - condition: and
    conditions:
    - condition: template
      value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''away'')}}'
    - condition: or
      conditions:
      - condition: template
        value_template: '{{(state_attr(''climate.home'',''preset_modes'')!=''sleep'')}}'
  action:
  - data: {}
    service: ecobee.resume_program

1 post - 1 participant

Read full topic


Web Access Failure

$
0
0

Hello,
My name is Tomás.
I installed HA recently (HassOS “direct” - without Linux) on a Raspberry Pi 4.
Everything was working perfectly.
Working in the configs and testing the system, I created a dynamic DNS with DuckDNS and activated the Lets Encrypt add-on.
I don’t know if it has anything to do with it, but then, on the same day, I lost access via web (http://ha-ip:8123).
I did a network drive map in Windows and I have access to the files. The configured IP also responds to ping. But the HA interface does not open in the browser.
Does anyone have any idea what may be going on?

Thankful…

Tomas

1 post - 1 participant

Read full topic

Met.no home assistant 0.111.3 stop working

Need help with motionEye

$
0
0

I’m having problems with motionEye. It used to record both movies and pictures. Something happened and now it only records pictures. It doesn’t record movies any longer. I’m not sure what settings to review.

Any suggestions would be very helpful.

1 post - 1 participant

Read full topic

New Device Adds to ZHA

$
0
0

Dipping my foot in the water with ZHA as deconz seems to be having difficulty.

I have around 100 devices of different brands and models.

According to Blackadder listing, some of them are not available yet in ZHA.

How do we request new devices and what information do we need to supply please?

1 post - 1 participant

Read full topic

Toon stopped working as of 16-06

$
0
0

Hi all,

Im new to this forum so excuse me if im doing this wrong :wink:

But as of 16-06 update 0.111.3 Toon stopped working with following error in the logs:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/toonapilib/toonapilib.py", line 149, in _get_challenge_code
    code = location.split('code=')[1].split('&scope')[0]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 217, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/toon/__init__.py", line 82, in async_setup_entry
    display_common_name=entry.data[CONF_DISPLAY],
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/toonapilib/toonapilib.py", line 113, in __init__
    self._authenticate()
  File "/usr/local/lib/python3.7/site-packages/toonapilib/toonapilib.py", line 157, in _authenticate
    code = self._get_challenge_code()
  File "/usr/local/lib/python3.7/site-packages/toonapilib/toonapilib.py", line 152, in _get_challenge_code
    raise InvalidCredentials(response.text)
toonapilib.toonapilibexceptions.InvalidCredentials

I tried a new set of keys, i tried a new password, but nothing seems to help.

Can someone point me in the right direction ?

Greeting, Eric from The Netherlands

1 post - 1 participant

Read full topic

Homekit doesn't work since upgrade 0.111.4

$
0
0

Hello Since the automatic upgrade of Home assistant to 0.111.4 on my docker home assistant, the accesories frome home assistant on home kit doesn’t work
I try to delete integration on HA, delete hub on home, reboot HA add new homekit bridge with QR code tha home application on ios don’t find the hub.
Can you help me ?
Here my config :

|arch|x86_64|
|---|---|
|dev|false|
|docker|true|
|hassio|false|
|installation_type|Home Assistant Container|
|os_name|Linux|
|os_version|4.4.59+|
|python_version|3.7.7|
|timezone|Europe/Paris|
|version|0.111.4|
|virtualenv|false|

1 post - 1 participant

Read full topic

Samsung TV detect play/pause/idle state?

$
0
0

Hello All. I got my samsung TV (UN55KS8500) working with home assistant, I can see on/off state and I can turn it on and off, and command it to play pause. However, HA does nor register the play/pause/idle state that it does for, say, my chromecast. I would like to be able to detect this for some automations. Is there something I am missing or do the samsung TVs not support this?

1 post - 1 participant

Read full topic


Built-in Weather Integration Broken?

$
0
0

Anyone else getting these errors when using the built-in weather integration?

2020-06-18 09:09:08 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
2020-06-18 09:09:08 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 19 minutes

On HA 0111.3

3 posts - 2 participants

Read full topic

How to configure HAssio with Zigbee2MQTT CC2531 and an already existing third-party coordinator

$
0
0

Hi Home Assistant community,

sorry for asking such newbie question -newbie that I am in Zigbee- but here is my concern:

I have Zigbee shutters from Profalux, which have already created their network, elected a coordinator, individual remote controls paired with each motor. I am willing to use a RPi3 with a Zigbee2MQTT CC2531 USB stick and Home Assistant while keeping the existing paired remote/motors so that I can still open/close the shutters in case my RPi fails.

As there can’t be 2x coordinators on the same network, I either have to add the CC2531 as a router, but then can Home Assistant use it to drive the network ? Or break the existing Profalux network, add CC2531 as coordinator and do all the pairing of remotes+motors to the new network. Painful.

There could be alternatives I’d be more than happy to test in case you can give me pointer to.

Thanks for your help

2 posts - 2 participants

Read full topic

MQTT auto discovery stopped working

$
0
0

Hi,

I have a slightly different problem with MQTT auto discovery.

Auto discovery has been working fine up till a couple of days ago when it stopped working, I flashed a new device with Tasmota and Home Assistant failed to pick it up.

I can see Tasmota connecting to HA and MQTT in the console with no issues, I can see the MQTT messages being sent to HA (using MQTT Explorer). I can see a successful connection to MQTT in the Mosquitto log file.
But, the new device does not show under devices on HA, I do not get a notification of a new device and it does not show under Entities. :roll_eyes:

This morning I have upgraded HA but that hasn’t solved it, I have re-flashed the device with a different IP and that’s not worked.

Can anyone help?

Regards
James

2 posts - 2 participants

Read full topic

Raspbee - RaspberryPi 4

$
0
0

Hello everybody,
I recently got a Raspbee for my home assistant but I can’t connect any device.

At the beginning I had some problems to add configuration on config.txt but then I found a way with “import from USB” but I don’t know how to verify it.

From deConz console I see my gateway but not connected

and via VNC it’s impossible to connect to it.

When starting the add on I get these msg’s in the log:

libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)

and

libpng warning: iCCP: known incorrect sRGB profile

Can someone help me?!

Thanks,
Milko

1 post - 1 participant

Read full topic

History Data not saving

$
0
0

I am not sure since when but I just saw that my HA is no longer saving history data for configured devices. If I am right there was was homeassistant.db before but I have no file like that. I am using HA Version 0.114.2. Was there a breaking change in the past I missed? The config was working like this before so not sure what is different now.

1 post - 1 participant

Read full topic

Roborock S6 MAXV Device Token

$
0
0

Anyone found a working solution to get the Roborock S6 MAXV working in HA? What I saw is that there is no working solution yet to get the device token, or is there?

1 post - 1 participant

Read full topic

TTN (The Things Network) Integration Fails

$
0
0

Hello I just configured a TTN Device but I´m getting this error in the log:

ERROR (MainThread) [homeassistant.components.thethingsnetwork.sensor] Error while accessing: https://isatten_b1.data.thethingsnetwork.org/api/v2/query/hola_mundo

That device is a TTGO Lora 32 sending the string “Hello world!” every 10 minutes. I can see it in TTN Console and in swagger:

[
  {
    "device_id": "hola_mundo",
    "message": "Hello, world!",
    "raw": "SGVsbG8sIHdvcmxkIQ==",
    "time": "2020-06-18T09:56:08.771706913Z"
  }
]

This is the configuration.yaml:

# TTN
thethingsnetwork:
  app_id: isatten_b1
  access_key: ttn-account-v2.***myacceskey***

and this one is my sensor.yaml:

# TTN
  - platform: thethingsnetwork
    device_id: hola_mundo
    values:
      message: none
      time: timestamp

Do you know why I am getting this error?

Kind regards.

1 post - 1 participant

Read full topic


WEBHOOK for Smartthings integration?

$
0
0

Hi All

I have for a very long time used Home assistant and was using the:

OLD ONE:

http:
  server_port: 8123
  base_url: http://192.168.0.12:8123

I have a working https cert. from my reverse proxy (Synology)
So I have a working cert. https://mydomain.com

I then update my configuration YAML to:


NEW ONE:
  elevation: 24
  time_zone: Europe/Copenhagen
  external_url: "https://mydomain.com"
  internal_url: "http://192.168.0.12:8123"

# Enables configuration UI
config:

http:
  server_port: 8123
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.0.6
    - 192.168.0.9
    - 192.168.0.10
    - 192.168.0.0/24
  ip_ban_enabled: true
  login_attempts_threshold: 5

But when I try to access the “Smartthing” plugin I get a:
image

The instruction says:

But I can’t find what I am missing?
The HA is working fine with the cert. and my new domain using the reverse proxy?
And I did add this proxy to the conf. YAML?

Home someone can help me Tokens and the new security have eluded me for some time now
(I am running the latest and greatest HA version HassOS 4.10)

Update for some reason the external access is not recognized by HA?
image

1 post - 1 participant

Read full topic

OZWAdmin on HASS.IO

$
0
0

I have HASS.IO 111.3 running on a Raspberry Pi 4, using Aeotec Z-Stick Series 5. I am looking to try my Aeotec Doorbell 6 to see if I can adjust the volume and ring tone.

I read that some can do this via OZWAdmin but how do I install this in HASS.IO? I only see Windows and Linux installation in their Github page.

1 post - 1 participant

Read full topic

OpenWeatherMap Platform issue

$
0
0

Hi all,

I encounter an issue with the OpenWeatherMap platform.

Following the instructions from here works untill I add a variable ‘mode’. When added and restart HA I don’t see the app anymore. Then when I commend out the variable Mode and restart it works again.

See below my configuration.yaml setup:

weather:
  - platform: openweathermap
    api_key: !secret openweathermap_api_key
    name: weather
    latitude: !secret openweathermap_latitude
    longitude: !secret openweathermap_longitude
    #mode: daily

Now mode is commented out so weather app is working, when uncommend the app doesn’t show up anymore in HA.

Any ideas?

2 posts - 1 participant

Read full topic

Life360 issues that recently came up

$
0
0

We have 5 cell phone on life360. work great for presence detection. The device tracker are all assigned to people. The account is under my name but all 5 phone are in the same circle. It is the only circle i have configured. With the recent update to .111 I noticed that after every reboot , my device tracker shows the wrong location. The location apears to be the last location I was at BEFORE arriving home. When I go to the life360 app I see that I am home and suddenly the device tracker resets. This only happens with my user/device and not the others. I have checked to make sure ALWAYS is set on the iphone location settings.

Any ideas.

1 post - 1 participant

Read full topic

iPad picture elements bug

$
0
0

Hi.

I’ve tried to find info about this but haven’t succeeded. I’m trying to create a dashboard on my iPad with the help of a picture elements card. But I’ve encountered a bug that affects safari, companion app and chrome alike (so webview I guess).

When I have numbers that change, say a digital clock or a temperature or wind speed. The entire number does not change but only parts of it unless I refresh the page.

Does anyone have a solution to this? I’m at a loss about it.
See attached picture of my problem!

1 post - 1 participant

Read full topic

Viewing all 109034 articles
Browse latest View live


Latest Images

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