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

Creating packages with subfolders for config splitting

$
0
0

I need help on creating packages.
I have many IOT controller to incorporate into HA.
I am able to incorporate one controller using !includes like this in my configuration file and by having created a folder named controller1 and added the 6 yaml files into it:

group: !include controller1/groups.yaml
sensor: !include controller1/sensors.yaml
switch: !include controller1/switches.yaml
input_number: !include controller1/input_numbers.yaml
rest_command: !include controller1/rest_commands.yaml
automation: !include controller1/automations.yaml

it works!

BUT WHAT I NEED TO DO IS TO ADD 5 controllers like that.
When i try to add more !includes with the same name : group, automation, input_number etc… it doesnt like it.

SO I TRIED to packages … with

homeassistant:
packages: !include_dir_named packages

and creating a folder named : packages with other folder inside of it … like this: folder1: controller1, folder2: controller2… etc… and in each i put the 6 yaml files with all respectives names, also renamed every entities inside the 6 yaml files respectively for each controller.

i get error like :
expected a dictionary for dictionary value @ data[‘packages’][‘sensors’]

i then tried with :

homeassistant:
packages: !include_dir_merged_named packages

i get error like :
expected dict for dictionary value @ data[‘packages’][‘analog_output_1’][‘name’]

Please can someones help me make packages …

Thank you!

1 post - 1 participant

Read full topic


Not possible to use REST sensor to read large json with no parent name?

$
0
0

After hitting some limitations with the existing worldtidesinfo option, I was pleased to find a UK based tides API at https://www.admiralty.co.uk/ that’s free and meets my needs. I’m able to pull back the required json with curl or Python, but I don’t seem to be able to extract this with the REST sensor, I believe because the data doesn’t have a name at the parent level:

