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

External calls into home assistant to trigger zwave

$
0
0

@friday963 wrote:

Can someone link me to documentation or give examples of how to make external calls into home assistant to trigger automations? I’d like to set up a single page app on my home network that would let my wife trigger my zwave locks and lights.

Posts: 1

Participants: 1

Read full topic


Please help me get started with my first motion detection automation

$
0
0

@mkanet wrote:

I would like to make two automations:

1. Turn on hue lightstrip when motion is detected via my binary sensor
RGB color: 128, 55, 255
Leave light on for 1 minute

2. Turn off hue lightstrip when motion is not detected via binary sensor

I attempted to make two automations using HA’s automations interface. However, the code generated (below) looks different than the examples from the documenation. The examples are calling services, however, my code doesn’t. Also, the examples show data: for attributes such as brightness. However, the code that was generated for me doesn’t use data: for brightness.

Anyway, I’m hoping someone would be kind enough to help me with these two scripts, especially for setting the RGB values.

Thank you in advance!

- id: '1589342992199'
  alias: Turn on Hue lightstrip when is motion detected
  description: ''
  trigger:
  - device_id: a5e0bc4c4953472b81ff2fdac4cdc002
    domain: binary_sensor
    entity_id: binary_sensor.aeon_labs_zw100_multisensor_6_sensor
    for:
      hours: 0
      minutes: 1
      seconds: 0
    platform: device
    type: turned_on
  condition: []
  action:
  - brightness_pct: 100
    device_id: 0f7ca8dcd01842fca8f33d54c6277306
    domain: light
    entity_id: light.hue_lightstrip_plus_1
    type: turn_on

- id: '1589344144642'
  alias: Turn off Hue lightstrip when motion is not detected
  description: ''
  trigger:
  - device_id: a5e0bc4c4953472b81ff2fdac4cdc002
    domain: binary_sensor
    entity_id: binary_sensor.aeon_labs_zw100_multisensor_6_sensor
    for:
      hours: 0
      minutes: 1
      seconds: 0
    platform: device
    type: turned_off
  condition: []
  action:
  - device_id: 0f7ca8dcd01842fca8f33d54c6277306
    domain: light
    entity_id: light.hue_lightstrip_plus_1
    type: turn_off

Posts: 1

Participants: 1

Read full topic

Input data into HA from external PHP script

$
0
0

@Secs wrote:

Hi all. I have a Nabu Casa account and am quite happy with that. However it seems I can get to a node red http endpoint using that and I really dont want to open up another port of my syste.

BUT I use a tracker in my car for other purposes and as far as I can find it doesnt have an API. BUT it does have a way of calling outside stuff using a a HTTP Get request. Its meant to be for SMS gateways but I am sure it will work

Its format is

SMS Gateway URL example: http://SMS_GATEWAY/sendsms.php?username=USER&password=PASSWORD&number=%NUMBER%&message=%MESSAGE%

and I can get lats, lons etc. Any suggestion on how I can get thoes numbers into HA? I really want to get them into Node-Red but not really suceeding on that front. Also looking into say using MQTT. All suggestions welcome

Posts: 1

Participants: 1

Read full topic

Unable to integrate smartthings on the webhook part

$
0
0

@SKAL wrote:

Hello all,
I’m trying to integrate Smartthing in my HA installation.
My HA installation is reacheble via https://my_domain:8123
I go in configuration - integrations - I cllick the plus button and select the smartthing integration.
I get the page “Confirm Callback URL” but if I click on the link generated https://my_domain:8123/api/webhook/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX I get a

405: Method Not Allowed error

the result is that if I continue on the following page, when I have to insert the PAT it does not work.

Do I miss something?

Posts: 1

Participants: 1

Read full topic

Reset wind sensor value when no updates are received?

$
0
0

@martin_h wrote:

I have the Oregon Scientific WGR800 wind sensor mounted and I receive sensor values from it through RFXtrx433XL. It works okay most of the time, it updates once every 30 seconds or something like that whenever there is wind registered.

The problem I have are the periods or days that are windless, with no wind registered at all. It appears as if the sensor only transmits new values when wind is registered, so if it’s windless with 0.0 m/s the value is never picked up by the sensor or HomeAssistant.

This skews the values in HomeAssistant. Instead of showing “0.0 m/s” it will show e.g. “2.5 m/s” and when looking at the details this was registered 9 hours ago or similar.

So I would like a sensor that reset its value to 0.0 m/s if a new value haven’t been received for the last 60 seconds or something like that.

Any suggestions how I can achieve this?

Posts: 1

Participants: 1

Read full topic

IKEA smart blind issues

$
0
0

@Blair_Pollard wrote:

