Somebody knows how to integrate extended values v7 to V12 into home assistant. Standard values integration no problem, this works fine. Is there for the extended values V7 to V12 a special name?
Thanks
1 post - 1 participant
Somebody knows how to integrate extended values v7 to V12 into home assistant. Standard values integration no problem, this works fine. Is there for the extended values V7 to V12 a special name?
Thanks
1 post - 1 participant
Hi all - wonder if anyone can assist with what I suspect is a YAML error but cannot get my head round. I have the following code which I expect to produce two badges, which each change based on a person’s home/away status. However only the first badge shows up, not the second.
badges:
- type: entity-filter
entities:
- entity: person.matt
name: Matt
image: /local/matt.png
state_filter:
- "home"
- type: entity-filter
entities:
- entity: person.matt
name: Matt
image: /local/matt-away.png
state_filter:
- "away"
- type: entity-filter
entities:
- entity: person.louise
name: Louise
image: /local/louise.jpg
state_filter:
- "home"
- type: entity-filter
entities:
- entity: person.louise
name: Louise
image: /local/louise-away.jpg
state_filter:
- "away"
Can any of the clever bods on this forum tell me what I’m doing wrong?
Thanks
1 post - 1 participant
Hey everyone, I’ve been racking my brain over this for the past month and it’s killing me.
For some reason one of my Echo devices gives a false signal to turn off my downstairs thermostat when my kids activate it. I have to look into fixing that, but that’s for another day.
In the interim, I’ve been trying (and failing) to get an automation working that notifies my when my downstairs thermostat turns off.
Otherwise it stays off for extended periods of time and when I walk downstairs its freezing.
Everything appears to be configured properly and if I run it it works, but whenever the thermostat is turned off, it is not running.
Any help would be greatly appreciated.
alias: Downstairs Thermostat OFF - Notification
description: ''
trigger:
- platform: device
device_id: ef38f1a63b17d93de134f0a6f39e5525
domain: climate
entity_id: climate.downstairs_thermostat
type: hvac_mode_changed
to: 'off'
condition:
- condition: device
device_id: ef38f1a63b17d93de134f0a6f39e5525
domain: climate
entity_id: climate.downstairs_thermostat
type: is_hvac_mode
hvac_mode: 'off'
action:
- service: notify.mobile_app_iphone_13_pro
data:
title: Downstairs Thermostat - OFF
message: The downstairs thermostat has been turned OFF
- service: notify.mobile_app_sayurilv
data:
message: The downstairs thermostat has been turned OFF
title: Downstairs Thermostat - OFF
mode: single
1 post - 1 participant
Hello,
I am looking to create and update a sensor from mqtt (Mosquitto). In my final solution, this will be from an external program (such as Java or Pyhton) which today retrieves information from my heating. Currently this program produces a json file that Home Assistant reads every 5 minutes and I am looking to transform my program to send the information directly to Mosquitto and be retrieved in Home Assistant.
Before going into the code, I’m currently testing through the mosquitto_pub functions (and inspired by what I can see on Zigbee2MQTT) but I can’t get anywhere. I also tried to create a sensor with “platform: mqtt” but I will not go further.
Here is my Json currently:
{
"time" : "2022-01-05 15:25:01",
"etat" : "5",
"temperatureActuel" : 20,
"puissanceReel" : 3,
"temperatureReglage" : 21,
"puissanceReglage" : 3,
"alarme" : "0"
}
I feel like you have to do attribute by attribute (based on Zigbee2MQTT) with things like this:
mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/sensor/Ravelli_Information/time/config" -m '{"name": "Ravelli_Information", "unique_id": "Ravelli_Information_time", "json_attributes_topic":"homeassistant/sensor/Ravelli_Information", "state_topic": "homeassistant/sensor/Ravelli_Information/state", "value_template": "{{ value_json.time}}"}'
mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/sensor/Ravelli_Information/etat/config" -m '{"name": "Ravelli_Information", "unique_id": "Ravelli_Information_etat", "json_attributes_topic":"homeassistant/sensor/Ravelli_Information", "state_topic": "homeassistant/sensor/Ravelli_Information/state", "value_template": "{{ value_json.etat}}"}'
Thanks in advance
1 post - 1 participant
Hi,
i am planing to send a attribute of a sensor as an payload with an restful-sensor.
the attribute looks like this:
my restful-sensor looks like this:
sensor:
- platform: rest
resource: "http://192.168.0.108"
method: POST
headers:
Content-Type: "application/x-www-form-urlencoded;charset=UTF-8"
payload: "text" + {{states.sensor.aws_test.attributes.refresh_token}} + "text"
json_attributes:
- access_token
value_template: ":D"
name: AWS_Incoming
scan_interval: 3000
I doesn’t work this way and I tried many different options I found on the community, but no success…
2 posts - 2 participants
Using Nginx from the LinuxServer/SWAG docker install and am having some weird stuttering and delays in loading on Home Assistant pages sometimes. Running Home Assistant Container. If I access the domain through Nginx, and if I goto Developer Tools → States, for example, the list will take about 10 seconds to fully load and let the page be usable/scrollable. Sometimes it still lags and almost doesnt fully load. If I connect direct to Home Assistant over http, I dont have this issue. I’ve gone through a bunch of example Home Assistant NGINX configs, but dont see any major differences. Is there a buffering or caching value I need to tweak? Most Lovelace pages work just fine, its mainly large dynamic pages, like the States page.
Using this Docker container to run Nginx and get certificates:
Instead of scrubbing configs, Ill post the defaults it has for a Home Assistant template. All I changed was the relevant server IPs.
Thanks.
proxy-conf:
## Version 2021/10/11
# make sure that your dns has a cname set for homeassistant and that your homeassistant container is not using a base url
# As of homeassistant 2021.7.0, it is now required to define the network range your proxy resides in, this is done in Homeassitants configuration.yaml
# https://www.home-assistant.io/integrations/http/#trusted_proxies
# Example below uses the default dockernetwork ranges, you may need to update this if you dont use defaults.
#
# http:
# use_x_forwarded_for: true
# trusted_proxies:
# - 172.16.0.0/12
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name homeassistant.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
# enable for ldap auth, fill in ldap details in ldap.conf
#include /config/nginx/ldap.conf;
# enable for Authelia
#include /config/nginx/authelia-server.conf;
location / {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /ldaplogin;
# enable for Authelia
#include /config/nginx/authelia-location.conf;
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app homeassistant;
set $upstream_port 8123;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~ ^/(api|local|media)/ {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app homeassistant;
set $upstream_port 8123;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}
ssl.conf
## Version 2021/09/19 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/ssl.conf
### Mozilla Recommendations
# generated 2020-06-17, Mozilla Guideline v5.4, nginx 1.18.0-r0, OpenSSL 1.1.1g-r0, intermediate configuration
# https://ssl-config.mozilla.org/#server=nginx&version=1.18.0-r0&config=intermediate&openssl=1.1.1g-r0&guideline=5.4
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
ssl_session_tickets off;
# intermediate configuration
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;
# OCSP stapling
ssl_stapling on;
ssl_stapling_verify on;
### Linuxserver.io Defaults
# Certificates
ssl_certificate /config/keys/letsencrypt/fullchain.pem;
ssl_certificate_key /config/keys/letsencrypt/privkey.pem;
# verify chain of trust of OCSP response using Root CA and Intermediate certs
ssl_trusted_certificate /config/keys/letsencrypt/fullchain.pem;
# Diffie-Hellman Parameters
ssl_dhparam /config/nginx/dhparams.pem;
# Enable TLS 1.3 early data
ssl_early_data on;
# HSTS, remove # from the line below to enable HSTS
#add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
# Optional additional headers
#add_header Cache-Control "no-transform" always;
#add_header Content-Security-Policy "upgrade-insecure-requests; frame-ancestors 'self'";
#add_header Permissions-Policy "interest-cohort=()";
#add_header Referrer-Policy "same-origin" always;
#add_header X-Content-Type-Options "nosniff" always;
#add_header X-Frame-Options "SAMEORIGIN" always;
#add_header X-UA-Compatible "IE=Edge" always;
#add_header X-XSS-Protection "1; mode=block" always;
proxy.conf
## Version 2021/10/26 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/proxy.conf
# Timeout if the real server is dead
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
# Proxy Connection Settings
proxy_buffers 32 4k;
proxy_connect_timeout 240;
proxy_headers_hash_bucket_size 128;
proxy_headers_hash_max_size 1024;
proxy_http_version 1.1;
proxy_read_timeout 240;
proxy_redirect http:// $scheme://;
proxy_send_timeout 240;
# Proxy Cache and Cookie Settings
proxy_cache_bypass $cookie_session;
#proxy_cookie_path / "/; Secure"; # enable at your own risk, may break certain apps
proxy_no_cache $cookie_session;
# Proxy Header Settings
proxy_set_header Connection $connection_upgrade;
proxy_set_header Early-Data $ssl_early_data;
proxy_set_header Host $host;
proxy_set_header Proxy "";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Real-IP $remote_addr;
1 post - 1 participant
Hi all,
I’ve had an automation which ran perfectly with ZHA, but having moved to Zigbee2MQTT, it’s no longer working as expected. It’s infuriating me. It works sometimes, then doesn’t.
Basically, a shelly motion sensor detects motion and switches on a Zigbee light switch. Once the detection is changed to false, 2 minutes later, it will switch that light switch off. It works sometimes, then other times just does nothing. Yet the reporting on the automation says everything is fine.
There is however an error showing in the Zigbee2MQTT log, but I am not sure what to make of it… any ideas?
Error from Zigbee2MQTT:
Zigbee2MQTT:error 2022-01-05 18:02:07: Publish 'set' 'state' to 'Utility Room Light Switch' failed: 'Error: Command 0x847127fffef7deca/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received)'
The automation is:
- id: 'utility_room_motion_lights_on'
alias: utility room motion lights on
trigger:
- platform: state
entity_id: sensor.utility_room_motion
to: 'True'
condition:
- condition: numeric_state
entity_id: sensor.utility_room_lux
below: '140'
action:
- type: turn_on
device_id: df623acb13a7d69929028867b228aae7
entity_id: light.utility_room_light
domain: light
mode: single
- id: 'utility_room_no_motion'
alias: Utility Room No Motion
trigger:
- platform: state
entity_id: sensor.utility_room_motion
to: 'False'
for:
minutes: 2
action:
- service: script.telegram_notification
data:
message: "No motion for 2 mins in the utility room"
- type: turn_off
device_id: df623acb13a7d69929028867b228aae7
entity_id: light.utility_room_light
domain: light
mode: single
I should add that the light switch (zigbee) was detected as a switch, but I have changed it to a light in the Zigbee2MQTT config. It didn’t change the behaviour at all as this same issue was happening when it was a switch too.
Sensor from shelly is triggered via MQTT
- platform: mqtt
name: "utility_room_motion"
state_topic: "shellies/shellymotionsensor-60A4239A65B6/status"
value_template: "{{ value_json.motion }}"
Thanks for any help!
1 post - 1 participant
I have the Tank Utility integration working, and it is great.
I would like to use the data from that integration to add it into my Energy Use, as Propane is a gas, and it is something we consume.
The Tank Utility only updates every 24 hours, so I could only update on that schedule.
However, I am at a loss as to how to write a function to track the energy usage with this gauge:
I have spent a lot of time googling this, but I can’t seem to find a similar situation or use case. If I could figure it out it would be nice to have Tank Utility track energy usage.
1 post - 1 participant
Hey guys I’m trying to get my Sense monitor to show up in the energy tab. I added the integration, !
and I can see the data being pulled from the Sense monitor. When I go to the energy tab configuration I selected Daily from grid, daily return to grid and for solar I selected daily production. When I go to the energy tab nothing is populated. This is my first-time using HA, maybe I’m missing something. I’ve included a screenshot of the data shown when I go into Sense in HA.
1 post - 1 participant
I’m currently stuck going the “Dev tools > services > HomeAssistant.stop” route when I want to stop the server and shutdown my Oracle VM. Wheres the stop button? It went missing in HA 7 if irc
1 post - 1 participant
I am not sure where to put this.
I upgraded the kernel on my HA server yesterday and afterwards the Brother integration quit working. I am running ubuntu 20.04 with VM. I had to install SNMP on the VM host to get it to work again.
I installed by:
logging in as root:
$sudu su
#apt install snmp snmpd snmp-mibs-downloader
1 post - 1 participant
Hello,
I have a problem with the external URL. If I try to reach my HA server from outside my network via the app it doesn’t work. I’ve looked at CanYouSeeMe.org and when I type port 8123 in I get an error saying my connection timed out.
I have ported forward port 8123 to 8123 and from inside my network it works like a charm.
Does anyone know how to solve this?
Thanks!
2 posts - 2 participants
Is there any way to update Z-Wave firmware for GE/Jasco (12727) smart switches?
1 post - 1 participant
As I had a bit of spare time I decided to clean up the entity names of my individual appliance power monitors (twelve in total). As a good Homeassistant citizen I created a backup (not in full as the database is 10 gigabyte in total) and started renaming my devices by removing some, changing others. To my great dismay I noticed after a reboot that all historical data was gone (including the data of DSMR meter which was untouched). I thought it was a mistake from my end, so I rolled back the backup (expecting a data loss of about an hour).
Unfortunately the data remained to be nowhere to be found. I believe the changes I made caused a flush of the Energy Dashboard database
So in short: be careful if you wish to safeguard your historical data in Energy Dashboard.
1 post - 1 participant
Hi everyone.
I recently bought a ‘SilverCrest Gateway SGWZ 1 A1’ (from LIDL) and installed a custom firmware on it, following this guide, including the EZSP upgrade to version to 6.7.8.0.
I successfully integraded the Gateway into HomeAssistant using the ZHA integration and paired the ‘SilverCrest movement sensor SMSZ 1 A1’ with it, which works as expected.
But now I have problems integrating the air quality sensor ‘frient AQSZB-110’ (purchased on Amazon .de, B08WXT6166): the sensor shows up in HomeAssistant, but the only detected entity is an unusable on/off-switch (is alway set to off and returns to off about 10s after switched on). I don’t see any of the significant sensor data (air quality, battery, humidity, temperature & voc), although this site states ‘confirmed working with ZHA’. I’ve tried to reconfigure the sensor, which (as I understand it) reports, that he transmits the other sensor data (see attached photo). However, no new entity is discovered - do I have to manually add those? And if yes, how can I do this?
I hope someone can help me resolve this issue.
Kind regards, Zoylendt
1 post - 1 participant
I have a sensor monitoring values that range from 1.080 to 1.000. Sensor is displaying fine, but the history graph is rounding it to 2 decimals. For this sensor, I need precision to 3 decimals, preferably 4 in the history graph. Can the history graph(when clicking on the sensor and the graph display is brought up) be configured for significant digits?
1 post - 1 participant
This discussion, in the Architecture repository, proposed deprecating integrations that employ GPIO. It was accepted and formally documented in ADR-0019.
I just noticed that there are now Pull Requests in the Core repository that are implementing the deprecation.
If you are one of the reportedly few people using one of the deprecated integrations, you may want to start making mitigation plans for the next release (or whatever future release the PRs will be in).
1 post - 1 participant
So - I’ve tried for quite some time and failed getting Tibber electricity/energy stats fully functional. Any help would be much appreciated!
Problem 1: (small) Negative consumption in Energy panel sometimes
Starting in December, I started seeing negative values in Energy panel.
Energy is configured using Tibber’s “accumulated consumption” sensor and cost sensor like below:
That accumulated sensor resets daily, is that the issue here?
Btw - the consumption totals and cost are not wildly off, just somewhat off.
Problem 2: Show electricity usage older than a few days
I have created some cards with mini-graph-panel showing the energy consumption over time. Works fine for shorter periods, but shows nothing older than a few days (I’d like to show a month for now and potentially a year later on).
Result:
Code (shortened)
- type: custom:mini-graph-card
entities:
- entity: sensor.power_xyz
name: Effekt 24h
- entity: sensor.electricity_price_xyz
name: Elpris 24h
hours_to_show: 24
points_per_hour: 4
- type: custom:mini-graph-card
entities:
- entity: sensor.power_xyz
name: Effekt 1v
- entity: sensor.electricity_price_xyz
hours_to_show: 168
points_per_hour: 1
How can I save data longer-term? Obviously data is saved in some way and shown in the energy dashboard - can I use that? I’d like to have more than one bar per day optimally, at least for the month chart.
Thanks in advance!
/Victor
1 post - 1 participant
Hi guys… Please… I need some help with an automation…
A have a sonoff zigbee (zigbee2mqtt) mini connected physicly to a switch on the second floor.
On the first floor I have a 3 gang tasmota switch and I wish to make one of those gangs to trigger the sonoff zbmini upstairs. As this 3 gang switch has a led state, i wish to that state represents the current state of the light connceted the zbmini…
Both of them are configured on HA as light entities.
I tried to create a light group and created two automations:
1: Trigger by both 1st gang off tasmota and by the zbmini on to turn on the light grooup.
2: Trigger by both 1st gang off tasmota and by the zbmini off to turn off the light grooup.
First tests was ok… but when one of the switchs are triggered on and off quickly, the automations enter on a loop state, trggering on and off many times per second…
Probably there is a simpler way to make the magic but i`m very confused on how to achieve that!
Please, can anybody help me?
Thanks!!
1 post - 1 participant
I’ve bumped into a problem of remote picture sending by Telegram Bot.
Simple script:
alias: Telegram BackCam (PTZ zone)
sequence:
- data:
data:
photo:
caption: Back Now
url: http://192.168.0.5/jpg/1/image.jpg
message: Snapshot
title: Now
service: notify.telegram
mode: single
Cannot do the job of sending JPG from a camera to Telegram. Script just doesn’t do anything…
I know it works if I send the JPG from HA’s www
folder, but this is not the task.
I need to send immediate picture (or 5 pictures) straight after alarm has been fired.
Please help to solve.
1 post - 1 participant