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

Templated electrical usage since beginning of month?

$
0
0

My power company has a tariff sheet that is based on blocks of usage, month, and time (if you sign up for “Time Based Billing”). In trying to come up with a cost sensor, I can deal with month and time, but I’m uncertain how to stick the amount of electrical usage since the beginning of the month in a template. Do I have to create a sensor that resets every month, or is there an inherent way to do this already with the energy system?

1 post - 1 participant

Read full topic


Averaging three temperature sensors is unsuccessful due to improper indentation

$
0
0

I’m feeling like an idiot because I can’t figure it out but I am quite sure that this is all about an indentation issue…

sensor:
  - platform: template
    sensors: 
      - name: "Outside temperature"
        unit_of_measurement: "°C"
        state: >
          {% set livingroom_outside = states('sensor.ac_livingroom_outside_temperature') | float %}
          {% set kitchen_outside = states('sensor.ac_kitchen_outside_temperature') | float %} 
          {% set bedroom_outside = states('sensor.ac_bedroom_outside_temperature') | float %}
          {{ ((livingroom_outside+kitchen_outside+livingroom_outside) / 3) | round(1, default=0) }}

3 posts - 2 participants

Read full topic

Nabu Casa: Google Home/Assistant as other user

$
0
0

I successfully coupled Nabu Casa to Google but face the following problem:

I set up some voice commands which trigger Home Assistant “actions”. This works fine for me.

When me wife tries the same commands she gets an error back and nothing is happening. I guess this is due to the fact that the connection to Nabu Casa is made with my user and not hers.

Anything I can do about this so she is also able to voice commands?

1 post - 1 participant

Read full topic

Home-assistant.log grows and grows, please can you help me?!?!?

$
0
0

Hi everyone,

maybe someone can help me.
My log file is growing faster than average.
Yesterday it was at 1GB. Today I rebooted the host about 2 hours ago.
The log file is already 66MB and continues to grow.

What could be the reason?

Thanks in advance.

###################################################### LOG

logger:
  default: error
  logs:
    homeassistant.core: error
    homeassistant.components.python_script: error   
    homeassistant.components.template: error

    # Rain Bird
    pyrainbird: error
    homeassistant.components.pyrainbird: error
    homeassistant.components.rainbird: error
    homeassistant.components.sensor: error

###################################################### History

history:
  include:
    entities:
      - sensor.luxtronik_id_web_wp_bz_akt
      - sensor.luxtronik_id_web_analogout2
      - luxtronik.id_web_temperatur_tvl
      - luxtronik.id_web_temperatur_tss
      - luxtronik.id_web_temperatur_tsk
      - luxtronik.id_web_temperatur_trl
      - luxtronik.id_web_temperatur_tbw
      - luxtronik.id_web_temperatur_ta
      - luxtronik.id_web_sollwert_trl_hz
      - luxtronik.id_web_mitteltemperatur
      - luxtronik.id_web_einst_bws_akt
      - luxtronik.id_web_vd1out  
      - luxtronik.id_web_slpout  
      - sensor.solarthermie
      - sensor.warmwasser
      - sensor.heizen
      - sensor.evu
      - sensor.bad_temperature
      - sensor.ble_temperature_a4c13898aecb
      - sensor.bme280_temperature
      - sensor.k1_temperature
      - sensor.k2_temperature
      - sensor.schlafzimmer_temperature
      - sensor.shellyswitch25_ba7900_device_temperature
      - sensor.shellyswitch25_ba854b_device_temperature
#####################################################  Recorder
recorder:
  db_url: mysql://xxx_user:xxxxx@xxx.xxx.xxx.xx:3306/home_assistant?charset=utf8

2 posts - 2 participants

Read full topic

Unable to pair Aqara door & window sensor with ConBee II/deCONZ

$
0
0

I’ve just received a couple of new Aqara door & window sensors and have spent much of the day trying to pair them with an already-working ConBee II/deCONZ setup.

Other Aqara sensors, including 1 same-model door & window sensor, have been working for some months without issue. So have a bunch of Innr smart plugs.

My ConBee II is already on a 2m USB extension and I have been trying to pair the new sensors away from any sources of interference. I have tried all manner of resetting/pressing of the buttons, but nothing seems to help deCONZ discover it (whilst scanning for a new sensor, or as some people have suggested, a new light).

As part of the troubleshooting I have upgraded the firmware of my ConBee II to the latest version (26720700) and deCONZ to 6.1. My existing 8 Zigbee devices continue to operate normally. I’m running HA OS 6.6 in a VM under Proxmox (core-2021.11.2/supervisor-2021.10.8).