Having nothing but issues with the IKEA blind intialy it worked fine from what I remember but now I’m getting these two issues

  1. when the blind is controlled after it’s been idle for a while it can take up to 10 seconds before it starts moving. Once its moving it react for a about 5inutes instantly. This issue was not present when I first used the blind with HA.

  2. When the blind has not been used for a while and it received a command for up or down it starts moving then stops after about 10cm. You then need to re issue the command to get it to finish. This issues seems to come and go in blocks.

Pretty much very unreliable. Worked perfectly for months with ST.

Posts: 1

Participants: 1

Read full topic

Xiaomi Aqara devices shows data even when gateway is offline and it should show as unavailable

$
0
0

@kaczkalolo wrote:

I have Xiaomi Aqara Gateway and some devices underneath it.
When the gateway is offline (unplugged) all those devices are still showing the last data in home assistant. What can i do so they would be showing as unavailable instead of latest data when the gateway was available?

I have similar problem with homekit that devices connected to haas when theyre not available in haas theyre showing status correctly (unavailable) but in homekit last state is being shoon all the time instead of unavailable…

Posts: 1

Participants: 1

Read full topic

Home Assistant Core and Almond-server Docker not working

$
0
0

@brezlord wrote:

Hi all, I have Home Assistant Core 107.7 docker and Almond-server-portable docker running but I can’t get HA to talk to Almond. I can access Almond from it’s IP address with out any issues.

yaml config

# Almond
almond:
  type: local
  host: http://192.168.10.126:3000

HA log
Log Details (WARNING)

Logger: homeassistant.components.almond.config_flow
Source: components/almond/config_flow.py:86
Integration: Almond (documentation, issues)
First occurred: 3:49:15 PM (1 occurrences)
Last logged: 3:49:15 PM

Aborting import of Almond because we’re unable to connect

The Almond server log shows
GET /api/apps/list 403 2.132 ms - 30

Any ideas?

Posts: 1

Participants: 1

Read full topic


Do i understand automations correctly

$
0
0

@hansons83 wrote:

Hello.

I’m trying to automate ventilation unit based on CO2 level, my goal is to keep it below 900. I’m trying to avoid simple approach like set fan high if CO2 > 900 because fans makes noise which may not be pleasant during night, so i would like to change speed in multiple steps as long as CO2 level do not drop. First idea was to write automation for each speed based on time which CO2 was above 900, but that lots of automatons so i decide to experiment with different approach in which, i’m dynamically change “numeric_state” trigger “for” attribute, I know numeric_state triggers fire when boundary is crossed, but with for attribute time is also a boundary which i will dynamically changing.
Does anybody used automation like that, will it work stable?

Here is my current code:

- alias: "Reku CO2 > High limit"
  trigger:
    platform: numeric_state
    entity_id: 'sensor.jadalnia_co2, sensor.kaja_co2, sensor.kamil_co2, sensor.maciek_co2, sensor.sypialnia_co2'
    above: 900
    for:
        minutes: "{{ states('input_number.co2_high_check_minutes')|int }}"
  condition:
    - condition: state
      entity_id: 'fan.izzi_fan'
      state: 'on'
  action:
  - service: fan.set_speed
    entity_id: fan.izzi_fan
    data_template:
      speed: >
        {% if state_attr('fan.izzi_fan', 'speed') == 'away' %}
          low
        {% elif state_attr('fan.izzi_fan', 'speed') == 'low' %}
          medium
        {% elif state_attr('fan.izzi_fan', 'speed') == 'medium' %}
          high
        {% else %}
          boost
        {% endif %}
  - service: input_number.set_value
    entity_id: input_number.co2_high_check_minutes
    data_template:
      value: "{{ states('input_number.co2_high_check_minutes')|int + 10 }}"
  - service: input_number.set_value
    entity_id: input_number.co2_low_check_minutes
    data_template:
      value: 5

Posts: 2

Participants: 2

Read full topic

Header text

$
0
0

@silver323 wrote:

Hello people,

I have a question. I’m using the Google light theme and use the custom mini graph card. That all works very well. But I want to change the title header from the normal cards the same as mini graph.
see the image. I want it like the way from RPI that you can see the title is with an grey background.
At system monitoring it’s a part of the card.
header title
Can someone help me?

Posts: 2

Participants: 2

Read full topic

Automation with time pattern unexpected behaviour - not starting at specified time

$
0
0

@yonny24 wrote:

I attempted to set up an automation with a time pattern as Hours: /3 and starting at 23:00. It did not trigger. Does this mean it will only trigger after 3 hours from 23:00? So at 2am it will proceed with the actions? I thought it would action at 23:00 and then trigger in another 3 hours. Didn’t seem to be the case.