[{
  "EventType": "HighWater",
  "DateTime": "2021-01-05T04:04:00",
  "IsApproximateTime": false,
  "Height": 5.0115273457652361,
  "IsApproximateHeight": false,
  "Filtered": false,
  "Date": "2021-01-05T00:00:00"
}, {
  "EventType": "LowWater",
  "DateTime": "2021-01-05T10:35:00",
  "IsApproximateTime": false,
  "Height": 0.57660918404826356,
  "IsApproximateHeight": false,
  "Filtered": false,
  "Date": "2021-01-05T00:00:00"
}, {
  "EventType": "HighWater",
  "DateTime": "2021-01-05T16:43:00",

The data is too large to fit in a sensor state (larger than 255 characters) and I can’t find any suitable json_attributes parameter to capture this. Is there a way to do this without having to revert to a command line sensor?

1 post - 1 participant

Read full topic

ONVIF Integration - Adding Camera Error

$
0
0

Attempting to re-add an Amcrest AD110 Doorbell camera via ONVIF. I’ve had success here before, but since upgrading to the latest 2020.12.2, 2020.12.7 Supervisor running on Home Assistant OS 5.9 on my i5 NUC, I’m getting an error trying to add this camera. Other cameras worked fine, this camera works fine in my DVR via ONVIF/RTSP

In the Integration UI, ONVIF scan finds the cam, I enter the known and confirmed credentials and I get a failed to connect error.

Immediately in the home-assistant.log I receive
(Thread-94) [daemon] could not find handler for: _handle_resolve

This error only begins occuring after I’ve tried to add the camera via ONVIF and continues to occur periodically from that point until reboot.

Any guidance is appreciated.

1 post - 1 participant

Read full topic

Help with Scrape Sensor :)

$
0
0

Hi,
Can anybody help me with a scrape sensor I am trying to enable.
It is for the public transport, believe it or not, they don’t have a working public API… need to rely on a scrape sensor.

site is the flowing:
http://www.citram.es/HORARIOS/info.aspx?estacion=8_12201

  - platform: scrape
    resource: http://www.citram.es/HORARIOS/info.aspx?estacion=8_12222
    select: '#dtgHorasPorLinea > tbody > tr:nth-child(1) > td.Minutes_css'
    index: 3
    name: autobus casa 1 time
    scan_interval: 60
    headers:
      User-Agent: Mozilla/5.0

1 post - 1 participant

Read full topic

GPS location inside OwnTracks zones

$
0
0

The OwnTracks documentation writes this:

Home Assistant will use the enter and leave messages to set your zone location. Your location will be set to the center of zone when you enter. Location updates from OwnTracks will be ignored while you are inside a zone.

Is it possible for Home Assistant to show the actual GPS location even if I’m inside the zone?

1 post - 1 participant

Read full topic

Trouble with ZWave Network

$
0
0

Currently I only have the following zwave devices: nortek usb hub, and zwave motion sensor (right by hub, battery powered). Both of these devices are at the front of the house on the main level.

I have a mains powered zwave outlet I’d like to add, as well as a zwave lock (back of house, basement level). Where exactly should the zwave outlet go in comparison to front of house-main level hub and back of house-basement level lock?

1 post - 1 participant

Read full topic

Repear.index in the middle of an attribute's name

$
0
0

Hey fellow “homeassistant” I am since a while ago, a bit confused.
I thought I have enough experience to do whatever I want with Home Assistant but I gave up and I’m asking YOUR help!

That’s where I couldn’t reach the result I wish:

My script:
Read a sensor who contains attributes such:
warning_count: (int)
warning_(an int from 1 to warning_count)_type: (int)

example:
warning_count: 2
warning_1_type: 21
warning_2_type: 81

Now I thought I will use the repeat service, steps: warning count and do the following:

repeat:
  count: >-
    {{ state_attr('sensor.wetter_warnung_current_warning_level','warning_count')
    }}
  sequence:
    - choose:
        - conditions:
            - condition: template
              value_template: >-
                '{ {((state_attr("sensor.wetter_warnung_current_warning_level","warning_"+repeat.index+"_type")
                > 21)) }}'
          sequence:
            - service: input_text.set_value
              data:
                value: '{{states("input_text.wetter_warnung")}}, Snow'
              entity_id: input_text.wetter_warnung

I only included one condition to short-down the code, but you got the point.
So, if I have a warning_count: 2 and I replace the +repeat.index+ with 1 I got as expected two times “Snow” in the input_text.wetter_warnung.
So how can I use the repeat.index variable in the middle of warning__type attribute?

Thank you very much for your precious time!

1 post - 1 participant

Read full topic

SmartThings integration issue

$
0
0

I want to integrate my new Samsung TV via SmartThings.
I have external access to my HA via port forwarding and dynamic DNS, not Nabu Casa.
In the guide for integrating ST into HA it says that remote access must be secured with SSL and the external and internal URL for HA must be in the config.yaml.
Is it not possible to use my existing remote access anymore when wanting to integrate ST?

I am on HA 0.103.6 but the ST integration was implemented in 0.87 so that should not be an issue.

1 post - 1 participant

Read full topic


I'm trying to show two different background images depending on a sensor

$
0
0

I’ve tried to make a card that shows date and time, and then depending on a sensor ‘on’ it should change the background color, but I don’t see it change depending on the sensor.

elements:
  - entity: sensor.time
    hold_action: none
    style:
      color: white
      font-size: 4.5vw
      left: 60%
      top: 35%
    tap_action: none
    type: state-label
  - entity: sensor.datedk
    hold_action: none
    style:
      color: white
      font-size: 1.3vw
      left: 60%
      top: 78%
    tap_action: none
    type: state-label
  - type: image
    tap_action: null
    action: none
    entity: calendar.testing
    state_image:
      'on': /local/images/clock_background.png
hold_action: none
image: /local/images/empty_clock_background.png
tap_action: none
type: picture-elements

So the standard image is a transparent png image, and the idea was that I wanted to show another image on top of it (also a png image with a transparent background), but I don’t see it change.

