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

Copy value of sensor

$
0
0

Hello all,

I am not sure what category to assign this question but here goes:

I have a Daikin AC unit with the wifi module and it added a few sensors the HA which I would like to monitor. One of them is the outside temperature. I tried to add a statistics graph but for some reason this sensor does not appear in the list when I add the card. I figured maybe it is not compatible with this card.

Is there a way to take the values from this sensor and assign them to a dummy sensor that can be defined in HA and have that dummy sensor display the statistic?

Cheers

2 posts - 2 participants

Read full topic


Zig-a-zig-ah! CC2652R vs Slaesh's CC2652RB

$
0
0

Hi,

I would like to ask a question or, let say, share my experience about zigbee usb sticks.
I am running HA Core on Raspberry Pi 3b+ and I use zigbee2mqtt as zigbee integration via USB stick Electrolama zig-a-zig-ah! based on CC2652R chip.
For long time ago, everything was just fine until lately when I add two Xiaomi GWRJN5169 OpenLumi Lumi Router (JN5169).
Zigbee network become slow, but not all, just Xiaomi battery operated sensors, like door/window, PIR, buttons. Slowness was sometimes bigger, sometime less, some time even lose event (button press i.e.).
I tried everything, every config trick, I even move my wireless APs to another channel and nothing helps.
Then, I replace coordinator USB stick with Slaesh’s CC2652RB stick and all problems gone, zigbee network is fast again.
Just to be mentioned, both sticks are flashed with the latest version of coordinator firmware, 20210708.
Here come the question, is CC2652RB that much better than CC2652R, or something others happened when I replace adapters.
I am too afraid to switch the sticks again, because now everything works excellent.

1 post - 1 participant

Read full topic

Youless integration fails to install, error message

$
0
0

Hi, not sure if this should go here. I also submitted a bug on Github. Not trying to spam, just learning where things are :-o I looked around and didn’t find anyone with the same issue.

I’m trying to install the Youless plugin. I use 192.168.1.10 as host. My Youless is LS120 without password. It has the Pvoutput firmware.

The integration says:
Success!
Created configuration for 192.168.1.10

But after that it shows a warning on screen:
Retrying setup: Expecting value: line 1 column 1 (char 0).

In the log some more info is added:
Config entry ‘192.168.1.10’ for youless integration not ready yet: Expecting value: line 1 column 1 (char 0); Retrying in background

1 post - 1 participant

Read full topic

Calculate cumulative total sensor from daily total sensor

$
0
0

I’m using the Daikin Residential integration which reports the daily, monthly and yearly energy usage in kWh.
This is great, but in order to use and track them in the new Energy dashboard I’d like to have an ever increasing total sensor. But… this is more difficult than I had hoped. The daily, monthly and yearly totals reset every night (and not at precisely 00:00 but at a random time slightly later than that, such as 00:01).

In essence, lets say these are the reported values for the daily sensor:
day 1 00:05:00 1kWh
day 1 12:05:00 2kWh
day 1 23:55:00 5kWh
day 2 00:01:00 0.5kWh
day 2 15:50:00 4.5kWh

Then the resulting total sensor should become:
day 1 00:05:00 1kWh
day 1 12:05:00 2kWh
day 1 23:55:00 5kWh
day 2 12:05:00 5.5kWh
day 2 23:55:00 10kWh

Can anyone give any pointers to how I would go about and create this total sensor? Or maybe a different suggestion that removes the need for the sensor?

Thanks!

3 posts - 2 participants

Read full topic

CO2 Signal Integration not available

Dropdown entries not selectable in Chrome browser via mouse input

$
0
0

Hi !
When using Chrome Browser I’m not able to select an entry by mouse from a drop down menu. The entries are shown but if I click on an entry nothing happens. Only selection by keyboard is working.

Linux Mint 20.2
Chrome: Version 92.0.4515.159 (Official Build) (64-bit)

Any help is welcome - thanks !
Michael.

1 post - 1 participant

Read full topic

How to run a selective script on a certain day

$
0
0

Hi,

For my vacuums, I have scripts for specific rooms.

On Tuesday, I want to vacuum the whole downstairs, on Saturday just want to vacuum the bedroom. Can I have 1 automation, but select script to run based on the day of the week?

- alias: Vacuum Downstairs
  trigger:
    platform: time
    at: '08:30'
  condition:
    - condition: time
      weekday:
      - tue
      - sat
  action:
    - service: script.vacuum_downstairs

