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

Aeotec Gen5 stick and WD500Z-1 wall dimmer switch plus YRD216 lock

$
0
0

@turtleboy133 wrote:

A while back I had a Home Assistant server on a Raspberry Pi 2 that I created myself using the old virtualenv approach. I was able to get the Z-wave configuration set up so that I could control the WD500Z-1 wall dimmer switch via Home Assistant (it would show a toggle on the main screen). However, I didn’t have much time to play around with Home Assistant so I shelved the project for a few years. This week I sat down to take another look and decided to upgrade to the hassbian Raspberry Pi 2 image. That went extremely smoothly. However, I’m a bit confused about where to go to from here. The Z-wave configuration automatically found my two Z-wave devices (the WD500Z-1 wall dimmer switch and the YRD216 lock). However, I don’t seem to be able to do anything with these devices. For example, If I try to set up an automation for a light, I get an error that there’s no available light entity. Likewise, for the lock there are only three entities (sensor alarm level, alarm type and battery level). There’s no ability to lock/unlock.

Posts: 3

Participants: 1

Read full topic


Eufy light wont load

$
0
0

@s2svetko wrote:

I am on Home Assistant 0.102.3. My configuration.yaml is like this:

eufy:
  username: !secret eufy_username
  password: !secret eufy_password

I am seeing this error in my log:
2019-12-03 09:59:40 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform eufy
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
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/eufy/light.py”, line 32, in setup_platform
add_entities([EufyLight(discovery_info)], True)
File “/usr/src/homeassistant/homeassistant/components/eufy/light.py”, line 57, in init
self._bulb.connect()
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 128, in connect
return device.connect(self)
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 66, in connect
self.update()
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 192, in update
response = self.get_status()
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 141, in get_status
response = self.send_packet(packet, True)
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 131, in send_packet
return device.send_packet(self, packet, response)
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 90, in send_packet
self.connect()
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 128, in connect
return device.connect(self)
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 66, in connect
self.update()
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 192, in update
response = self.get_status()
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 141, in get_status
response = self.send_packet(packet, True)
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 131, in send_packet
return device.send_packet(self, packet, response)
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 90, in send_packet
self.connect()

repeats TONS of times

File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 128, in connect
return device.connect(self)
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 66, in connect
self.update()
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 192, in update
response = self.get_status()
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 138, in get_status
packet.sequence = self.get_sequence()
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 134, in get_sequence
return device.get_sequence(self)
File “/usr/local/lib/python3.7/site-packages/lakeside/init.py”, line 112, in get_sequence
packet.sequence = random.randrange(3000000)
File “/usr/local/lib/python3.7/site-packages/google/protobuf/internal/python_message.py”, line 662, in field_setter
new_value = type_checker.CheckValue(new_value)
File “/usr/local/lib/python3.7/site-packages/google/protobuf/internal/type_checkers.py”, line 130, in CheckValue
if not isinstance(proposed_value, numbers.Integral):
File “/usr/local/lib/python3.7/abc.py”, line 139, in instancecheck
return _abc_instancecheck(cls, instance)
RecursionError: maximum recursion depth exceeded while calling a Python object

Posts: 1

Participants: 1

Read full topic

Snips sold to Sonos

$
0
0

@manju-rn wrote:

Dunno what to say - Snips is sold to Sonos and the Snips Console is shutting down. What a shame!
Sonos really would make technology disappear.

Haven’t install Almond and Ada yet - will be installing this weekend. Had a great time with Snips, sad to see go and taking with it hundred and thousands of templates that people had invested time on!

Posts: 3

Participants: 2

Read full topic

Missing Z-wave related events (zwave.network_start, zwave.node_event etc)

$
0
0

@zyberzero wrote:

Hi!

I’m running HA, currently on 100.3. I have a Aeon z-stick, and a number of Z-Wave devices that works more or less perfectly.

I bought a ID Lock with a Z-Wave module, which I’ve installed and successfully included into my Z-wave network. I can control the device, and I get some updates back. So far so good.

I’m trying to get who opened the door, but I can’t find that information in my entities. According to the documentation (pdf) the notification type 0x06 is updated as the entity sensor.id_lock_as_150_access_control works great. How ever, I need to get the event parameter as well; because that’s where the user ID is stored (I know that part works; I see the ID:s in the OZW_log.txt).

I figured that I check the zwave.node_event event, but I can’t get HA to listen to that topic. I’ve tested to add a listener through the developer tools, but it does not show any events.

