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

Is this a good idea? DIY Siren horn doorbell


0.101.x and mandatory states in scene config - breaks the scenes usability for media_players!

$
0
0

@pejotigrek wrote:

so I asked about it on github but as I saw in one of the comments it is what it is and it won’t be rolled back.

but check this one out:

I’ve got a set of scenes, that set my lighting during the day and night and also keep my speakers [sonos, google homes etc.] with a specified volume. I can override it by saying/setting volume higher or lower, but I use scenes to set “default volume” for each time of the day.
very convenient, as for example: after playing music with loud volume at the midday, I can be sure that if at the evening I’ll ask google to play some music - it won’t blow my speakers but it will play gently with the “evening setting”. I know that I can set night profile on the speaker, but it’s not enough - anyway, why I bother to do that if I have Home Assistant and all the scenes configuration!

now mandatory “states” goes in.
by setting that - I’m forceing my media_players to be off when I don’t want them to. I’m ok if the volume changes because the time of the day changes, but with state in the scene [and for the safety - I’m gonna use “off”] if the speaker is playing during change of time of the day - it will be stopped.

is it me, or it just sucks and some basic features were cut down now?

Posts: 5

Participants: 5

Read full topic

SML002 Phillips Hue Outdoor Motion - disable led

$
0
0

@Ambidexter wrote:

Hi,

I’m happy with how the SML002 Outdoor Motion detectors work with HA. What I’d like is to disable to big red LED that happens when there is motion. In a dark environment, it’s really easy to see the unit then. I’d prefer it was more hidden.

For most motion detectors there is some way to disable this, maybe even program a “turn off after x mins” feature (although I just start a timer in HA and don’t worry about the off indication).

I’d prefer if there was just a Zigbee method to use to achieve this goal. There’s probably some way to do it by pairing it with a Hue base station or controller, but I don’t want that stuff!

Any ideas would be appreciated!

Cheers,

Ambi

Posts: 2

Participants: 2

Read full topic

How to only read a sensor at a specific time

$
0
0

@dudester wrote:

Hi,

I have a problem with the ultrasonic sensor in my watertank giving very unstable readings when the sun is on the tank, i guess the humidity and temp inside tank are very high then. How would i force the sensor only to be updated at say midnight?

The sensor is an nodemcu based ultrasonic sensor running via esphome, i know you can set sample rate duration in the nodemcu but i want sample time.

I also tried setting up a time triggered input_binary sensor but couldnt get the syntax right to copy the actual sensor reading to it.

Any help appreciated…

Posts: 2

Participants: 2

Read full topic

Tradfi throws errors

$
0
0

@judge wrote:

Hello!

I just got a Mac Mini and moved my home assistant config to a new instance of home assistant to the Mac in Docker.
Everything is working nicely and finally its really fast but Tradfri integration is acting strange. I successfully integrated it and when I start/restart Home Assistant, everything is working for a while then suddenly it stops working. I have a lot of errors in the logs:

2019-11-01 08:33:00 ERROR (MainThread) [coap] Exception CancelledError() can not be represented as errno, setting -1.
2019-11-01 08:33:00 WARNING (MainThread) [homeassistant.components.tradfri.base_class] Observation failed for Living Room remote
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut

I got this several times for all my Tradfri devices (remotes, switches, bulbs), and then:

2019-11-01 08:33:00 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
OSError: [Errno -1] No error information

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1261, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    self._platforms.values(), func, call, service_name, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 348, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 370, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/src/homeassistant/homeassistant/components/tradfri/switch.py", line 45, in async_turn_off
    await self._api(self._device_control.set_state(False))
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 155, in request
    result = await self._execute(api_commands)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 146, in _execute
    _, res = await self._get_response(msg)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 105, in _get_response
    await self._reset_protocol(e)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 78, in _reset_protocol
    await protocol.shutdown()
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 133, in shutdown
    for exchange_monitor, cancellable in self._active_exchanges.values():