Any ideas?

1 post - 1 participant

Read full topic

MQTT sensor "payload_not_available"

$
0
0

Could you please check what is wrong with my MQTT payload_not_available configuration?

I run the HA MQTT broker and receiving data from WeeWx via MQTT. The MQTT topics arrive in time and are correct. But as the sensor is sometimes disconnected, I want to mark this with “payload_not_available”. Here is my configuration.yaml

- platform: mqtt
  name: "Wind Speed"
  icon: mdi:weather-windy
  state_topic: "weewx/windSpeed_kph"
  value_template: '{{ value | round(1) }}'
  unit_of_measurement: "km/h"
  availability:
    - topic: "weewx/windLinkStatus"
  payload_available: "0"
  payload_not_available: "1"

But the Wind Speed data is not available

even though the weewx/windLinkStatus changes:

the straight forward configuration for the same sensor but different attribute, delivers data:

- platform: mqtt
  name: "Wind gust Speed"
  icon: mdi:weather-windy-variant
  state_topic: "weewx/windGust_kph"
  value_template: '{{ value | round(1) }}'
  unit_of_measurement: "km/h"

but of course is not capturing missing data.

What do I have to do different in the availability configuration? Any help welcome…

1 post - 1 participant

Read full topic

How to use payload "offline" in availability topic for mqtt device

$
0
0

Hi,

I have a sensor which is using mqtt discovery. It gets added to the hassio and operates properly. But when I power off the device it still shows the device as active (obviously with no change in data). So I need to know how can I use the payload “offline” on availability topic to show it as not available (greyed out) when I power off the device?

Basically I need to make the device offline when I power it off.

I am already using payload “online” to make the device as available.

Here is my json data sending through config topic:

{
“name”: “Water_Tank_Sensor_D”,
“stat_t”: “homeassistant/sensor/wts_dist/state”,
“avty_t”: “homeassistant/sensor/wts_dist/available”,
“pl_avail”: “online”,
“pl_not_avail”: “offline”,
“unit_of_meas”: “%”,
“val_tpl”: “{{ value_json.filledcap}}”,
“ic”: “mdi:water-pump”,
“uniq_id”: “Water_Tank_Sensor_D-2C_3A_11_11_11_11”,
“dev”: {“ids”: [“Water_Tank_Sensor_D-2C_3A_11_11_11_11”],“name”: “Water_Tank_Sensor_D”,“mdl”: “NodeMCU 1.0 (ESP12E module)”,“mf”: “Amica”,“sw”: “v0.1”}
}

Thanks in advance,

1 post - 1 participant

Read full topic

Non OZW user how to add Jasco/GE/Honeywell "type=4944, id=3235"

$
0
0

Hi.

I am not using Open Z-Wave. I am using the built-in Z-Wave integration.

I recently added some Honeywell-branded Jasco Zwave dimmers. They are listed as unknown devices and I cannot change any Node Group Configuration Options.

I have found several topic discussing how to add these to the OZW manufacturer_specific.xml file, but I cannot find how to do it with the non OZW integration.

Can someone please point me in the right direction for this?

Really appreciate any help.

Thank you.

-Todd

1 post - 1 participant

Read full topic

Change menu items to icons

$
0
0

I’ve seen lots of cool dashboards where the menu at the top are icons instead of text. But I’m not able to find out how to do this. Can anyone point me to documentation or video on how to change my menu items to icons?
Thanks,

Mark

2 posts - 2 participants

Read full topic

VSCode rendering colors

$
0
0

When I am editing / viewing files in VSCode (install via Addons) it renders a color infront of spaces (see attachment) but not always visible

Capture

Anyone know what the highlighted area means? If so, how to fix or turn off.

1 post - 1 participant

Read full topic

Command failed in log, even if it's working

$
0
0

Hi there.

I have several command_line in my sensor.yaml with this command:

- platform: command_line
   name: fremløb_temp
   command: "grep -oP '(?<=/boiler_temp=)[^ ]+' /config/custom_components/nbetest-master/readout.log"
   unit_of_measurement: "°C"
   scan_interval: 15

The different in the commands is this part …/boiler_temp
The command extract information from my heating and solar cells.
Everything works as it should, i get all my data, except that after a 5 minutes or so, they all returns with a error in the log… even after that, they are still working.

Logger: homeassistant.components.command_line
Source: components/command_line/__init__.py:41
Integration: command_line (documentation, issues)
First occurred: 20.39.56 (18 occurrences)
Last logged: 20.40.10

Command failed: grep -oP '(?<=/sun_temp=)[^ ]+' /config/custom_components/nbetest-master/readout.log
Command failed: grep -oP '(?<=/boiler_temp=)[^ ]+' /config/custom_components/nbetest-master/readout.log
Command failed: grep -oP '(?<=/shaft_temp=)[^ ]+' /config/custom_components/nbetest-master/readout.log
Command failed: grep -oP '(?<=/photo_level=)[^ ]+' /config/custom_components/nbetest-master/readout.log
Command failed: grep -oP '(?<=/exhaust_speed=)[^ ]+' /config/custom_components/nbetest-master/readout.log

1 post - 1 participant

Read full topic


The On and Off of Motion Lighting

$
0
0

Some people have dedicated lights that they only want to be controlled by motion. If that’s you, congratulations and you might not need this post.

The rest of us have lights that we sometimes want to be controlled by motion, and sometimes not. That’s what makes it complicated.

The first consideration is WHEN we want motion to trigger our lights e.g.
1. When other lights are on or off.
2. When it’s dark inside or out.
3. When the alarm is set or not set
4. When other motion sensors have been triggered

Next is how we OVERRIDE our default triggers e.g.
1. I want my lights to stay on “permanently”
2. I want my lights to stay off no matter what
3. I want my lights to be triggered by motion during the day even though the default is night only

Then, HOW we override e.g.
1. Wall switches
2. Voice Commands
3. Web page

My approach to motion lights is to create an input_select for each motion zone with four options, e.g.

input_select:
  family_lamps:
    options:
      - Turn-on
      - Turn-off
      - Motion-night
      - Motion-always

An automation is triggered by the motion sensor, and another automation is triggered by a change to the input_select. I use a universal definition for “night” but each zone has its own default mode – some zones default to Motion-night while others default to Motion-always. When switching to a motion mode, the automation should also turn the light off.

A problem with changing modes is knowing what mode you’re currently in – are my lights on because they’ve been triggered by motion or has someone set them to stay on? A web page can show you, but we need other strategies for control by voice or wall switch.

VOICE. I use discrete voice commands for on and off e.g. “Family Lamps On” and “Family Lamps Off” In my case, “Off” sets it to the default mode of either Motion-always or Motion-night. I haven’t found a need for a “Stay Off” command, although I have it on my web page.

SWITCH. If you have an automated wall switch that’s not doing anything else, you could replicate the On and Off commands. In my case, I use momentary wall switches connected to SHELLY controllers. Those allow for a second function from a longpress, which can toggle something. I wrote an automation to handle smart toggling.

If you’re toggling the light, you either want it on “permanently”, or you want it off (which in my case puts it into its default motion mode). The automation starts by turning the light off. If it’s currently in Turn-on mode, the automation assumes you want it off so it sets the default motion-mode. If it’s not in Turn-on mode, it puts it in Turn-on mode. The net effect is:
1 If the light was already on because of motion, it blinks off then back on which gives the user feedback that it’s on “permanently”.
2 If the light was already on “permanently” it turns off.
3 If the light was off, it turns on “permanently”.