1 post - 1 participant

Read full topic

Energy Sensors from multiple energy sources (Mains and Generator)

$
0
0

Hi, I need guidance on the best way to setup my energy sensors, my electricity comes from two sources:

  1. Mains: provided by government, post paid low tariff.
  2. Generator: provided by Apartment Complex, prepaid high tariff.
    There are frequent blackouts in mains, whenever that happens the Generator takes over, energy from both sources come to my apartment through the same cables, I’m using Shelly 3EM to measure the energy consumption since it’s 3 phase in both cases.
    I created a binary sensor to indicate which source is active at any moment, the sensor relies on voltage level because main is around 220V and generator is around 230V.

I added this to my configuration, but I’m not sure it it’s the right or best way to measure:

 utility_meter:
   daily_energy:
     source: sensor.energy
     cycle: daily
     tariffs:
       - mains
       - generator

I’m cycling between the tariffs based on the value of the binary sensor.

Thank you

Ameen

1 post - 1 participant

Read full topic


CalDAV-Error due to a location

$
0
0

Hi all,

Actually with the integration everything is working well but after restarting HA I realized the following problem with CalDAV.
The thing is that suddenly no calendar data were loaded. Therefore I went to logs and got the following:

Logger: homeassistant.components.calendar
Source: components/caldav/calendar.py:201
Integration: Kalender (documentation, issues)
First occurred: 10:58:50 (6 occurrences)
Last logged: 10:58:53