Can anyone offer any suggestions, please?

1 post - 1 participant

Read full topic

Firmware update for Leviton DZPA1 outlet switch?

$
0
0

I noticed in Zwavejs2Mqtt that I have a variance in the firmware on my DZPA1 devices (0.5 vs. 1.20).

Screen Shot 2021-11-09 at 12.39.52 PM

I know Zwavejs2Mqtt can perform a firmware update, but I can’t find the firmware update anywhere so far. Anyone accomplished this or know where to find it?

1 post - 1 participant

Read full topic

Mqtt will not work, on terminal I see the message

$
0
0

Hi,
fighting since hours with MQTT,
i install the MOquitto broker, configure with created login/password:

  • username: mhomemqtt
    password: home298heer

and also without user here.

On the terminal I can see the message from my Tasmota device, see:
$mosquitto_sub -h 192.168.55.6 -t # -v -u USERNAME -P PASSWORD | grep -i “$1”
stat/sonoff/smart-switch-22/RESULT {“POWER”:“OFF”}
stat/sonoff/smart-switch-22/POWER OFF
stat/sonoff/smart-switch-22/RESULT {“POWER”:“ON”}

Is something missing, but where?
See screenshots.

Broker is running on same System (Odroid) as the OH installed (192.168.55.6)

3 posts - 2 participants

Read full topic

Can't get Zigbee (Z2MQTT) to work

$
0
0

I’m a new HASS user, trying to get it all to work. I’m running on a Raspberry Pi4, and I’ve got a Z-Wave stick that’s working fine.

I can’t get Zigbee working. I’m using a slae.sh cc2652rb stick and running Mosquitto broker. ZHA seems to fail every time, but I’m not overly concerned with that. I have an Aqara button and 2 outdoor Hue PAR38 bulbs and I’d like to get them all working with Home Assistant.

Z2MQTT added the button and the lights, and all 3 devices show up in Mosquitto. However, I cannot get anything to happen when I press the button. I’ve tried it in a few very simple automations, such as to turn the Hue lights on, or to open my garage door which I have working with Garadget. No joy. I don’t even know how to see if the button press is being registered by Home Assistant.

Any help would be greatly appreciated! I’m totally stuck.

1 post - 1 participant

Read full topic


Zwave-js NVM backup/restore zwave 500->700

$
0
0

Zwave-js has introduced NVM Backup and restore function inside zwavejs2mqtt controllpanel.

There is no documentation of this function that i can find, i was interested to know if its possible to backup a aeotech gen5 stick and restore it to gen7 stick in order to upgrade the stick used?

have anybody tried backup and restore on to different sticks?

1 post - 1 participant

Read full topic

Speak or Notify current state of a sensor?

$
0
0

Hi all, I am looking to create a node red flow that when triggered it would either send a notification to a particular device showing the current value of an entity or it would broadcast / tts google_say the current temperature or state of an entity. does anyone have an example they could post.

Thank you

1 post - 1 participant

Read full topic

Trying to figure out an automation for trash w/ aqara vibration sensor

$
0
0

Hey guys, I have an Aqara vibration sensor on my outdoor trash can that gets picked up by our removal service weekly. The plan was to toggle a home assistant switch when vibration is detected so that I know whether the trash was taken out or if its still inside. However, I only want to detect vibrations that are longer than, say, 30 seconds, since that is about how long it takes for me to bring the trash down the driveway. Any other vibrations that are just a few seconds will happen when I open the trash lid to put a bag inside of it.

On the home assistant trigger, I had it set as below, with the thought that this was looking for the duration of the vibration. However, this didn’t work, and any vibration immediately triggers the automation regardless if it is 30 seconds or not:

platform: state
entity_id: binary_sensor.trash_vibration_sensor_3018
from: 'off'
to: 'on'
for:
  hours: 0
  minutes: 0
  seconds: 30
  milliseconds: 0

What is the best way to go about doing this kind of automation properly with minimizing false positives?

1 post - 1 participant

Read full topic

Pulling device_tracker data from DB and making it useable

$
0
0

I am not sure if anyone has been able to do something like this so i figured i would ask. I would like to pull location data from device_trackers stored in the DB backups that I have. Has anyone determined a method for doing this and the plotting the results on a map of some kind or at least formatting it in a usable way?

1 post - 1 participant

Read full topic

Condition doesn't work correctly in automation

$
0
0

Hello,