AttributeError: 'NoneType' object has no attribute 'values'
2019-11-01 08:33:01 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1261, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    self._platforms.values(), func, call, service_name, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 348, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 370, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/src/homeassistant/homeassistant/components/tradfri/switch.py", line 49, in async_turn_on
    await self._api(self._device_control.set_state(True))
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 155, in request
    result = await self._execute(api_commands)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 146, in _execute
    _, res = await self._get_response(msg)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 101, in _get_response
    raise RequestTimeout('Request timed out.', e)
pytradfri.error.RequestTimeout: ('Request timed out.', RequestTimedOut())

I already tried to remove/readd the integration from the UI, restarted Tradfri gateway.
My configuration has these (gateway is on fixed ip):

tradfri: 
  host: 192.168.10.102

Do you guys have any idea what could be wrong? It was working fine on my rpi 3 with hassbian (I cannot remember the exact version of home assistant but it was around 0.98.*). My current version is the latest (0.101.1).

I also have Homekit and it works fine while home assistant integration is not responding.

Thanks!

Posts: 1

Participants: 1

Read full topic

Climate card changed - Does not look right

Template formating - Best practice and some other questions

$
0
0

@flemmingss wrote:

In this picture I have two working automations that include some templating.

A) This template is created by editing the YAML file. It looks good there, but are not visible in the automation editor. And I am unsure if it will be saved or lost if I do any changed in the Automation Editor?

B) This is created by input in the Automation Editor, and the template is visible both in editor and in the YAML file. However it is messy and not relay easy to read and understand in the YAML file. This will also be hard to share with other people that may want to dublicate something. How can this be done? And how can it bee cleaned?.

I also see that template in Automation A is inside and '. but the Automation B is inside " and ", why is that?

Which way is prefererd?

Posts: 9

Participants: 4

Read full topic

How do I transform two lists into a dict in a rest sensor's value template?

$
0
0

@mrmachine wrote:

Given that my REST resource returns the following JSON:

{"range":[1572526800,1572605220],"labels":["voltage","mains","oven","air_conditioners_1","hot_water_system","solar_analytics","power_points_1","lights_1","power_points_2","lights_2","air_conditioners_2","fronius_inverter","latronics_inverter","air_conditioners","consumption","grid_export","grid_import","grid_import_neg","lights","mains_inverted","power_points","production","self_consumption","unmeasured"],
"data":[[244.8,-863.9,0.1,15.1,99.5,1.2,100.8,17.6,186.9,15.7,16.8,1098,224.5,32,458.5,863.9,0,-0,33.3,863.9,287.7,1322.5,458.5,4.8]]}

How would I zip the labels and data lists into a dict, so I end up with:

{'voltage': 244.8, 'mains': -863.9, 'oven': 0.1, 'air_conditioners_1': 15.1, 'hot_water_system': 99.5, 'solar_analytics': 1.2, 'power_points_1': 100.8, 'lights_1': 17.6, 'power_points_2': 186.9, 'lights_2': 15.7, 'air_conditioners_2': 16.8, 'fronius_inverter': 1098, 'latronics_inverter': 224.5, 'air_conditioners': 32, 'consumption': 458.5, 'grid_export': 863.9, 'grid_import': 0, 'grid_import_neg': 0, 'lights': 33.3, 'mains_inverted': 863.9, 'power_points': 287.7, 'production': 1322.5, 'self_consumption': 458.5, 'unmeasured': 4.8}

as the sensor value?

I was thinking something like:

{% set foo = {} %}
{% for i in range(0, value_json.labels|length) %}
{% set foo[value_json.labels[i]] = value_json.data[0][i] %}
{% endfor %}
{{ foo }}

But when I test that in the template editor, I get:

Error rendering template: TemplateSyntaxError: expected token 'end of statement block', got '['

Posts: 10

Participants: 4

Read full topic


How to remove a ghost entry "media_player.xxxxx"

$
0
0

@penright wrote:

I tried asking this question on the chat and did not receive any responses, so let me try here. If my question is not phrase correctly let me know. :smile:

I have 2 media entities. It is my living room TV. One is an older form of the name, the other I am guessing, it is the new way of building names. The old name is ’ media_player.great_room’ and the new name is ‘media_player.great_room_un48h6350’ It must be from discovery because I can not find any configurations.
I did find the ‘media_player.great_room_un48h6350’ in the core.entity_registry but not ‘media_player.great_room’.

Where is something like that (‘media_player.great_room’) stored?

Posts: 2

Participants: 2

Read full topic

Nabu Casa down? AWS DDOS Attacks

$
0
0

@Cloolalang wrote:

Hey Guys,
Has anyone else had problems with NabuCasa Cloud today?
Im not sure but I understand the service is hosted by AWS.
Unfortunately AWS is being attacked by a huge and stustained DDOS campaign.
This after Pushover suffered the same during last week.
Comments please.

Posts: 4

Participants: 4

Read full topic

Sensor value as parameter

$
0
0

@jussbba wrote:

Hello,

I am trying to setup a script that adds an alarm to my squeezebox/lms player.

Here is the current script:

alarm:
  alias: alarm
  sequence:
    - service: media_player.squeezebox_call_method
      data:
        entity_id: media_player.picoreplayer
        command: alarm
        parameters: ["add", "enabled:1", "url:http://digitacdn.master.m3u8", "time:9000"]

The script is working but I would like to add the time with two slider (hours and minutes) instead of it being hardcoded. (Time is the last parameter) I have created the sliders (and sensors) for hours and minutes. The time needs to be formatted as seconds from midnight.

So the sensor values needs to be formatted to seconds. Maybe something like this:

Sensor.hours x 60 x 60 + Sensor.minutes x 60

Could somebody help me how to create template or something that would do the trick. And provide an example on how to add it correctly to the parameters.

Thank you very much!

Posts: 5

Participants: 3

Read full topic

Runing latest dev snapshot, still not able to get lock user code status from Vera

$
0
0

@geekifier wrote:

I have Home Assistant set up to use my Vera Edge as a Z-wave bridge.

I am having a terrible time trying to get detailed lock status attributes to appear in Home Assistant. I pulled the latest DEV Docker image, which should include this PR from @colohan : https://github.com/home-assistant/home-assistant/pull/27043, as well as pyvera 0.3.6. Build is tagged with 0.102.0.dev20191031.

Based on the PR description, I should be able to pull last_user_id, last_user_name, and low_battery attributes.

However, this is all that I am getting:

{'battery_level': '100', 'Vera Device Id': 3, 'low_battery': 0, 'friendly_name': 'Front Door'}

I can never get the user_id, or any other way of determining that the lock was unlocked with a keypad.
My use case is having a valid keypad unlock trigger a disarm of the security system, since I can then assume it’s an authorized entry. But, I don’t want an unlock using the deadbolt knob to do the same.

Anyone had any luck with this? The lock I am using is Schlage FE469NX BE469NX.

Posts: 1

Participants: 1

Read full topic

Questions regarding Somfy

$
0
0

@halest wrote:

Hey everybody
Please excuse my question but I’m having trouble grasping the Somfy-integration.
I’ve been unsing HomeAssistant for well over a year with climate, light and more recently ZigBee via DresdenElectronic ConBee2+deCONZ components and am about ot get Somfy compatible rolling shutters. So first thought of course: Amazing, let’s integrate with trusty old HASS.
Now here’s the trouble, I have been unable at all to track down information on Hardware requirements. I have successfully enabled the Somfy integration via the somfy-component and the SomfyOpenAPI but nowhere does it say if and which and what kind of gateway I would need.
Is one required? What standard does Somfy use? What frequenzy are they working on? Is it WiFi 2,4gHz or more like ZigBee in the 800mHz region somewhere? Or is it its own thing? What is TaHoma? A Somfy compatible standard?
I’d highly appreciate if someone could clear some of my confusion up.
Before you ask: The folks installing the shutters didn’t know either.
Thanks in advance!
halest