- id: '1588816839483'
  alias: Heating upstairs on every 2.5 hours
  description: ''
  trigger:
  - hours: /3
    platform: time_pattern
  condition:
  - after: '23:00'
    before: '17:00'
    condition: time
  action:
  - data: {}
    entity_id: switch.sonoff_10008ffb6a
    service: switch.turn_on
  - delay: 00:30
  - data: {}
    entity_id: switch.sonoff_10008ffb6a
    service: switch.turn_off

Now I have it modified so it checks every minute and turns on a switch with a delay, switches off and another delay of 2 hours 45 mins.
I’m sure this is not the correct way but before it was not working. These appears long wnded but does seem to work.

Any advice would be appreciated. I’ve a discussion about this before but encountered these issues.

- id: '1588816839483'
  alias: Heating bedroom on
  description: ''
  trigger:
  - at: '23:00'
    platform: time
  - minutes: /1
    platform: time_pattern
  condition:
  - after: '23:00'
    before: 17:00
    condition: time
  action:
  - data: {}
    entity_id: switch.sonoff_10008ffb6a
    service: switch.turn_on
  - delay: 00:30
  - data: {}
    entity_id: switch.sonoff_10008ffb6a
    service: switch.turn_off
  - delay: 02:45

Posts: 5

Participants: 4

Read full topic

Xiaomi Aqara manual force reconnect

$
0
0

@kaczkalolo wrote:

I have Xiaomi Aqara and it is working fine - i just would like to know how to force HAAS to reconnect it when for example Aqara was down (lets say power outage) and HAAS was up and running. Now Aqara is back online HAAS is still showing that it is unavailable. The only thing i can do now is to restart HAAS and it works but is there a way to do this without restarting HAAS?

Posts: 1

Participants: 1

Read full topic

Laundry Accelerometer

$
0
0

@mechanimal82 wrote:

I’m just getting into HA and have some configs setup based on smart plugs for washing machine and dishwashers being done based on template binary sensors with delay_on/off.

There is not enough space behind the tumble dryer to add a power meter (and it’s a nightmare to get out). So I have attached a SmartThings Multi-Sensor which records vibration and I wonder if there’s a way I can create a template sensor to be ‘on’ if vibration detected more than 5 times in the last 5 minutes, and off if vibration detected less than 5 times in the last 5 minutes.

Is this possible???

Thanks

Posts: 1

Participants: 1

Read full topic

Lovelace ui add card panel freeze / unresponsive for long time

$
0
0

@saarsinai wrote:

Hey everyone, i’ve encountered a problem i haven’t been able to diagnose and solve on my own.

i recently moved from yaml editing to the lovelace ui editor.
everything works fine, two weeks ago i’ve noticed something strage.
when ever opening the ui editor to add new card (on what ever tab i choose, clicking on the plus button to add new card)
the home assistant is stuck and cant be moved, it looks like some component making it unresponsive and after i wait a minute or two it come back to life, or i close the tab and open hass again.

in different instance of ha i have for my family this issue doesn’t reaccure. i’ve tested it with few different browsers and pcs. so it’s defenitly something with maybe a custom component i’ve added but i can’t figure out which.

did anyone encountered an issue similiar to me? search results came up with nothing i could find.

my configuration: running latests HA docker container (being updated automaticly using watchtower) so it’s not related to specific version of HA.
running on xeon cpu with enough power so can’t connect it to power related.

thanks, have a great day.

Posts: 1

Participants: 1

Read full topic

Endless "Out of frame flow!" warnings setting up Z-Wave integration

$
0
0

@anoras wrote:

While migrating my custom installed Home Assistant from Raspbian Stretch on a Raspberry Pi 3 to Hassio on a Raspberry Pi 4 I have difficulties setting up Z-Wave on the hassio installation.

The Z-Wave integration is with endless WARNING: Out of frame flow! (0xc0). Sending NAK. warnings.

