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

Templating Assistance with message (very new to Jinja/Templating)

$
0
0

@ideal2545 wrote:

Hi All,

I was hoping I could get some help, I’m extremely knew to templatign/Jinja2. I’m trying to just get an alert if something is open. I found someones example template and was able to modify it to suite my needs however I feel that its very verbose. I think the message portion is fine but the “title” portion seems like overkill, I just couldn’t figure out how to stick “Title” within the message template, if that makes sense. I basically just don’t want a message at all if nothing is open, and if something is open I want the message and the title.

data_template:
  message: >
    {% set open_things = states | selectattr('entity_id', 'in',
    state_attr('group.downstairs_openings','entity_id')) |
    selectattr('state','in',['on','open']) | map(attribute='name') | list %} 
    {% if open_things | length == 1 %}
      The {{ open_things[0] }} is open.
    {% elif open_things | length > 1 %}
      The {{ open_things[:-1] | join(', ') }}{{',' if open_things | length > 2 else ''}} and {{ open_things[-1]}} are open.
    {% endif %}
  title: > 
    {% set open_things = states | selectattr('entity_id', 'in',
    state_attr('group.downstairs_openings','entity_id')) |
    selectattr('state','in',['on','open']) | map(attribute='name') | list %} 
    {% if open_things | length >= 1 %}
    Something is open!
    {% endif %}
service: notify.notify

Posts: 1

Participants: 1

Read full topic


Using a button in automation to cancel cover closing

$
0
0

@pawael wrote:

Hello everybody,

I have a question for a simple automation. I used google to solve the problem on my own but I failed to create the automation correctly.
I want to close my window cover when the sun goes down. Thats clear and working. Now I want to add a button which cancels the process so that the covers stay open. For this scenario I created a button (on or off). The automation should do the following:
If the sun goes down and the cancel button is on, set the cancel button to off and do nothing else. If the cancel button is off close the cover. I want to use this for my garden door. I want to prevent to close the cover when I’m outside. I hope you understand, what I mean. The problem is that I don’t understand the yaml coding. Is there a good manual (except the manual from Home assistant) to read so I can learn this? This is my code. Sorry in advance for the completely wrong code but I don’t know better:

alias: Arbeitszimmer rollo schließen

trigger:

  event: sunset

  platform: sun

action:

#  

    data_template:

      entity_id: >

        {% if is_state(input_boolean.rollo_az_aussetzen","on") %}

              entity_id: input_boolean.rollo_az_aussetzen

              service: input_boolean.turn_off

        {% else %}

          - service: cover.close_cover

            cover.shelly_shsw_25_e62887 # Rollo Arbeitszimmer

        {% endif %}

Posts: 1

Participants: 1

Read full topic

0.110: Is internal_url useless when https enabled?

$
0
0

@eyager wrote:

With 0.110. internal_url and external_url were introduced to the configuration. The screenshot in the blog entry shows the external_url being https:// with a domain name and the internal_url being http:// with an internal IP. In practice, I have found that what the screenshot shows is impossible.

When https is enabled the port hass is bound to will no longer serve unencrypted traffic. Entering https:// with the internal IP address, will cause whatever client connecting to fail with a SSL certificate error because the certificate’s common name will belong to the domain name of the external_url and not the internal IP address.

Unless I am mistaken, with under most circumstances unless you have a wildcard SSL certificate https the internal_url and and external_url will have to be the same.

Posts: 1

Participants: 1

Read full topic

Battery icon with question mark why? dynamic icon is not working :-(

$
0
0

@Dreamoffice wrote:

Hi
ich have a problem with the MQTT Signal of my mower. i get the SOC of the battery via MQTT with this topic:

gardena/mower/battery/charge

The sensor.yaml looks like this:

- platform: mqtt
  state_topic: "gardena/mower/battery/charge"
  name: "gardena r70li battery"

then i customized it like this in customize.yaml

sensor.gardena_r70li_battery:
  friendly_name: Batterie SOC
  device_class: battery

But in Lovelace i don t get the dynamic icon.


what is wrong?

Posts: 1

Participants: 1

Read full topic

Change From Icon to Text on Entity Card

$
0
0

@Beezedogg wrote:

Hi, new’ish to HA, and have hopefully an easy question. I have installed the MyQ Garage Door Opener and integrated it with HA. That part is smooth, but I wanted to change the Lovelace UI so that instead of Up/Down Arrows on the Entity Card, it showed ‘Open’ and ‘Close’. Is there an easy way to do that? Additionally, I wanted to ensure similar to the icons, the Text would be Bold if you can action it, and light colored if you can’t select it. Thanks in advance!

Posts: 1

Participants: 1

Read full topic

More options for visualising binary or categorical sensors

$
0
0

@parautenbach wrote:

I’ve been using the built-in history-graph card and recently started using the mini-graph-card custom card to display binary sensors (on/off, etc.) and categorical sensors (e.g. activity being stationary/walking/running/driving, etc.).

The former has very few options to customise it (e.g. you can’t change the colours and the label isn’t made to fit if it’s slightly too long).

I’m not sure the latter works well for me either (at least not visually). While it’s possible to use it to display binary sensors, it is clearly not the original intention. Otherwise, it’s a great card and I’m primarily using it for all other graphs.

I like the horizontal bar of the former more (compared to the latter’s translucent overlaid plots), as well as the tooltip which will highlight a whole period for a state with a start and end time.

So, it seems like I’m stuck between two options…

I would like to know if there is anybody out there that have suggestions or are aware of other options that I may not be aware of.

Posts: 1

Participants: 1

Read full topic

Switch Tuya Zigbee No Neutral Wire - models X711 X712 X713

$
0
0

@Georg wrote:

Want to share my experience with a wall switch device I’ve purchased recently It’s a No N-line Zigbee version.
Link to the device I’ve purchased on AliExpress -> https://aliexpress.ru/item/4000298926256.html

  • First of all, it really works without N-line and has no impact to my LED lights. No capacitors needed. I was ready to see a slight glowing of my LEDs when the switch is off.
  • This switch is a single Zigbee End Device. Not a router. This one was a surprise to me. On the other hand seems to be very ogical for a device without a dedicated power line.
  • Already supported by zigbee2mqtt
  • When integrated to HA it is a set of switches:
    pasted image 0
  • Works without Zigbee pairing (obviously). No delay b/w pressing a button and toggling the electric connection.
  • When a switch is toggled via ZigBee, there’s no sound at all.
  • No actions like double-click or hold-release.

And some pictures:

Posts: 1

Participants: 1

Read full topic

Is kiosk mode available in 0.110

$
0
0

@APayerl wrote:

So I found that Home Assistant has support for a kiosk mode since 0.49(https://www.home-assistant.io/blog/2017/07/15/release-49/), but I am not able to enter it?..
I have tried to visit the URL hassio_local_ip:8123/kiosk/views_url_in_lovelace but without luck…
Always just getting a 404: Not Found message.
I’m using lovelace and 0.110. Is this functionality removed in a later release? Only finding separate scripts when searching for kiosk mode…

Posts: 1

Participants: 1

Read full topic


How TO - VoiceAssistant with Snips and reSpeaker over MQTT für Dummies [GERMAN]

$
0
0

@asher9971 wrote:

Hallo Liebe HA Community,
ich bemühe mich bereits seit 2 Wochen ein vernünftiges Voice-Assistant System zu konfigurieren. Nun habe ich ein gutes Basis-Setup auf dem sich aufbauen lässt.
Hatte noch keine Zeit das Thema auf Englisch zu übersetzen, evtl. kann sich hier jemand dafür engagieren.

Setup:
1x HassIO auf RasPi 4
1x Raspi 3b+ with reSpeaker 4HAT (Debian9 Stretch!!!) REALLY IMPORTANT

Anleitung reSpeaker

UNBEDINGT Debian9 (Stretch) verwenden
sudo apt install git -Y
sudo apt-get update
git clone https://github.com/respeaker/seeed-voicecard.git
cd seeed-voicecard
sudo ./install.sh -> sollte auf /boot nicht genug frei sein kann das skript unter "if [ “$free_space” -lt “20” ] auf 20MB runtergeschraubt werden und es funktioniert trotzdem
reboot

sudo raspi-config

Select 7 Advanced Options
Select A4 Audio
Select 1 Force 3.5mm (‘headphone’) jack
Select Finish

dann mittels arecord -L prüfen ob reSpeaker erkannt wurde,
sonst debuggen mittels Suchmaschine deiner Wahl
Audio-Output kann mittels

amixer cset numid=3 2 (hdmi)
amixer cset numid=3 1 (aux)

umgestellt werden

Anleitung Snips auf remote Pi (Satellite Pi)

sudo apt install snips-hotword-model-heysnipsv4
sudo apt install snips-satellite
sudo apt install snips-hotword (nicht sicher ob benötigt evtl in snips-satellite enthalten)
sudo apt install snips-autio-server (nicht sicher ob benötigt evtl in snips-satellite enthalten)

sudo nano /etc/snips.toml

dort dann die mqtt konfiguration vornehmen (mqtt server von home assistant)

[snips-audio-server]
bind = “siteID@mqtt” -> analog zu den anderen komponenten in der snips.toml
dann als service

sudo systemctl start snips-audio-server
sudo systemctl start snips-hotword
sudo systemctl start snips-satellite (k.A ob das nötig ist)

snips kann gut debugged werden mittels

sudo apt install snips-watch

und dann

snips-watch -vvv

Anleitung HomeAssistant, Rhasspy und Events

Rhasspy als AddOn installieren
dann das WebUi öffnen, das läuft unter Port 12101

Reiter -> Settings

  1. Unter Mqtt entsprechende Konfig hinterlegen (IP-Adresse von HA NICHT localhost!)

  2. Als Intent-Handler nehmen wir HomeAssistant, da wir dort Aktionen setzten wollen.
    Ich nutze dazu events, da Intents bei mir nicht funktionierten. URL auf default belassen!!

  3. Als Wake-Word nutze ich “Wake up on MQTT” da snips-hotword in das Topic herms/hotword/default/detected schreibt wenn “Hey Snips” gesagt wird
    Um zu vermeiden, dass nach dem Wake-Word bis ins Timeout (30 Sec) aufgezeichnet wird sollte man

  4. webrtcvad als VoiceDetection verwenden!!
    Somit wird vermieden, dass die .wav Datei dann 30s lang ist -> STT benötigt dann sehr lange um alles zu analysieren.

  5. Als Speech-Recognition benutze ich pocketsphinx. Mit allen anderen Optionen hatte ich nur Probleme.

  6. Intent Recognition nehme ich Mycroft Adapt. Das funktionierte bei mir am schnellsten.

  7. Text-To-Speech nutze ich pico-tts, da es das “natürlichste” standard Voice-Model hat die man gut versteht. Dort als Language de-DE eintragen

  8. Audio Recording muss der Punkt Get microphone input remotely with MQTT gewählt werden. Dort läuft ein Audio-Stream über MQTT vom snips-audio-server
    Und der Punkt “Stream Forever” muss ausgewählt sein

  9. Audio Playing, je nach Anforderung, sollte an dem Lautsprecher des Satellite Servers ausgegeben werden, dann über MQTT -> dann schickt Rhasspy den Stream zum snips-audio-server

Im Rhasspy unter dem Reiter Words kann man eigene Wörter definieren, die Rhasspy können sollte. (Incl. Pronunciation generator oben)
Unter Sentences können dann die Intents bzw Events erstellt werden die im Home Assistant dann angezapft werden.

HomeAssistant Event Handling (Automatisierung)

Erstelle eine beliebige Automatisierung

  1. Trigger
Ereignis:
rhasspy_NameVonRhasspyEvent 
zb: rhasspy_ChangeLightState -> [ChangeLightState] muss unter Sentences im Rhasspy angelegt sein

Dann beliebige Aktion setzen

Um eine Sprach-Ausgabe vom HA zum Rhasspy durchzuführen muss der Dienst rhasspy_Speak in der configuration.yaml vom HA angelegt werden.

Ich habe dazu folgende Zeile hinzugefügt:

rest_command: !include rest_commands.yaml

und ein neues File unter /config/ angelegt mit dem Namen rest_commands.yaml
mit folgendem Inhalt:

rhasspy_speak:
url: ‘httpURLofHA/api/text-to-speech’
method: ‘POST’
headers:
accept: ‘text/plain’
Content-Type: ‘text/plain’
payload: ‘{{ data_template }}’

Unter payload habe ich data_template anstatt “payload” eingesetzt, damit ich auch Sensor-Daten zurückgeben kann. Wie zb. Es ist {{ states.sensor.time.state }} Uhr.
Dann muss auch in der Automatisierung der Key “data_template” verwendet werden!!

In der configuration.yaml hab ich noch

tts:
- platform: marytts

hinterlegt. Bin nicht sicher ob das notwendig ist!

Steuern eines Medienplayers! (MDP) = Music Player Daemon-Server

Ich hab am Satelliten Server, zusätzlich zum Snips, mdp und die alsa-utils installiert (sollten jedoch schon installiert sein durch snips)

sudo apt-get install mpd mpc alsa-utils

in der sudo nano /etc/mpd.conf habe ich dann folgendes angepasst:
bind_to_address “any”
und kompletter audio_output vom type httpd aus dem Kommentarblock ausgenommen,
damit dieser MDP Server auch gesteuert werden kann
music_directory habe ich noch auf meinen Mountpoint von der NAS gelenkt.

Dann das ganze neustarten und updaten
sudo /etc/init.d/mpd restart
sudo mpc update

Zum Playlist erstellen hab ich die Android App MPDroid benutzt, damit man dann diese auch vom HA abspielen kann.
In der configuration.yaml setze ich

media_player:
- platform: mpd
host: IP-OHNE-PORT vom MDP Host (Satellite Server

Als Test-Skript kann man dann zb folgendes erstellen:

Aktion: Dienst ausführen
Dienst: media_player.play_media
Name: mediaplayer.mdp
Dienstdaten:
media_content_id: Reggae
media_content_type: playlist

Mit weiteren Aktionen wie shuffle_set next_track oder pause kann man dann noch verfeinern.

Ich habe auch eine Automatisierung erstellt die auf das MQTT Topic
hermes/hotword/default/detected
hört
und dann an über den Dienst media_player.pause
die Musik pausiert, damit mich Snips besser versteht

Bin für Verbesserungs-Vorschläge gerne offen!

LG aus Österreich

Posts: 2

Participants: 1

Read full topic

Flic button not working on new HASSIO installation

$
0
0

@paul.newby66 wrote:

Hi,

I recently built a new HASSIO setup on Pi3b+, all seemed to go ok and I managed to get most of my previous Hassbian configuration working. However even though I have installed the Flic integration from the pschmitt’s repository. It starts ok and the service is running,

Available HCI devices found:
hci0
Trying hci0
hci0 is busy, shutting down and retrying…
Successfully bound HCI socket
Flic server is now up and running!
Initialization of Bluetooth controller done!

however I cannot see my button. I have held the button for 7 seconds and still nothing. Is there a way to manually pair the button. I’m a real noob to home automation and any help is much appreciated.

Paul.

Posts: 1

Participants: 1

Read full topic

Z wave devices disappear after upgrade

$
0
0

@dsonenberg wrote:

I few of my z-wave devices are missing after upgrading to 0.110 but I’m not sure if it’s directly tied to the upgrade. I few days ago before installing the upgrade I had some other z-wave issue (detailed here). I have a backup from before the upgrade, should I try to restore to that or is there some other debugging I should do? I had no problems with z-wave until this week, and would like to get things stable again. TIA

Posts: 1

Participants: 1

Read full topic

No GUI after upgrading to 0.110.0 and 0.110.1

$
0
0

@steffanlm wrote:

Hi all,
I’ve been using Home Assistant since versions around 0.50 - and tons of upgrades varying from venv on a RPi, to docker containers on Ubuntu - and now for the past 3 months HASS IO, has certainly learned me a bit about troubleshotting, reading forums and the configuration of HASS.

But after last nights upgrade from 0.109.3 to 0.110.0, the GUI suddenly stopped serving me, along with the API, so NodeRed cannot do any automations in the meantime. I got a ERR_CONNECTION_REFUSED in the browsers and the IOS app doesn’t work either.

I’ve tried like every trick that I know off, disabling custom_components, updating components, downgraded core version but nothing seems to help.

Is anyone having the same issue or can anyone lure out, what the problem really is?

I’m running HASS IO on an ESXi 6.0 server, and I can use the CLI and SMB shares without any problems.

My configuration is here:

homeassistant:
  auth_providers:
    - type: homeassistant
    - type: legacy_api_password
      api_password: *
    - type: trusted_networks
      trusted_networks:
        - 10.0.1.0/24
        - 127.0.0.1
  # Name of the location where Home Assistant is running
  name: *
  # Location required to calculate the time the sun rises and sets
  latitude: 55.*  
  longitude: 11.*
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 40
  # metric for Metric, imperial for Imperial
  unit_system: metric

  time_zone: Europe/Copenhagen
  
  customize: !include customize.yaml

http:
  ip_ban_enabled: False
  login_attempts_threshold: 5

mobile_app:

system_health:

hacs:
  token: *

vera:
  vera_controller_url: http://10.0.1.*

ffmpeg:
  
climate:
  - platform: touchline
    host: http://10.0.1.*
  
remote:
  - platform: hueremote

nibe:
    client_id: **
    client_secret: **
    redirect_uri: http://10.0.1.181:8123/api/nibe/auth
    writeaccess: false 
    # set to true to support climate write (needs new tokens)

    systems:
        # required system identifier
        - system: 64628

          # list of units to retrieve data for
          units:
              # unit to retrieve data for (0 is the master unit and should always exist) 1 for slave! ie F2120
            - unit: 0

              # retrieve categories, leave empty for all, remove tag for none
              categories: True
                #- SYSTEM_1  
                # category identifier like 'SYSTEM_1'
                #- <identifer>

              # retrieve status parameters, remove tag for none
              statuses: True

              # optional list of additional parameters to retrieve, can be done here or on the sensor platform
              #sensors:
                #- 40004
                #- <parameter identifier>

              # optional list of switches (note, for ability to change, you need to use writeaccess and have payed license)
              #switches:
              #  - hot_water_boost
            - unit: 1
              categories: True
              statuses: True
          climates: True
          water_heaters: True
          # Optional fan entities
          fans: True  
          
frontend:
config:
logger:
esxi_sensor:
updater:
recorder:
  purge_keep_days: 5
  auto_purge: true
  commit_interval: 1

discovery:
history:
logbook:
influxdb:
  host: *
  port: 8086
  tags_attributes: friendly_name

sun:

media_player:
google:
  client_id: *
  client_secret: *
ios:
notify: 
 mqtt:
  broker: 10.0.1.119
  port: 1883  
  client_id: *
  keepalive: 60
  username: *
  password: *
  discovery: true
  discovery_prefix: homeassistant

From the log file, I can see theres some issues with COAP - which could relate to the Tradfri integration - and that the controller is not online. I can rule out every other errors by disabling the integrations in configuration and removing from the custom_integrations folder - but still no GUI.

I’ve pasted the log file here, with all warnings and errors:

2020-05-22 15:33:41 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for edgeos which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-05-22 15:33:41 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for nibe which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-05-22 15:33:41 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-05-22 15:33:43 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hueremote which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-05-22 15:33:43 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for huesensor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-05-22 15:33:43 WARNING (MainThread) [custom_components.nibe1] The 'climates' option (with value 'True') is deprecated, please remove it from your configuration
2020-05-22 15:33:43 WARNING (MainThread) [custom_components.nibe1] The 'water_heaters' option (with value 'True') is deprecated, please remove it from your configuration
2020-05-22 15:33:43 WARNING (MainThread) [custom_components.nibe1] The 'fans' option (with value 'True') is deprecated, please remove it from your configuration
2020-05-22 15:33:43 WARNING (MainThread) [custom_components.nibe1] The 'statuses' option (with value 'True') is deprecated, please remove it from your configuration
2020-05-22 15:33:43 WARNING (MainThread) [custom_components.nibe1] The 'statuses' option (with value 'True') is deprecated, please remove it from your configuration
2020-05-22 15:33:43 ERROR (MainThread) [homeassistant.setup] Setup failed for esxi_stats: Integration not found.
2020-05-22 15:33:43 WARNING (MainThread) [custom_components.edgeos1.managers.password_manager] EdgeOS password is not encrypted, please remove integration and reintegrate
2020-05-22 15:33:44 WARNING (MainThread) [homeassistant.components.remote] RemoteDevice is deprecated, modify HueGenericRemote to extend RemoteEntity
2020-05-22 15:33:44 WARNING (MainThread) [homeassistant.components.remote] RemoteDevice is deprecated, modify HueRemoteZLLSwitch to extend RemoteEntity
2020-05-22 15:33:44 WARNING (MainThread) [homeassistant.components.remote] RemoteDevice is deprecated, modify HueRemoteZGPSwitch to extend RemoteEntity
2020-05-22 15:33:44 WARNING (MainThread) [homeassistant.components.remote] RemoteDevice is deprecated, modify HueRemoteZLLRelativeRotary to extend RemoteEntity
2020-05-22 15:33:44 WARNING (MainThread) [homeassistant.components.binary_sensor] BinarySensorDevice is deprecated, modify HueBinarySensor to extend BinarySensorEntity
2020-05-22 15:33:44 ERROR (MainThread) [homeassistant.config] Platform error: sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config.py", line 777, in async_process_component_config
    platform = p_integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 273, in get_platform
    f"{self.pkg_path}.{platform_name}"
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.huesensor.sensor'
2020-05-22 15:33:44 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for authenticated which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-05-22 15:33:46 WARNING (MainThread) [homeassistant.components.hue.light] Please check for software updates of the Badevaerelse 3 bulb in the Philips Hue App.
2020-05-22 15:33:51 ERROR (MainThread) [pytautulli] Can not load data from Tautulli: http://10.0.1.81:8181/api/v2?apikey=24aafdf318d94fb7aed919cf2c5a48c5&cmd=get_home_stats - 
2020-05-22 15:33:54 WARNING (MainThread) [homeassistant.config_entries] Config entry for upnp not ready yet. Retrying in 5 seconds.
2020-05-22 15:33:55 WARNING (MainThread) [homeassistant.components.climate] ClimateDevice is deprecated, modify NibeClimate to extend ClimateEntity
2020-05-22 15:33:55 WARNING (MainThread) [homeassistant.components.climate] ClimateDevice is deprecated, modify NibeClimateRoom to extend ClimateEntity
2020-05-22 15:33:55 WARNING (MainThread) [homeassistant.components.climate] ClimateDevice is deprecated, modify NibeClimateSupply to extend ClimateEntity
2020-05-22 15:33:55 WARNING (MainThread) [homeassistant.components.climate] ClimateDevice is deprecated, modify NibeThermostat to extend ClimateEntity
2020-05-22 15:33:55 WARNING (MainThread) [homeassistant.components.switch] SwitchDevice is deprecated, modify NibeSwitch to extend SwitchEntity
2020-05-22 15:33:55 WARNING (MainThread) [homeassistant.components.binary_sensor] BinarySensorDevice is deprecated, modify NibeBinarySensor to extend BinarySensorEntity
2020-05-22 15:33:55 WARNING (MainThread) [homeassistant.components.water_heater] WaterHeaterDevice is deprecated, modify NibeWaterHeater to extend WaterHeaterEntity
2020-05-22 15:34:05 WARNING (MainThread) [homeassistant.components.climate] Setup of climate platform nibe is taking over 10 seconds.
2020-05-22 15:34:05 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform nibe is taking over 10 seconds.
2020-05-22 15:34:05 WARNING (MainThread) [homeassistant.components.water_heater] Setup of water_heater platform nibe is taking over 10 seconds.
2020-05-22 15:35:17 ERROR (MainThread) [coap] Exception CancelledError() can not be represented as errno, setting -1.
2020-05-22 15:35:17 WARNING (MainThread) [homeassistant.config_entries] Config entry for tradfri not ready yet. Retrying in 5 seconds.
2020-05-22 15:35:18 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiocoap/transports/tinydtls.py", line 157, in _run
    yield from self._connecting
concurrent.futures._base.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiocoap/transports/tinydtls.py", line 169, in _run
    self.coaptransport.new_error_callback(-1, self)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 203, in _dispatch_error
    for key, (monitor, cancellable_timeout) in self._active_exchanges.items():
AttributeError: 'NoneType' object has no attribute 'items'

Posts: 6

Participants: 4

Read full topic

Home Assistant not responding to Switch changes in tellstick duo

$
0
0

@netwomble wrote:

I just upgraded to 0.110.1 from a much older version (was running Ubuntu 18.04 with Python 3.6, just upgraded to 20.04)

Most things are working okay, however my Tellstick switches no longer update Hass. Sensors are fine, so there is communication there.

They show up in the gui, and tdtool shows that telldusd is receiving the signals from the switches.
No related errors in the logs that I can see. It even says it detected the switches without issue.

Any ideas on how to troubleshoot this, or what could be wrong?

Posts: 1

Participants: 1

Read full topic

Utility meter reports (daily/monthly/yearly)

$
0
0

@maxwroc wrote:

Long long time ago I was using Domoticz where you could easily see the usage reports from utility meters (for current day/week/month/year). Additionally you were able to compare the year over year usage. Due to lack of such functionality on HA I was hesitating from migrating from Domoticz to HA for quite a while.

Example report from Domoticz (taken from the web - not mine):

Currently I was able to achieve weekly usage with utility meter and custom mini-graph-card (which I have contributed to by adding daily aggregation)
image

I was/am considering couple of solutions:

  • Extending purge settings for history/recorder (currently I have set it for 14d) and just use current (above) solution to display last month
  • Create a new card or extend mini-graph-card to call InfluxDB to fetch the data
  • Create automation which would store the value in some DB/file. Then read the content via file platform sensor and later parse the value via some custom lovelace card (e.g. mini-graph-card)
  • Create a custom integration which would be aggregating values and exposing them via single sensor

First option is not a good idea as it will just increase a lot the DB size (with really redundant data - as you cannot set retention policy per entity and I don’t want to store all sensor readings through the day for each day in the month). And it would not solve the problem of monthly aggregation (for the year).

Second option I’m not sure if it’s feasible as I don’t know if I won’t have problems accessing InfluxDB via ajax. And anyway AFAIK there is no way currently to do monthly/yearly aggregation as it’s query lang doesn’t support it. I have read that there is a way to tag the entries with some plugin for Telegraph. This way you can mark each item with day / month name / year. But this would require installing additional custom integration (telegraph) then the plugin in the telegraph for tagging… So it looks like a long and complex journey which can be blocked at some point by a random problem (so it may turn out to be just a waste of time).

Third one looks reasonable and feasible but there is a lot of custom configuration and I was wondering if there is maybe some easier solution.

The other option which I consider is to write custom integration which would do the aggregation, store the calculated values in HA DB and expose the final results as a sensor. The problem is that I’m not a Python dev and again this can take some time. It would require as well a custom card to display such data I assume.

So that is why I’m here asking if someone had similar problems and solve them somehow.

The other thing would be nice to know is how many people would be interested in such functionality (hit “like” below this post if you are).

Posts: 1

Participants: 1

Read full topic

Upgrade to Home Assistant Core 0.110 on a Mac

$
0
0

@wnaylor wrote:

How do I upgrade my Home Assistant 0.108.9 to Home Assistant Core 0.110 on a Mac. Can anyone help me. Thank you

Posts: 1

Participants: 1

Read full topic


Sensor to count open windows

$
0
0

@brad999 wrote:

I’m trying to setup a sensor to show the count of my open windows. I’ve setup a group with all my window binary sensors and am trying to count the ones that are “on” with the following sensor. I put this together after going through several iterations of examples on the forum but none are working for me. This current example will work with a count of up to “1” but even with more than one open it still just shows “1”.

Any help would be greatly appreciated as these templates are rather confusing to me.

window_count:
  value_template: >-
    {{ states | selectattr('entity_id', 'in', state_attr('group.windows', 'entity_id')) | selectattr('state', 'eq', 'on') | list | count | int }}

Posts: 1

Participants: 1

Read full topic

Zooz Zen21 Switch Not Taking Configuration Options

$
0
0

@dmo012 wrote:

Hi guys! I just updated three of my Zooz Zen21 switches to the latest firmware described here. I’ve had a fourth switch already updated for probably a month now. It seems one of my switches just won’t take any changes to the configuration options. This means I can’t enable the scene controller on the switch. I assume because the options are there that means I updated the zwcfg file correctly for that node. Any ideas why I might be stuck on this one switch? Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Permissions error for folder watcher

$
0
0

@parautenbach wrote:

I’m trying out the folder_watcher integration but I can’t figure out why I’m getting a OSError: Permission denied error (generated by the listener code, AFAICS). It’s close to the example in the docs for this integration.

Minimal config:

homeassistant:
  ...
  whitelist_external_dirs:
    - /tmp

shell_command:
  copy_files: "cp /tmp/test_*.* /home/homeassistant/.homeassistant/www/gallery/"

folder_watcher:
  - folder: /tmp/
    patterns: 
      - "test_*.*"

automation:
  - alias: Copy New File
    initial_state: true
    trigger:
      platform: event
      event_type: folder_watcher
      event_data:
        event_type: created
    action:
      service: shell_command.copy_files

Files, directories and permissions:

/tmp $ ls -lah .
total 180K
drwxrwxrwt 10 root          root           12K May 22 17:39 .
~/.homeassistant/www/gallery $ ls -lah .
total 3.8M
drwxr-xr-x 2 homeassistant homeassistant 4.0K May 22 17:38 .

I’ve called the copy script from the dev tools and that works.

I can’t see anything wrong. I’d appreciate a bit of help.

PS: I’ve had another automation copying files also from /tmp but triggered by a motion sensor and that’s been working forever, so I’m quite certain my whitelist and permissions are fine (at least fine enough for that to work).

Posts: 1

Participants: 1

Read full topic

No TTS after upgrade to .110

$
0
0

@wolfer4004 wrote:

Were there breaking changes to Google Translate with this upgrade? I no longer have TTS. I can hear the “start up” sound, but my Google Homes no longer speak. My Grandfather clock is working, so I know its will play Mp3 and music. I just can’t figure out why speech isn’t working.

Posts: 3

Participants: 2

Read full topic

Update to 110 made icons small

Viewing all 106043 articles
Browse latest View live


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