I have added this in my automation:
condition: "{{ (state_attr('climate.toon_thermostaat', 'temperature')|float) > 17.0 }}"

But it still fires when the temperature equals 17.0 while it should fire when it’s over 17.0.
How is this possible?

1 post - 1 participant

Read full topic

Noob needs help to convert voltage to percentage

$
0
0

Hi All!

I am a rookie in home assistant, and trying to figure out this:

Using “Battery State Card / Entity Row” card, it works perfectly, but one of the entities has battery level as voltage, not percentage, so it looks like this now:

Capture

That is 2,78 volt, the max is 3 volt.
How can I configure the card to show the battery percentage?

Config is:

type: custom:battery-state-card
title: Battery levels
entities:
  - entity: sensor.sonoff_a48001d0a6_temperature
    name: Kids room temperature sensor
  - entity: binary_sensor.sonoff_a48001d0a8
    name: Laundry room motion sensor
  - entity: binary_sensor.sonoff_livingroom
    name: Living room window sensor

Thank you in advance! :grinning:

3 posts - 2 participants

Read full topic

17track integration - showing statuses of current packages

$
0
0

Hi Everyone,

I’d like to read all currently shipped packages, as shown on the docs:

but instead of package data I get only empty line, like below:
image

Could you help me setting this properly up?

1 post - 1 participant

Read full topic


Telegram integration - telegram_text event not triggered

$
0
0

Hello everyone;

I am trying to setup the telegram integration. I have created a bot, and verified through the telegram API that it gets the messages that I send to it, it is part of a group and inside the telegram app I see “bot has access to messages” so that side should be ok.

On home assistant side, I have configured it like so:

telegram_bot:
  - platform: webhooks
    api_key: 'my_key'
    allowed_chat_ids:
      - some_group_id

notify:
  - platform: telegram
    name: ernesto
    chat_id: some_group_id

The notify platform works perfectly, and I can send messages through the bot without any issue; the problem I face is that no matter what I type in the relevant group, I see no event generated. I tried to subscribe to telegram_text or telegram_command through the developer tools, but nothing pops up; I have a very simple automation set up, but it never gets triggered:

alias: Telegram Trial
description: ''
trigger:
  - platform: event
    event_type: telegram_text
condition: []
action:
  - service: notify.ernesto
    data:
      message: Message received.
mode: single

At this point, I am at a loss. I am 99% positive I am missing a trivial & fundamental step, but I just can’t figure this out.

Thanks to anyone who will find some time to help.

Ciao,
V

1 post - 1 participant

Read full topic

MQTT Invalid Modes

$
0
0

I am running zigbee2MQTT and noticed the following in my HA logs


is showing up thousands of times. Looking at the developer tag for my Drayton Wiser TRVs which I added recently I see

which appear to all be valid modes.

All the climate devices via MQTT appear to have the same list of modes so I don’t appear to be having the capitalisation issue.

What can I do about this warning?

1 post - 1 participant

Read full topic

Troubles in writing a script that stores values and reuses them to set a temperature

$
0
0

So basically here’s my code:

  1. check if outside is cold enough (e.g. +16°C)
  2. if yes, then write to an input_number the current value of the radiator
  3. wait 30 mins for the house to warm up and be cozy
  4. set back the temperature that was originally written in the dedicated input_number

I’ve been hitting the refresh script button more than my computer can count, could somebody help me out?

warmup:
  sequence:
  - condition: numeric_state
    entity_id: sensor.outside_average_temperature
    below: '16'
  - service: input_number.set_value
    target:
      entity_id: input_number.stored_temp_bathroom
    data_template:
      value: '{{ state_attr(''sensor.climate.bathroom_radiator'', ''temperature'')
        | float }}'
  - service: climate.set_temperature
    target:
      entity_id: climate.bathroom_radiator
    data:
      temperature: 24
  - delay:
      hours: 0
      minutes: 30
      seconds: 0
      milliseconds: 0
  - service: climate.set_temperature
    target:
      entity_id: climate.bathroom_radiator
    data:
      temperature: '{{ state_attr(''sensor.climate.bathroom_radiator'', ''temperature'')
        | float }}'
  mode: single
  alias: Warmup
  icon: mdi:thermometer-plus

Oh, I forgot to add the error I get when I run the script:

Failed to call service script/warmup. Invalid value for input_number.stored_temp_bathroom: 0.0 (range 10.0 - 30.0)

1 post - 1 participant

Read full topic

Binary template for plant moisture

$
0
0

Hey guys, been a minute since I posted around here.