2020-05-13 15:12:36.760 Always, OpenZwave Version 1.4.3469 Starting Up
2020-05-13 15:13:46.279 Info, Setting Up Provided Network Key for Secure Communications
2020-05-13 15:13:46.280 Info, mgr,     Added driver for controller /dev/ttyACM0
2020-05-13 15:13:46.280 Info,   Opening controller /dev/ttyACM0
2020-05-13 15:13:46.280 Info, Trying to open serial port /dev/ttyACM0 (attempt 1)
2020-05-13 15:13:46.283 Info, Serial port /dev/ttyACM0 opened (attempt 1)
2020-05-13 15:13:46.284 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2020-05-13 15:13:46.284 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2020-05-13 15:13:46.284 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2020-05-13 15:13:46.285 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2020-05-13 15:13:46.285 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2020-05-13 15:13:46.285 Detail,
2020-05-13 15:13:46.285 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2020-05-13 15:13:46.369 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:47.369 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-05-13 15:13:47.369 Detail, contrlr, Removing current message
2020-05-13 15:13:47.369 Detail, contrlr, Notification: Notification - TimeOut
2020-05-13 15:13:47.370 Detail,
2020-05-13 15:13:47.370 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x20) - FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2020-05-13 15:13:48.279 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:48.280 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:49.280 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-05-13 15:13:49.280 Detail, contrlr, Removing current message
2020-05-13 15:13:49.280 Detail, contrlr, Notification: Notification - TimeOut
2020-05-13 15:13:49.280 Detail,
2020-05-13 15:13:49.281 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x05) - FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2020-05-13 15:13:49.319 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:49.320 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:50.315 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:51.316 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-05-13 15:13:51.316 Detail, contrlr, Removing current message
2020-05-13 15:13:51.316 Detail, contrlr, Notification: Notification - TimeOut
2020-05-13 15:13:51.316 Detail,
2020-05-13 15:13:51.316 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x07) - FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2020-05-13 15:13:51.319 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:51.321 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:52.319 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:52.320 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:53.078 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:54.079 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-05-13 15:13:54.079 Detail, contrlr, Removing current message
2020-05-13 15:13:54.079 Detail, contrlr, Notification: Notification - TimeOut
2020-05-13 15:13:54.079 Detail,
2020-05-13 15:13:54.079 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x56) - FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2020-05-13 15:13:54.132 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:55.133 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-05-13 15:13:55.133 Detail, contrlr, Removing current message
2020-05-13 15:13:55.133 Detail, contrlr, Notification: Notification - TimeOut
2020-05-13 15:13:55.186 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:56.264 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:57.318 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
...repeat ad nauseam. 

The Z-Wave integration has been added through the “Integrations” configuration in the UI. No changes have been made to the config files.

This is on a 2MB Raspberry Pi 4 with an Aeotech Z-Stick Gen 5. hassio version 0.109.6.

Can anyone assist with this issue?

Posts: 3

Participants: 2

Read full topic


Hard reset

$
0
0

@gregscher wrote:

Anyone with direction on how to reset home assistant to “factory” defaults (e.g. remove all integrations. dashboard configs to out of the box, remove all devices / entities, etc…)?

Greg

Posts: 1

Participants: 1

Read full topic

How to handle devices going offline at night by clock timer

$
0
0

@Ziggers wrote:

Hi All,
In order to save some power my Denon receiver powers off at night. This is done by a timer switch. This causes a lot of Home Assistant connection errors in my log. Any way how to prevent this?
The solution I am looking for is to set a time that HA should try to connect to this specific device, ie. during the day from 06:00 AM to midnight.
Thanks!

Posts: 2

Participants: 2

Read full topic

Searching for theme items (input select list)

$
0
0

@tom_l wrote:

The input select drop-down list sticks out like dogs balls in my themes but I cant work out what item to change. Any idea?

Forget the corner radius, just the background colours.

Untitled

Posts: 1

Participants: 1

Read full topic

Inverting a binary sensor - unexpected behaviour

$
0
0

@thebang2 wrote:

Hello, everyone,

I use Home Assistant via docker from my self-built NAS.
Primarily I use different Xiaomi Aquara sensors with MQTT, this works very well so far.
Since there are no affordable rain sensors for Zigbee on the market, I soldered two cables to an Aqara door sensor and soldered them to a “rain sensor board” (looks like this):
Picture

This means that if the board gets wet, the circuit is closed.

The problem is that the contacts are mixed up for my purpose.
If the circuit is open, I get an “on” message in HASS and HASS shows it wrong:

https://www.home-assistant.io/integrations/binary_sensor/

–> door sensor: on = open
–> moisture: off = wet

I tried to write a template for this myself, but failed to implement it, because the state is always shown as “dry”:

configuration.yaml:

binary_sensor:
  - platform: template
    sensors:
      regenfall:
        friendly_name: "Regensensor_virtuell"
        device_class: moisture
        value_template: >-
          {% if is_state('binary_sensor.0x00158d0004a01943_contact', 'off') %}
            on
          {% else %}
            off
          {% endif %}

Result:

What am I doing wrong here?

Posts: 2

Participants: 2

Read full topic

SNMP value template

$
0
0

@jeppper wrote:

I have tried this for SNMP of my Synology NAS.
I get no error but also no value. What is wrong?

  - platform: "snmp"
    host: 192.168.1.110
    baseoid: 1.3.6.1.4.1.6574.1.1.0
    name: NAS system status
    value_template: >-
      {% if is_state("sensor.nas_system_status", "1") %}
        Normal
      {% elif is_state("sensor.nas_system_status", "2") %}
        Fejl
      {% endif %}

Posts: 1

Participants: 1

Read full topic

Viewing all 108978 articles
Browse latest View live


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