If you weren’t sure why the light was on, but you want it in a motion mode, you might toggle it once only to find it was already in a motion mode and now you’ve turned it on. In that case another quick toggle would turn it back off. And that’s exactly why I use discrete commands for voice and not a toggle – no one should need to tell their smart home the same thing twice.

Cheers, Richard

- alias: "Family Lamps Smart Toggle"
  trigger:
    - platform: mqtt
      topic: shellies/shellyswitch25-1234567/longpush/0 # Family East
      payload: "1"
  action:
    - service: switch.turn_off
      entity_id: switch.family_lamps
    - service: switch.turn_off
      entity_id: switch.family_ubar
    - choose:
        - conditions: 
            - condition: state
              entity_id: input_select.family_lamps
              state: 'Turn-on'
          sequence:
            - service: input_select.select_option
              data:
                entity_id: input_select.family_lamps
                option: 'Motion-always'
      default:
        - service: input_select.select_option
          data:
            entity_id: input_select.family_lamps
            option: 'Turn-on'

1 post - 1 participant

Read full topic

Invalid Config for everything after first install with python virtual enviroment

$
0
0

Im not really a programmer, but from what I can tell it doesn’t have the permission it need. Im running a cli only version of Raspbian, and dont know how to fix this: Logs bellow

2021-01-05 14:59:02 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named ‘_sqlite3’ (retrying in 3 seconds)

2021-01-05 14:59:05 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named ‘_sqlite3’ (retrying in 3 seconds)

2021-01-05 14:59:08 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named ‘_sqlite3’ (retrying in 3 seconds)

2021-01-05 14:59:11 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named ‘_sqlite3’ (retrying in 3 seconds)

2021-01-05 14:59:12 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.

2021-01-05 14:59:14 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named ‘_sqlite3’ (retrying in 3 seconds)

2021-01-05 14:59:17 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named ‘_sqlite3’ (retrying in 3 seconds)

2021-01-05 14:59:20 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named ‘_sqlite3’ (retrying in 3 seconds)

2021-01-05 14:59:23 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named ‘_sqlite3’ (retrying in 3 seconds)

2021-01-05 14:59:26 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named ‘_sqlite3’ (retrying in 3 seconds)

2021-01-05 14:59:29 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named ‘_sqlite3’ (retrying in 3 seconds)

2021-01-05 14:59:29 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Integration failed to initialize.

2021-01-05 14:59:31 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: recorder

2021-01-05 14:59:31 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.

2021-01-05 14:59:31 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of history. Setup failed for dependencies: recorder

2021-01-05 14:59:31 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not set up all dependencies.

2021-01-05 14:59:35 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package ha-ffmpeg==3.0.2: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.8/site-packages/ha_ffmpeg-3.0.2.dist-info’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

2021-01-05 14:59:35 ERROR (MainThread) [homeassistant.setup] Setup failed for ffmpeg: Requirements for ffmpeg not found: [‘ha-ffmpeg==3.0.2’].

2021-01-05 14:59:39 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package samsungctl[websocket]==0.7.1: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.8/site-packages/websocket’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

2021-01-05 14:59:39 ERROR (MainThread) [homeassistant.setup] Setup failed for samsungtv: Requirements for samsungtv not found: [‘samsungctl[websocket]==0.7.1’].

2021-01-05 14:59:47 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package pyMetno==0.8.1: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.8/site-packages/xmltodict.py’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

2021-01-05 14:59:47 ERROR (MainThread) [homeassistant.setup] Setup failed for met: Requirements for met not found: [‘pyMetno==0.8.1’].

2021-01-05 14:59:52 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package pysonos==0.0.37: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.8/site-packages/xmltodict.py’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

2021-01-05 14:59:52 ERROR (MainThread) [homeassistant.setup] Setup failed for sonos: Requirements for sonos not found: [‘pysonos==0.0.37’].

2021-01-05 14:59:52 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of homekit. Setup failed for dependencies: ffmpeg

2021-01-05 14:59:52 ERROR (MainThread) [homeassistant.setup] Setup failed for homekit: Could not set up all dependencies.