Posts: 4

Participants: 2

Read full topic

Hide iFrame when url is broken

$
0
0

@zeular wrote:

Hi!
I would like to hide an iframe when the URL is broken.
It is a local website that shows the current cover and song being played. (It’s from Jriver Media Center)
When the playlist is empty, the iframe displays a broken image. I’d like to hide the card completely …
The URL looks like this: http://url:port/WebRemote/musik.html
Is it possible?

Posts: 9

Participants: 2

Read full topic

Automating reset_node_meters command

$
0
0

@arc2v wrote:

Hello,
I am trying to start monitoring my bigger power users in the house with a combination of Z-wave and ESP8266 devices. Right now I have some Zooz plugs and power strips that do a good job of reporting usage but up until recently I did not know how to reset them.

Now that I know I can, I was wondering how I could automate the reset to occur either daily or the 1st of every month. I was also considering a daily or monthly report of all the values before reset. Anyway, I have no idea where to even start on this so help is appreciated.

Thanks.

Posts: 1

Participants: 1

Read full topic


Not able to set state of Arlo alarm

$
0
0

@ajcooper72 wrote:

I’ve got Arlo configured with my HA install, but I’m not having much luck with the arm/disarm/home actions.

My config for the Arlo alarm is as follows;

alarm_control_panel:
  - platform: arlo
    home_mode_name: Motion
    away_mode_name: Armed
    night_mode_name: Motion

I’ve read the install instructions as using the actual name for the mode, in the past I’ve had a Node.js based system which needed to use mode0, mode1 and mode2 as the state identifier. Motion is the name of my custom mode which basically doesn’t record anything, just ensures the motion is still detected.

My automation looks as follows;

- id: '1572603701074'
  alias: Test Arm
  description: ''
  trigger:
    platform: webhook
    webhook_id: test_arm
  action:
    service: alarm_control_panel.alarm_arm_away
    entity_id: alarm_control_panel.arlo

And nothing happens when the webhook is called. The automation is triggering, the alarm state is not actioning.

Not sure if I’m missing something obvious. At the moment I’ve got it working by calling a REST API back to my old node.js system to change the alarm state. I’d like to move all the functionality over to HA if possible.

Thanks

Posts: 2

Participants: 1

Read full topic

Unifi Integration - help me understand

$
0
0

@ha_steve wrote:

So in 0.101, the unifi integration added back the bandwidth sensor so I am now trying to add the Unifi integration to my setup.

As soon as I add it, I get nearly 75 entities added to HA a device_tracker and two bandwidth sensors for each device my unifi controller knows about. I know a switch was added to keep the integration from creating a device_tracker entity for every new device it discovered automatically (great!). Why the default is to spam your config with a bunch of entities - I don’t know.

But how do I get rid of the devices it created when I added the integration?

If I go to the integration page, click on an entity, “disable” it, sometimes it removes from the list, sometimes not. Some of them have bandwidth sensors, some do not… There doesn’t appear to be any logic to it.

So, All I want is to be able to add 2 devices from my network with bandwidth sensors. Can someone please help me understand how to make that happen?

Posts: 1

Participants: 1

Read full topic

How to register multiple Ambient Weather stations

$
0
0

@ptr727 wrote:

I have two weather stations (me and my Dad), but the ambient_station config appears to not support multiple stations.
How do I add multiple ambient weather stations?

And just to be clear, I would like to add multiple stations in hass, the AW accounts that own the stations are different, so I cannot add multiple stations to my single AW account.

Posts: 1

Participants: 1

Read full topic

Rainbird component broken after updating

$
0
0

@Szage wrote:

Hi All, I’m hoping somebody can assist.

I’ve been holding off updating Home Assistant to the latest version because I knew it had some breaking changes for the Rainbird component. Anyway, I took the dive last night and updated to v0.101.1 from v0.100.1 - without taking a snapshot first (FML) and now the new sprinkler switches won’t turn on any of my sprinklers.