Need some help; essentially trying to create a binary sensor, using a template to pull out the “moisture low” option from a plant sensor with a problem. So if the plant needs water, binary sensor is true, or if it doesn’t need water, it’s false.

Just to use a real world example:
{{ state_attr('plant.moneytree', 'problem') }}
Outputs: moisture low, conductivity low, brightness low

Which is great, but i’m only concerned with “moisture low”, since it’s the only thing I can really do anything about, aka water the plant. So how would I check for the presence of that one option out of a list of all possible options?

It seems like a template is the only option, since the sensor “sensor.moneytree_moisture” only reports the value of the moisture, not whether it’s above or below a threshold- which is why I like the plant integration for this. Would be quite annoying to have to make yet another sensor, with a static variable just to know if the moisture if below the certain threshold.

Ideally, it’d be great to create a sensor, which only reported those plants which needed water from all the plants in the plant domain. So that way if a plant was added, and needed water, it would dynamically be reported, instead of having to code each and every plant.

Cheers.

1 post - 1 participant

Read full topic

How to configure Yamaha RX-A740 receiver; is that even possible?

$
0
0

Hi all,

I want to add my Yamaha RX-A740 receiver to Home Assistant (HA).
In a previous install of HA that worked for a short amount of time (a couple of weeks ago), but I have no idea anymore why it worked at that instance. Since, I moved on to an installation of HA (core-2021.11.2) on a Raspberry Pi 4.

I already tried multiple things such as running the discovery mode or adding the receiver manually in configuration.yaml. All without succes.
Below you can find the log when adding the receiver manually. Note that I can go to http://rx-a740-b58dc70:80/YamahaRemoteControl/desc.xml in my browser.

I also looked around for an answer on (probably) the important question in this case: is my receiver compatible with HA. Since it is not an RX-V one, I’m doubting it is (but then again, why did it work for an instant previously?).

I would appreciate some help or clarification on this topic.

PS: I’m a newbie to Home Assistant :slight_smile:

2021-11-09 23:38:20 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548117403008] Received invalid command: mobile_app/push_notification_channel
2021-11-09 23:38:20 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548117403008] Received invalid command: mobile_app/push_notification_channel
2021-11-09 23:38:25 ERROR (SyncWorker_1) [rxv] Failed to fetch http://rx-a740-b58dc70:80/YamahaRemoteControl/desc.xml
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.9/socket.py", line 954, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/local/lib/python3.9/http/client.py", line 1279, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.9/http/client.py", line 1325, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.9/http/client.py", line 1274, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.9/http/client.py", line 1034, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.9/http/client.py", line 974, in send
    self.connect()
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 205, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9e561df0>: Failed to establish a new connection: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='rx-a740-b58dc70', port=80): Max retries exceeded with url: /YamahaRemoteControl/desc.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e561df0>: Failed to establish a new connection: [Errno -3] Try again'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/rxv/rxv.py", line 137, in _discover_features
    desc_xml = self._session.get(
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='rx-a740-b58dc70', port=80): Max retries exceeded with url: /YamahaRemoteControl/desc.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e561df0>: Failed to establish a new connection: [Errno -3] Try again'))
2021-11-09 23:38:25 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up yamaha platform for media_player
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.9/socket.py", line 954, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/local/lib/python3.9/http/client.py", line 1279, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.9/http/client.py", line 1325, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.9/http/client.py", line 1274, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.9/http/client.py", line 1034, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.9/http/client.py", line 974, in send
    self.connect()
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 205, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9e561df0>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='rx-a740-b58dc70', port=80): Max retries exceeded with url: /YamahaRemoteControl/desc.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e561df0>: Failed to establish a new connection: [Errno -3] Try again'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/yamaha/media_player.py", line 152, in async_setup_platform
    receivers = await hass.async_add_executor_job(_discovery, config_info)
  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/yamaha/media_player.py", line 136, in _discovery
    receivers = rxv.RXV(config_info.ctrl_url, config_info.name).zone_controllers()
  File "/usr/local/lib/python3.9/site-packages/rxv/rxv.py", line 132, in __init__
    self._discover_features()
  File "/usr/local/lib/python3.9/site-packages/rxv/rxv.py", line 137, in _discover_features
    desc_xml = self._session.get(
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='rx-a740-b58dc70', port=80): Max retries exceeded with url: /YamahaRemoteControl/desc.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e561df0>: Failed to establish a new connection: [Errno -3] Try again'))

2 posts - 2 participants

Read full topic

Viewing all 107753 articles
Browse latest View live


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