2021-01-05 14:59:59 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package pyipp==0.11.0: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.8/site-packages/deepmerge’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

2021-01-05 14:59:59 ERROR (MainThread) [homeassistant.setup] Setup failed for ipp: Requirements for ipp not found: [‘pyipp==0.11.0’].

2021-01-05 15:00:18 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package pyatv==0.7.5: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.8/site-packages/netifaces.cpython-38-arm-linux-gnueabihf.so’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

2021-01-05 15:00:18 ERROR (MainThread) [homeassistant.setup] Setup failed for apple_tv: Requirements for apple_tv not found: [‘pyatv==0.7.5’].

2021-01-05 15:00:21 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package PyNaCl==1.3.0: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.8/site-packages/PyNaCl-1.3.0.dist-info’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

2021-01-05 15:00:21 ERROR (MainThread) [homeassistant.setup] Setup failed for mobile_app: Requirements for mobile_app not found: [‘PyNaCl==1.3.0’].

2021-01-05 15:00:26 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package aiohomekit==0.2.60: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.8/site-packages/aiohomekit’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

2021-01-05 15:00:26 ERROR (MainThread) [homeassistant.setup] Setup failed for homekit_controller: Requirements for homekit_controller not found: [‘aiohomekit==0.2.60’].

2021-01-05 15:00:30 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package defusedxml==0.6.0: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.8/site-packages/defusedxml’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

2021-01-05 15:00:30 ERROR (MainThread) [homeassistant.setup] Setup failed for ssdp: Requirements for ssdp not found: [‘defusedxml==0.6.0’].

2021-01-05 15:00:30 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: history, logbook, mobile_app, ssdp

2021-01-05 15:00:30 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.

2021-01-05 15:00:36 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package pychromecast==7.5.1: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.8/site-packages/casttube-0.2.1.dist-info’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

2021-01-05 15:00:36 ERROR (MainThread) [homeassistant.setup] Setup failed for cast: Requirements for cast not found: [‘pychromecast==7.5.1’].

2021-01-05 15:00:36 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of homekit. Setup failed for dependencies: ffmpeg

2021-01-05 15:00:36 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved

Traceback (most recent call last):

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/data_entry_flow.py”, line 119, in async_init

flow = await self.async_create_flow(handler, context=context, data=data)

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/config_entries.py”, line 532, in async_create_flow

await async_process_deps_reqs(self.hass, self._hass_config, integration)

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/setup.py”, line 339, in async_process_deps_reqs

raise HomeAssistantError(“Could not set up all dependencies.”)

homeassistant.exceptions.HomeAssistantError: Could not set up all dependencies.

2021-01-05 15:00:36 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of homekit. Setup failed for dependencies: ffmpeg

2021-01-05 15:00:36 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved

Traceback (most recent call last):

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/data_entry_flow.py”, line 119, in async_init

flow = await self.async_create_flow(handler, context=context, data=data)

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/config_entries.py”, line 532, in async_create_flow

await async_process_deps_reqs(self.hass, self._hass_config, integration)

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/setup.py”, line 339, in async_process_deps_reqs

raise HomeAssistantError(“Could not set up all dependencies.”)

homeassistant.exceptions.HomeAssistantError: Could not set up all dependencies.

2021-01-05 15:00:36 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of homekit. Setup failed for dependencies: ffmpeg

2021-01-05 15:00:36 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved

Traceback (most recent call last):

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/data_entry_flow.py”, line 119, in async_init

flow = await self.async_create_flow(handler, context=context, data=data)

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/config_entries.py”, line 532, in async_create_flow

await async_process_deps_reqs(self.hass, self._hass_config, integration)

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/setup.py”, line 339, in async_process_deps_reqs

raise HomeAssistantError(“Could not set up all dependencies.”)

homeassistant.exceptions.HomeAssistantError: Could not set up all dependencies.