EDIT: I’ve also tested to add this automation, but it made no difference.

automation:
        - alias: "Log any Z-wave activity"
          trigger:
            platform: event
            event_type: zwave.node_event
          action:
           service: logbook.log
           data:
             name: "Zwave event"
             message: "{{ trigger.event.data }}"

Do you have any ideas of what to do to get those events?

Thank you!
Zyber

Posts: 4

Participants: 2

Read full topic

Entity-Filter Multiple Values or Operators

$
0
0

@hartman9 wrote:

I am trying to find a way within entity-filter to either have multiple operators or multiple operator values. The idea is to allow for voltage, current, and watts to be hidden when the switch is not on while also having the switch and all entities disappear when unavailable. I have spent way too much time on what probably is an easy thing. Any help is greatly appreciated, thanks.

type: entity-filter
show_empty: false
state_filter:
  - 'on'
  - 'off'
  - operator: '!='
    value: unavailable
  - operator: '>'
    value: '0.0'
entities:
  - switch.stairs_timer
  - sensor.stairs_timer_voltage
  - sensor.stairs_timer_current
  - sensor.stairs_timer_watts

Posts: 4

Participants: 3

Read full topic

Problem (bug?) with Reload Scripts when using 'delay'

$
0
0

@klogg wrote:

In order not to unnecessarily hammer an external api I often introduce looping scripts with delays.

It seems to me that there is a problem with using ‘Reload Scripts’ if you have scripts that use delay. Now, I don’t expect the delay itself to be maintained across reloads but I think this goes beyond that.

I have an example below of how I do it followed by the errors I get if I manually start the script after a reload.

I’d be interested if anyone here who has a development instance of HA can reproduce this? Or of course offer an alternative explanation for the errors I get?

script:
  smartweather_set_sensor_interval:
    sequence:
      - service_template: >
          script.loop_smartweather_set_sensor_interval
        data_template:
          interval: >
            {% if states('sensor.elevation') | float >= -6 and 
                  states('input_select.sensor_for_darkness') == 'smartweather_average_illuminance' %}
              {% if states('sensor.smartweather_average_illuminance') | int <= 5000 %}
                00:01:00
              {% elif states('sensor.smartweather_average_illuminance') | int <= 7500 %}
                00:15:00
              {% else %}
                00:30:00
              {% endif %}
            {% elif states('sensor.elevation') | float >= -6 and 
                    states('input_select.sensor_for_darkness') == 'brightness' %}
              {% if states('sensor.brightness') | int <= 25 %}
                00:01:00
              {% elif states('sensor.brightness') | int <= 30 %}
                00:15:00
              {% else %}
                00:30:00
              {% endif %}
            {% else %}
              18:00:00
            {% endif %}


  #========================================================================
  #=== Update the sensor and loop the script that sets the sensor interval
  #===
  #=== Passed
  #===  interval - time to wait between sensor updates
  #========================================================================
  loop_smartweather_set_sensor_interval:
    sequence:
      - service: homeassistant.update_entity
        entity_id: sensor.smartweather_aaaa

      - delay: "00:00:05"
      
      - service: homeassistant.update_entity
        entity_id: sensor.smartweather_bbbb

      - delay: "00:00:05"
      
      - service: homeassistant.update_entity
        entity_id: sensor.smartweather_cccc

      - delay: "{{ interval }}"

      - service: script.smartweather_set_sensor_interval

Errors:

Error executing service <ServiceCall script.smartweather_set_sensor_interval (c:ea2f27a05309415da9bd38a574812dcb)>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1244, in _safe_execute
    await 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/components/script/__init__.py", line 142, in service_handler
    await script.async_turn_on(variables=service.data, context=service.context)
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 214, in async_turn_on
    raise err
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 209, in async_turn_on
    await self.script.async_run(kwargs.get(ATTR_VARIABLES), context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 190, in async_run
    await self._handle_action(action, variables, context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 274, in _handle_action
    await self._actions[_determine_action(action)](action, variables, context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 357, in _async_call_service
    context=context,
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 97, in async_call_from_config
    domain, service_name, service_data, blocking=blocking, context=context
  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/components/script/__init__.py", line 139, in service_handler
    if script.is_on:
AttributeError: 'NoneType' object has no attribute 'is_on'

-------------
Error executing script script.smartweather_set_sensor_interval. Unknown error for call_service at pos 1: 
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 209, in async_turn_on
    await self.script.async_run(kwargs.get(ATTR_VARIABLES), context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 190, in async_run
    await self._handle_action(action, variables, context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 274, in _handle_action
    await self._actions[_determine_action(action)](action, variables, context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 357, in _async_call_service
    context=context,
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 97, in async_call_from_config
    domain, service_name, service_data, blocking=blocking, context=context
  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/components/script/__init__.py", line 139, in service_handler
    if script.is_on:
AttributeError: 'NoneType' object has no attribute 'is_on'

Posts: 9

Participants: 3

Read full topic

Moving installation from virtual env to raspberry pi

$
0
0

@Guddu_Mony wrote:

Hi

Does anyone have experience moving installations from one source to another?

Currently running on a virtual environment in my PC. I believe the environment is a Linux server.

I’m looking to move to a pi, given costs of electricity. If I do a fresh install on pi, can I just copy configs over? Or is there another method I should follow.

Hoping to avoid reconfiguring all the devices

Thanks in advance for any help.

Posts: 3

Participants: 3

Read full topic

DuckDNS hangs at deploying challenge tokens

$
0
0

@joe8mofo wrote:

  • 1 pending challenge(s)
  • Deploying challenge tokens…

So i am unable to get a new cert via the add-on. I have tried deleting and reinstalling the add-on; but alas nothing seems to want to fix this.

Posts: 3

Participants: 2

Read full topic


Mosquitto broker communicates with devices, but devices don’t appear in MQTT Integration in HA

$
0
0

@uatuba wrote:

I installed the Mosquitto addon on a friend’s HA installation and have tried connecting Tasmota to the broker. It connects successfully as demonstrated in the Mosquitto log. However, the devices do not show in the MQTT integration and thus do not appear in entities. I have already turned on SetOption19 in the devices. His configuration is identical to mine, and the devices connect to my MQTT Broker and show up in my HA installation. What can I check/change/fix to get him going?

Posts: 1

Participants: 1

Read full topic

Fire Action based on Calendar

$
0
0

@josh4rim wrote:

In our open office with cubicles, we’d like to turn on an “On Air” light when someone is on a phone call so that people can know when to not be so loud. It would be best if we could trigger this light to turn on during a calendar event. So if Sue has a 1-2pm phone call on the calendar the light turns on at 1 and turns off at 2. We can use a dedicated google calendar and forward meetings to this calendar. Ideas?

Posts: 2

Participants: 2

Read full topic

Looking for Zwave Automation Assistance

$
0
0

@trnka03 wrote:

Hello. I have 5 Zwave devices controlling my Christmas lights. I’m looking for an efficient method to turn them all on at a certain time of the day (with random +/- timing around the ON/OFF times). It seems putting them in a group would be the easiest. I would appreciate example code as I am relatively new to programming in Hassio.
Thanks!

Posts: 2

Participants: 2

Read full topic

Tahoma official component login error

$
0
0

@robertp1 wrote:

I have an error with Tahoma official component.
Anybody else?
File “/Users/robertp/.homeassistant/deps/lib/python/site-packages/tahoma_api/tahoma_api.py”, line 44, in login
result = request.json()

Posts: 9

Participants: 3

Read full topic

Owntracks ha integration with owntracks recorder possible?

$
0
0

@sillywalks wrote:

Setting up owntracks in homeassistant is a breeze and I love the fact that I don’t need to expose my mqtt broker to the www.
However I really like the owntracks recorder and the frontend.



However when logging to owntracks in home assistant via http the locations aren’t passed to mqtt and thus don’t appear in the recorder or frontend.
When logging to MQTT my tracks show up in the recorder but the device doesn’t show up in home assistant even when enabling the mqtt setting in the advanced settings of in the configuration.yaml

owntracks:
mqtt_topic: “owntracks/#”

Can the ha integration via http even send information to the recorder?

Posts: 1

Participants: 1

Read full topic

Still getting Shield icon in Google Home app

$
0
0

@phellarv wrote:

In customize.yaml:

 sensor.stue:
   friendly_name: Stua
   device_class: temperature

In cloud.yaml:

   google_actions:
     filter:
       exclude_domains:
         - sensor
       include_entities:
         - sensor.stue
     entity_config:
       sensor.stue:
         name: Temperatur
         aliases:
           - Stua
         room: Stua

Restarted Home Assistant, and synchronized devices both in Home Assistant and Google Assistant. Still Shield Icon.

Any suggestions??

Posts: 1

Participants: 1

Read full topic

Component modbus climat syntax error?

$
0
0

@Johan_Linden wrote:

Hi, can anyone please explain this error?

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 408, in _async_add_entity
await entity.async_update_ha_state()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 275, in async_update_ha_state
self._async_write_ha_state()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 316, in _async_write_ha_state
attr.update(self.state_attributes or {})
File “/usr/src/homeassistant/homeassistant/components/climate/init.py”, line 193, in state_attributes
self.temperature_unit,
File “/usr/src/homeassistant/homeassistant/components/climate/init.py”, line 260, in temperature_unit
raise NotImplementedError()
NotImplementedError

modbus:
  name: test
  type: tcp
  host: 192.168.1.202
  port: 502

climate:
  - platform: modbus
    name: Halltest
    hub: test
    slave: 1
    target_temp_register: 1
    current_temp_register: 1
    data_type: float
    count: 2
    precision: 1

Thanks!

Posts: 1

Participants: 1

Read full topic


HA don't use SSL

$
0
0

@JJussi wrote:

I use hass.io. I have own domain and I installed Letsencrypt add-on and it successful created files to /ssl -directory.
At configuration.yaml file I have:

 http:
   ssl_certificate: /ssl/fullchain.pem
   ssl_key: /ssl/privkey.pem
   ip_ban_enabled: True
   login_attempts_threshold: 3

System has been rebooted (several times) but is still “answering” to http and not https.
If I try to open https connection, I get errors to the log:

2019-12-03 22:08:55 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp\_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method
2019-12-03 22:08:55 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp\_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method

Posts: 3

Participants: 2

Read full topic

Using the OR condition that was on in the action?

$
0
0

@adamba wrote:

Hello everyone,

I have an automation with 5 different OR conditions. When the trigger is triggered and one of the conditions is ON, the action is being performed. Is it possible to use the friendly name of the specific condition in the action via ‘data_template’? If I want to use the trigger for this, the string would be {{ trigger.to_state.attributes.friendly_name }}. But how about the condition?

Thank you.

Adam.

Posts: 2

Participants: 2

Read full topic

Tautulli (Movie Count)

$
0
0

@UndamagedVirus wrote:

I have added a Tautulli sensor but I was wondering if it would be possible to add a sensor that pulls the statistic of how many movies I currently have?

Could someone help me out :slight_smile:

Posts: 1

Participants: 1

Read full topic

GitLab CI for configuration involving Custom Components

$
0
0

@ohadbenita wrote:

I’m trying to setup GitLab CI using the check_config script.

My current failure:

- Component error: breaking_changes - Integration 'breaking_changes' not found.
- Platform error sensor.school_holidays - Integration 'school_holidays' not found.
- Component error: alexa_media - Integration 'alexa_media' not found.
- Component error: docker_monitor - Integration 'docker_monitor' not found.
- Component error: hacs - Integration 'hacs' not found.
- Component error: switcher_aio - Integration 'switcher_aio' not found.
- Component error: shelly - Integration 'shelly' not found.
- Platform error media_player.alexa - No module named 'homeassistant.components.alexa.media_player'

It seems that the check_config script doesn’t know how to handle the custom components as they’re not part of the source code. Any idea on how to get around this nicely ?

Posts: 2

Participants: 2

Read full topic

Does anyone else have issues with accuracy/consistency of DS18B20 sensors?

$
0
0

@bedfellow wrote:

I have two D1 Mini’s, running Tamota, with DS18B20 temperature sensors. I have both of them right next to a Sonoff (far enough away to be influencesd with any radiated heat from the Sonoff), running Tasmota, with a BME280 sensor and there is a substantial difference in readings between them. Currently they are:

DS18B20 sensor 1: 24.2
DS18B20 sensor 1: 23.7
BME280: 21.2

I know that I can set a float in HA to bring them inline, but the DS18B20 do not seem to be consistent in that I have adjusted the float several times but after some time them are misaligned again.

I believe that the DS18B20 can have different resolutions, using 9 up to 12 bits, but I have no idea of what Tamota runs at as default, or whether it can be changed, but even at 9 bits I would expect them to have a more consistent temperature.

Posts: 3

Participants: 2

Read full topic

Viewing all 106764 articles
Browse latest View live