caldav: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 646, in async_device_update
    await task
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/caldav/calendar.py", line 135, in update
    self.data.update()
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 277, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/caldav/calendar.py", line 201, in update
    vevent = event.instance.vevent
  File "/usr/local/lib/python3.9/site-packages/caldav/objects.py", line 1058, in _get_vobject_instance
    self._set_vobject_instance(vobject.readOne(to_unicode(self._get_data())))
  File "/usr/local/lib/python3.9/site-packages/vobject/base.py", line 1155, in readOne
    return next(readComponents(stream, validate, transform, ignoreUnreadable,
  File "/usr/local/lib/python3.9/site-packages/vobject/base.py", line 1101, in readComponents
    vline = textLineToContentLine(line, n)
  File "/usr/local/lib/python3.9/site-packages/vobject/base.py", line 925, in textLineToContentLine
    return ContentLine(*parseLine(text, n), **{'encoded': True,
  File "/usr/local/lib/python3.9/site-packages/vobject/base.py", line 813, in parseLine
    raise ParseError("Failed to parse line: {0!s}".format(line), lineNumber)
vobject.base.ParseError: At line 13: Failed to parse line: X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-APPLE-MAPKIT-HANDLE=CAESoAIIrk0Q5cuty9Xtjc0ZGhIJvCAiNe3ySEARwCK/fojNJUAiZQoLRGV1dHNjaGxhbmQSAkRFGgZCYXllcm4qB0JhbWJlcmcyB0JhbWJlcmc6BTk2MDUwUhRLdW5pZ3VuZGVucnVoc3RyYcOfZVoCMzBiF0t1bmlndW5kZW5ydWhzdHJhw59lIDMwKhBUYXZlcm5hIEdlb3JnaW9zMhdLdW5pZ3VuZGVucnVoc3RyYcOfZSAzMDINOTYwNTAgQmFtYmVyZzILRGV1dHNjaGxhbmQ4L1pNCiQI5cuty9Xtjc0ZEhIJvCAiNe3ySEARwCK/fojNJUAYrk2QAwGiHyQI5cuty9Xtjc0ZGhgKEFRhdmVybmEgR2Vvcmdpb3MQACoCZGU=;X-APPLE-RADIUS=141.1750744752817;X-APPLE-REFERENCEFRAME=0;X-TITLE="Taverna Georgios

In the last line there is the parse error. What is really starnge for me is the fact that as soon as I delete the location from the corresponding event everything works fine again. Of course I have a lot of events with locations and only in some cases this error occur. In this case the address is as follows:

Taverna Georgios
Kunigundenruhstraße 30, 96050 Bamberg, Deutschland

It seems the integration has a problem with locations.

1 post - 1 participant

Read full topic

Sensor normalization using filters

$
0
0

I have a question on a specific sensor, its my total kWh yield sensor.

Actually I am using this sensor as source for the energy dashboards,which is doing fine, with one exception.

This sensor is a calculation of 2 solar systems, which I am adding both to this new sensor.
However, one of the source sensors is coming from the internet (GoodWe portal) and sometimes this portal is not reachable for a couple of minutes. What happens then, is that the total kWh yield sensor is not accurate, its just decremeting the value of the GoodWe source, since it cannot fetch that information.

I am looking for a way to fix this, either just not add the wrong values or something else.
I saw the Filter options, but these seem quite complicated, probably somebody can help me, for example with a little piece of configuration of a similar issue.

To visualize: the picture below shows to 4 spikes down, those are the moments the GoodWe portal was not reachable for a short periode of time. I would like to see a flat line increasing everyday with the solar yield.

sensoree

1 post - 1 participant

Read full topic

[supervisor.store.git] Can't clone https://github.com/hassio-addons/repository repository: Cmd('git') failed due to: exit code(128)

$
0
0

I’m having issues with the community addons, I have no clue why… the errors keep changing… I do have another one added which does work, the esphome addon.

21-09-03 10:28:10 ERROR (MainThread) [supervisor.store.git] Can't clone https://github.com/hassio-addons/repository repository: Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v --recursive --depth=1 --shallow-submodules https://github.com/hassio-addons/repository /data/addons/git/a0d7b954
  stderr: 'Cloning into '/data/addons/git/a0d7b954'...
POST git-upload-pack (164 bytes)
POST git-upload-pack (244 bytes)
error: RPC failed; curl 56 OpenSSL SSL_read: Connection reset by peer, errno 104
error: 6833 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
'.
21-09-03 11:17:46 ERROR (MainThread) [supervisor.store.git] Can't clone https://github.com/hassio-addons/repository repository: Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v --recursive --depth=1 --shallow-submodules https://github.com/hassio-addons/repository /data/addons/git/a0d7b954
  stderr: 'Cloning into '/data/addons/git/a0d7b954'...
POST git-upload-pack (164 bytes)
error: could not lock config file /data/addons/git/a0d7b954/.git/config: No such file or directory
fatal: could not set 'core.repositoryformatversion' to '0'
'.
21-09-03 11:20:02 ERROR (MainThread) [supervisor.store.git] Can't clone https://github.com/hassio-addons/repository repository: Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v --recursive --depth=1 --shallow-submodules https://github.com/hassio-addons/repository /data/addons/git/a0d7b954
  stderr: 'Cloning into '/data/addons/git/a0d7b954'...
POST git-upload-pack (164 bytes)
POST git-upload-pack (244 bytes)
fatal: unable to open /data/addons/git/a0d7b954/.git/objects/pack/tmp_pack_srLotz: No such file or directory
fatal: fetch-pack: invalid index-pack output
'.

2 posts - 1 participant

Read full topic

Energy Dashboard: include data before late July 2021

$
0
0

Hi,

I am very happy with the addition of the energy dashboard. I was already monitoring my energy consumption for over a year. However, when I look into the energy dashboard, I only see the consumption starting from mid-July:

However, in my history, I can see it for a longer time:

I use for the history graph above and the energy dashboard the same entity:
image

How can I show the full history of my energy consumption in the energy dashboard? The same applies for gas usage.

1 post - 1 participant

Read full topic

Energy integration and utility meters

$
0
0

Hello everyone

I’ve been playing around with the new built-in Energy integration. I have set everything up, found the documentation for utility meters to select different tariffs.

The problem now with utility meters is that a cycle reset is required so the counter goes back to 0 every hour, month, day, year, etc… The problem is that when I do a reset, let’s say daily, the energy integration substracts the accumulated value and the next reading I get a negative value.

I’ve been checking this documentation but can’t get it to work.

This is my utility meter setup, the sensor is a Efergy

utility_meter:
  consumo_diario:
    source: sensor.energy_consumed
    name: Consumo Diario
    cycle: quarter-hourly
    tariffs:
      - punta
      - valle
      - llano

And this the customization for the Energy integration

homeassistant:
  customize_glob:
    sensor.consumo_diario_punta:
      last_reset: '1970-01-01T00:00:00+00:00'
      device_class: energy
      unit_of_measurement: kWh
      state_class: measurement
    sensor.consumo_diario_valle:
      last_reset: '1970-01-01T00:00:00+00:00'
      device_class: energy
      unit_of_measurement: kWh
      state_class: measurement
    sensor.consumo_diario_llano:
      last_reset: '1970-01-01T00:00:00+00:00'
      device_class: energy
      unit_of_measurement: kWh
      state_class: measurement

Here’s how the graphs are showing so you know what I mean with negative values:

Anyone had this problem?
Thank you beforehand

1 post - 1 participant

Read full topic

Not Panicking...yet! New update killed my system?

$
0
0

Hi,

I’m hoping someone can help me…

I decided to update Home assistan Core to the latest version today and it seemd to take forever until eventually it hung up. I then tried rebooting my Pii and can no longer access my Operating System.

I can see that the Pii has connected to my network and can access the filing system. Thankfully, I backed up before attempting the update so have a up to date .tar file.

Can anyone suggest how I can get my system back up and running again? I’m fearing a full reload but hoping for an easier solution.

Thanks in advance

1 post - 1 participant

Read full topic

Energy dashboard configuration problems

$
0
0

I have some trouble setting up the energy dashboard. Let me describe what i did so far:

I have 3 smart plugs which report the energy usage of the bigger household appliances (washing machine and dryer and dishwasher). I also have a sensor attached directly to the smart meter for the general apartement.

The smart plugs report the energy usage “energy today” and “energy total” in kWh. The smart meter sensor only reports the current usage in W and the counter value in Wh natively, although the actual number it reports is the value in kWh. Therefore i have customized the sensor so that it properly displays its unit as kWh.

Now the individual device section of the energy dashboard accepts sensor values with unit type kWh. For now i have added the “energy total” value. Is that correct or should i add the “energy today” value?
I assume for grid consumption i have to add the smart meter sensor value which reports the current counter value in kWh? Unfortunately the current counter value sensor is not selectable in the dropdown list. But: For experimental reasons in the past i created a daily utility meter sensor from the hardware sensor, and the daily utility meter sensor is shown in the list.

Selecting the utility meter sensor is apparently not applicable, because of that, i have a daily usage bar in relation to each other day, but the label on the y-axis assume that i only use about 0,01kWh per day, which is not correct.

So my 2 questions are:

  • Which sensor should i select for individual device consumption? Energy Daily or Energy Total?
  • If my assumption to add the total counter value of the smart meter to the grid consumption setting is correct, why isnt it selectable in the dropdown field? Has anone else the same problems with the HM-TX-WM and the HM-ES-IEC homematic sensors?

1 post - 1 participant

Read full topic


Help Modbus config

$
0
0

Hi.
I am trying to get all functions to work in modbus from my ventilationsystem.
I have succseded with most of the function but i have 2 functions that uses the same adress and i don´t know how i will accomplish this to work in homeassistant. One of the fuctions is to control overpressure with coil. And it works well.

- name: "Overpressure"
        slave: 2
        address: 3
        write_type: coil
        verify:

Then with the same adress using Holding Register i can control fan speed rang from 0-100 and get respons. Have this working in Homeseer that im trying migrate from.

Any idéa how i schould do to make this work?
Feels like i have tried every example in the Hass Modbus manual.

mod 2 mod1

1 post - 1 participant

Read full topic

Adding Automation destroy yaml code

$
0
0

Hi guys,

if I add an automation via the lovelace interface it’s reformating other automation in an unfunctionable manner.
An automation changing the color on state like this:

      color_name: >
                  {% set color_map = {"0":"black",
                                      "1":"yellow",
                                      "2":"darkgreen",
                                      "3":"yellow",
                                      "4":"darkorange",
                                      "5":"aqua",
                                      "7":"red",
                                      "16":"darkred",
                                      "17":"darkblue",
                                      "98":"hotpink",
                                      "99":"orange"} %}
                  {{color_map[states("sensor.lieschen_status_raw")] }}

is changed to this:

      color_name: "{% set color_map = {\"0\":\"black\",\n                    \"1\"\
        :\"yellow\",\n                    \"2\":\"darkgreen\",\n                 \
        \   \"3\":\"yellow\",\n                    \"4\":\"deeppink\",\n         \
        \           \"5\":\"aqua\",\n                    \"7\":\"red\",\n        \
        \            \"16\":\"darkred\",\n                    \"17\":\"darkblue\"\
        ,\n                    \"98\":\"hotpink\",\n                    \"99\":\"\
        orange\"} %}\n{{color_map[states(\"sensor.lieschen_status_raw\")] }}\n"

This makes the automation not working anymore. Any ideas why this happen and how to avoid this?

1 post - 1 participant

Read full topic

Just upgraded to 2021.9.1 Can not delete backups

Shelly EM returning 0 value and energy readings resettig

$
0
0

I have a Shelly EM energy monitor which is posting data to a MQTT server to use with Home Assistant, around twice a day there is a value of zero being submitted for the total energy used which is causing the new energy dash board to show the full amount of KWH used to be the daily total rather than the difference for the day.
The code I am using to create the sensor is :

- platform: mqtt
  name: Loft Shelly Workbench Total
  state_topic: "shellies/shellyemloft/emeter/1/total"
  value_template: "{{ (value  | float /1000) | round(3)  }}"
  unit_of_measurement: kWh   
  scan_interval: 300

The template sensor used by the energy dashboard is

- platform: template
  sensors:  
    energy_shelly_oven:
      device_class: energy
      friendly_name: "Energy Shelly Loft Oven"
      attribute_templates:
        state_class: total_increasing
        device_class: energy
      unit_of_measurement: 'kWh'
      value_template: "{{ states('sensor.loft_shelly_oven_total') | float | round(3) }}"
      icon_template: mdi:mdi-current-ac  

Does anyone know why this could be happening and how to fix it?

3 posts - 2 participants

Read full topic

Just upgraded to 2021.9.1 ZHA bricks

$
0
0

After updating to Core 9.1 ZHA gives these errors, and does not work.

homeassistant.components.device_automation.exceptions.InvalidDeviceAutomationConfig: Integration ‘zha’ does not support device automation triggers

2021-09-03 14:26:30 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: Integration ‘zha’ does not support device automation triggers (See ?, line ?).

Rebooting is also not possible :

Herstarten Home AssistantCore is mislukt

The system cannot restart because the configuration is not valid: Component error: zha - No module named ‘zigpy.state’

Any solutions for this ?? Thnx in advance

full log : Logger: homeassistant.config
Source: components/device_automation/init.py:104
First occurred: 14:26:30 (57 occurrences)
Last logged: 14:41:09

Invalid config for [automation]: Integration ‘zha’ does not support device automation triggers (See ?, line ?).
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/device_automation/init.py”, line 98, in async_get_device_automation_platform
platform = integration.get_platform(platform_name)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 524, in get_platform
cache[full_name] = self._import_platform(platform_name)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 529, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File “/usr/local/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 972, in _find_and_load_unlocked
File “”, line 228, in _call_with_frames_removed
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 850, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/usr/src/homeassistant/homeassistant/components/zha/init.py”, line 16, in
from . import api
File “/usr/src/homeassistant/homeassistant/components/zha/api.py”, line 21, in
from .core.const import (
File “/usr/src/homeassistant/homeassistant/components/zha/core/init.py”, line 4, in
from .device import ZHADevice
File “/usr/src/homeassistant/homeassistant/components/zha/core/device.py”, line 27, in
from . import channels, typing as zha_typing
File “/usr/src/homeassistant/homeassistant/components/zha/core/channels/init.py”, line 13, in
from . import ( # noqa: F401
File “/usr/src/homeassistant/homeassistant/components/zha/core/channels/base.py”, line 17, in
from …const import (
File “/usr/src/homeassistant/homeassistant/components/zha/core/const.py”, line 7, in
import bellows.zigbee.application
File “/usr/local/lib/python3.9/site-packages/bellows/zigbee/application.py”, line 11, in
import zigpy.state as app_state
ModuleNotFoundError: No module named ‘zigpy.state’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/automation/config.py”, line 106, in _try_async_validate_config_item
config = await async_validate_config_item(hass, config, full_config)
File “/usr/src/homeassistant/homeassistant/components/automation/config.py”, line 74, in async_validate_config_item
config[CONF_TRIGGER] = await async_validate_trigger_config(
File “/usr/src/homeassistant/homeassistant/helpers/trigger.py”, line 50, in async_validate_trigger_config
conf = await platform.async_validate_trigger_config(hass, conf)
File “/usr/src/homeassistant/homeassistant/components/device_automation/trigger.py”, line 17, in async_validate_trigger_config
platform = await async_get_device_automation_platform(
File “/usr/src/homeassistant/homeassistant/components/device_automation/init.py”, line 104, in async_get_device_automation_platform
raise InvalidDeviceAutomationConfig(
homeassistant.components.device_automation.exceptions.InvalidDeviceAutomationConfig: Integration ‘zha’ does not support device automation trigger

1 post - 1 participant

Read full topic

Viewing all 109277 articles
Browse latest View live


Latest Images

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