2021-01-05 15:00:41 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package spotipy==2.16.1: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.8/site-packages/spotipy-2.16.1.dist-info’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.

You should consider upgrading via the ‘pip install --upgrade pip’ command.

2021-01-05 15:00:41 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved

Traceback (most recent call last):

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/data_entry_flow.py”, line 119, in async_init

flow = await self.async_create_flow(handler, context=context, data=data)

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/config_entries.py”, line 532, in async_create_flow

await async_process_deps_reqs(self.hass, self._hass_config, integration)

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/setup.py”, line 343, in async_process_deps_reqs

await requirements.async_get_integration_with_requirements(

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/requirements.py”, line 74, in async_get_integration_with_requirements

await async_process_requirements(

File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/requirements.py”, line 131, in async_process_requirements

raise RequirementsNotFound(name, [req])

homeassistant.requirements.RequirementsNotFound: Requirements for spotify not found: [‘spotipy==2.16.1’].

1 post - 1 participant

Read full topic

Help configuring filter platform

$
0
0

I need some help explaining how I’m supposed to use the filter platform with my WAN in template-sensor (SNMP from pfsense)

The traffic sensor is working but sometimes it gives me a huge error like -3000Mbit, and I have 0 - 100Mbit from my ISP.

I solved this with:

  - platform: filter
    name: "internet in filtered"
    entity_id: sensor.wan_in_mbps
    filters:
      - filter: outlier
        window_size: 100
        radius: 4.0  

The above code kinda works but it does not register if some download or upload speeds up to dramaticly, resluting in the sensor not showing the real value. For example I test downloading a file from my server through the phone on 4G in 7Mbit speed and the wan out shows nothing… However the download sensor seems to be accurate for some reason. I have checked the raw sensor (with the -3000 values) and it shows the right speed (upload) so its obviously the filter.

I suspect the radius being wrong? I’m to dumb to understand the docs here… help? :slight_smile:

1 post - 1 participant

Read full topic

Windows Docker HomeKit configuration

$
0
0

Hi, I’m trying to run HA in docker on windows with HomeKit. But I’m unable to connect Hub to HomeKit. I’m getting error code 5202 no more information only code. It’s look like Hub is not discoverable by Home app. How can I troubloshoot that? Or can somebody share right configuration?

My configuration:
Windows 10 + Docker desktop. Firewall is disabled

docker run --init -d --name="home-assistant" -e "TZ=Europe/Prague" -v d:/home-assistant/config:/config -p 8128:8123 -p 5353:5353 -p 51827:51827 homeassistant/home-assistant:stable
homekit:
  - name: HASS Bridge
    port: 51827
    advertise_ip: 192.168.0.132

2 posts - 2 participants

Read full topic

Timers on multiple switches

$
0
0

Good Evening All,

I hope someone could help!

Sorry if this is a silly/stupid question HA is new to me as is .yaml!!!

I have just retro-fitted a eWeLink 4 relay wifi output board to my coffee machine to make it smart (smarter than me)

Output 1 - Power/Warm up
Output 2 - Flat Coffee
Output 3 - Latte

I have added the eWeLink integration to my HA and can control the outputs via that. However i would like to setup a couple of automations based on the 3 outputs above.

I would like to carry out the following:

Automation 1:

If O/P 1 is triggered from HA it only keeps it toggles it for say 00:05:00 minutes then turns it back off again.

Automation 2:

If i select the Flat Coffe (output 2) it latches output 1 on for 00:01:45 minutes and after minute 1 it latches output 2 for 45 seconds (enough time for it to make the coffee) and then turns off both outputs.

Automation 3:

Same as Automation 2 but with the Latte output 3. I can adjust the timers to suit this after.

I hope this makes sense :upside_down_face:

Thanks

1 post - 1 participant

Read full topic

Viewing all 109418 articles
Browse latest View live


Latest Images

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