After updating, I reconfigured my configuration.yaml to accommodate the new changes.
Now all I have is…

rainbird:
  host: *ip_address*
  password: *password*
  trigger_time: 10

After restarting, I can see that it has automatically added all 8 zones in states:
switch.sprinkler_1
switch.sprinkler_2
switch.sprinkler_3
… and so on

But when I try to turn any of them on it fails with:

Status request failed with wrong response! Requested 01 but got 00:
{'type': 'NotAcknowledgeResponse', 'commandEcho': 57, 'NAKCode': 4}

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 133, in handle_call_service
    connection.context(msg),
  File "/usr/src/homeassistant/homeassistant/core.py", line 1236, in async_call
    await asyncio.shield(self._execute_service(handler, service_call))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1261, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    self._platforms.values(), func, call, service_name, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 348, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 370, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/rainbird/switch.py", line 99, in turn_on
    int(kwargs[ATTR_DURATION] if ATTR_DURATION in kwargs else self._duration),
  File "/usr/local/lib/python3.7/site-packages/pyrainbird/__init__.py", line 137, in irrigate_zone
    lambda resp: True, "ManuallyRunStation", zone, minutes
  File "/usr/local/lib/python3.7/site-packages/pyrainbird/__init__.py", line 202, in _process_command
    response = self.command(cmd, *args)
  File "/usr/local/lib/python3.7/site-packages/pyrainbird/__init__.py", line 195, in command
    decoded,
Exception: Status request failed with wrong response! Requested 01 but got 00:
{'type': 'NotAcknowledgeResponse', 'commandEcho': 57, 'NAKCode': 4}

Really hoping somebody can help.
Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Login attempt or request with invalid authentication from

$
0
0

@danmarotta5 wrote:

since transitioning to 0.101.1 from 0.100 i’ve started receiving
“Login attempt or request with invalid authentication from 192.168.1.x” from ipads i use to display HADashboards … i display a couple of camera entities on each display. the video widget display is blank now. these camera displays are working fine on an HA display web page although they appear much slower on this upgrade. it’s not clear what is wrong … my ha and hadashboards (4) are on a LAN only without SSL … to access remotely i use haproxy reverse proxy which terminates SSL on the haproxy host. all my testing is done on the LAN so the haproxy isn’t involved …

# my dashboard widget declaration 
widget_type: camera
title: Front Door
entity_picture: http://192.168.1.123:8123/api/camera_proxy/camera.front_door
refresh: 5
# appdaeam conf
appdaemon: 
  disable_apps: 1
  threads: 10
  app_dir: /home/homeassistant/conf/apps
  latitude: !secret lat
  longitude: !secret long
  elevation: 30
  time_zone: America/Los_Angeles
  plugins:
    HASS:
      type: hass
      ha_url: http://192.168.1.123:8123
      cert_verify: False
      token: !secret token

hadashboard:
  dash_url: http://192.168.1.123:5050
  dash_dir: /home/homeassistant/conf/dashboards
  dash_force_compile: 1
  dash_compile_on_start: 1
  accessfile: /home/homeassistant/conf/access.log

configuration file

# authentication
  auth_providers:
    - type: legacy_api_password
      api_password: !secret http_password
    - type: homeassistant
    - type: trusted_networks
      trusted_networks:
        - 192.168.1.0/24
        - 10.8.0.0/24
        - 10.9.0.0/24
        - 192.168.5.2
        - 127.0.0.1

# load packages
  packages: !include_dir_named packages

# use yaml for lovelace
lovelace:
  mode: yaml

# custom updater and tracker
#custom_updater:

# Enables configuration UI
config:

# enable system health
system_health:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.1.235
    - 192.168.1.0/24

  - platform: mjpeg
    name: Shack
    mjpeg_url: http://192.168.1.36:1050/mjpg/shack/video.mjpg
    verify_ssl: false
    username: !secret bi_username
    password: !secret bi_password
    authentication: basic

Posts: 3

Participants: 3

Read full topic

Viewing all 95263 articles
Browse latest View live


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