Hi,
just opened an issue here:
and wondering if someone else is experiencing the same.
Related to the topic does anyone know how to stop HA discovery, in general, to reduce broadcasting traffic?
1 post - 1 participant
Hi,
just opened an issue here:
and wondering if someone else is experiencing the same.
Related to the topic does anyone know how to stop HA discovery, in general, to reduce broadcasting traffic?
1 post - 1 participant
Hi, is it necessary create a extra user for each device send mqtt message ? or can i use the same user/pw for every device ?
pb1966
1 post - 1 participant
Hi all,
I’m trying to create a chart showing power consumption as a stacked area, that is all values are added onto eachother lite in this example: Stacked Area Chart | Area Charts
For me ApexCharts insist on drawing each area on top on the other, and I can se the contours of underlying areas through the top areas.
What am I doing wrong here?
type: custom:apexcharts-card
apex_config:
chart:
stacked: true
legend:
show: true
header:
show: true
title: Power Consumption
graph_span: 30min
all_series_config:
type: area
group_by:
func: avg
duration: 1min
series:
- entity: sensor.heater_power
name: Heater
color: orange
- entity: sensor.dehumidifier_power
name: Dehumidifier
color: red
- entity: sensor.it_closet_power
name: IT
color: blue
- entity: sensor.salongen_media_power
name: Salongen
color: green
- entity: sensor.other_power
name: Other
color: brown
1 post - 1 participant
My end goal is to control a IR controlled LED strip with a template light.
What I have so far is this:
- platform: template
lights:
test_light:
friendly_name: "Test light"
turn_on:
service: button.press
data: {}
target:
entity_id: button.david_tv_backlight_on
turn_off:
service: button.press
data: {}
target:
entity_id: button.david_tv_backlight_off
effect_list_template: "{{ ['test', 'test2'] }}"
set_color:
What is the correct yaml for a hardcoded effect list?
Defines a template to get the list of supported effects. Must render a list
Isn’t that a list I created?
3 posts - 2 participants
When i put in a trigger saying wait for x amount of time, say 24h, i guess it does that (or does it?), but it still runs the same automation.
I thought in single mode another automation can’t run at the same time, so in my thought process it should not run again until that time has expired.
- delay:
hours: 24
minutes: 0
seconds: 0
milliseconds: 0
mode: single
Having this at the end of the automation, but it still seems to trigger…
1 post - 1 participant
To avoid confusion, zjs2mqtt has been officially renamed. MQTT support itself isn’t going anywhere, but we heard from many users that they found the old name confusing. This will eventually be a breaking change in that you must update your docker compose files to pull the new image. For now, the old one will continue to work (with a warning).
The name of the addon itself will not change unless and until @frenck does so, as he controls the addon in the addon store.
1 post - 1 participant
As the title States. I have a large home assistant network set up for my business and would like to integrate another set of devices. I will be given an API key from the company that makes the devices and I was wondering if anyone could help me build the integration for it. Or at least point me in the proper area…
1 post - 1 participant
I have been playing around with a threshold sensor helper, and have been getting an unexpected result. I am using it to tell me when a room’s temperature becomes outside of comfortable limits. The goal is for the sensor to be OFF when the temperature is between 55 - 80 F, and ON when outside of that range. The following screenshot shows my current configuration, based on the documentation and from a post by a moderator in these forms named tom_l:
As you can see, the sensor value is between the limits defined by the upper, lower, and hysteresis. Regardless, the “Position” is reported as “unknown” instead of “Off” like I would expect. When the temperature does move out of this range, it switches to “On”, but then goes back to “Unknown”.
Anybody else have this result with the Threshold helper? Am I just configuring this straight up wrong for my use case?
BTW this is on Home Assistant Core (Docker Container) 2022.9.5 running on a RPi 3B+
1 post - 1 participant
Hey guys
I don’t have too many Zigbee devices and quite new to the technology, most of my stuff is all wifi based.
I started with a Sonoff Zigbee bridge flashed with Tasmota but I was having an issue with one Aqara motion sensor that was around 16m away so I replaced the bridge with a Sonoff USB Plus dongle which I reflashed to improve output power etc… and flashed the bridge using this guide so that it would work as a router.
The router is about 8 meters from the Zigbee dongle and about 4 meters from the Aqara sensor but it still goes offline intermittently, I’ve tried remove the device under development and re add it to both the Zigbee USB dongle and back to the router but am just not getting any joy.
I was thinking of possibly buying another Zigbee USB dongle and flashing it as a router but don’t won’t to go through that if I’m going to have the same issues.
The motion sensor is not faulty it works fine if I move it closer and if I take another motion sensor that is working fine, move it to the same location it too becomes unavailable.
Any ideas on how I can get this sorted out? I have some Zigbee devices that are even a little further away and they work perfectly.
Here are some images, its currently connected directly to the Zigbee USB dongle.
1 post - 1 participant
Getting back in to the home automation scene and thinking about some Aqara temperature and humdlidity sensors. I notice most of the listing say Aqara hub required. I am planning on using the sensors with home assistant and eventually dumping the data into MariaDB and plotting using Grafana. Can I use the Aqara hub to integrate these sensors with Home Assistant or do I need a different Zigbee hub? Any advice/recommendations would be appreciated.
Thanks in advance.
2 posts - 2 participants
Hi therre. I found a code snippet i thought i could change a bit, and reuse. But i get state unavailable i HA. Is there anyone who can point me in the right direction?
##Hente dag/kveld/helg strømpris
- platform: template
sensors:
nettleie_akt:
friendly_name: 'Aktuell nettleie'
value_template: >
{% set dag = states('sensor.ke_nettleie_dag') | float %}
{% set kveld = states('sensor.ke_nettleie_kveld_helg') | float %}
{% set hours = [[0,600,kveld],
[601,2200,dag],
[2201,2359,kveld]] %}
{% set t = states('sensor.time').replace(':','')|int %}
{% for h in hours if h[0] <= t <= h[1] %}
{{h[2]}}
{% endfor %}
1 post - 1 participant
Hi all,
I’m currently in the process of purchasing a new build house, and with it, we’re having some electric underfloor heating fitted to the en-suite.
From what I can work out so far, the smart controller is a Butech 8GM - BUTECH - butech smart controller 8GM . Does anyone know anyway I could get this integrated to my HA? I’ve searched a bit, but can’t find anything, so thought I’d just ask the wider community.
Thanks,
1 post - 1 participant
Hi everyone,
I have a Dexcom G6 sensor setup in Home Assistant. Everything work fine, but I can’t get an automation to trigger. Is there something I am doing wrong?
I have a lot of other automations working.
Automation is this:
- id: '1663771038673'
alias: Ny automasjon 22
description: RedAlert when BS is under 190
trigger:
- platform: numeric_state
below: '190'
entity_id: sensor.dexcom_myname_glucose_value
condition: []
action:
- service: scene.turn_on
target:
entity_id: scene.boda_redalert
metadata: {}
- service: media_player.play_media
target:
entity_id: media_player.garasje
data:
media_content_id: media-source://media_source/local/TNG - Red Alert.mp3
media_content_type: audio/mpeg
metadata:
title: TNG - Red Alert.mp3
thumbnail:
media_class: music
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- service: notify.pushover
data:
title: RedAlert
message: Wii Wii Wii
mode: single
2 posts - 2 participants
After a lot of research to find the right interface to use Home Assistant, and not having found an interface suitable for large home automation installations, I am attaching this video to describe as best as possible what I am trying to do
Thank you for taking the time to respond
cordiallyProcessing: Mode affichage pour Home Assistant.MOV…
Processing: Mode affichage pour Home Assistant.MOV…
I’d love to scroll through the possibilities on my iPhone screen
1 post - 1 participant
I’m needing a little help on a template to separate one sensor into two.
This data is how long is available on the utility - Gas/Electric.
Electric: 18 Hours left
Gas: 74 days, 17 hours left
as you can see, everything is separated by a comma.
So sometimes the format might be
Electric | Gas
From this, I’m wanting two new sensors
Electirc_Expt: (how many days/hours are remaining)
Gas_Expt: (how many days/hours are remaining)
1 post - 1 participant
HI all. After a little advice with debugging my setup. Been running HA for years and this is the first time i’ve had a fail after an upgrade (That wasn’t due to me missing breaking changes at least!).
Everything seems to work fine for around an hour, then things start failing. It is as if the docker networking falls apart and addons/integrations slowly stop working. The logs look as below:
Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:10
15:51:54 – () Camera -
Updating visonic alarm_control_panel took longer than the scheduled update interval 0:00:30
15:51:49 – () Alarm Control Panel -
Template variable warning: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'results' when rendering '{{ states.sensor.octopus_export.attributes.results|map(attribute='value_inc_vat')|list|last|round(2) }}'
15:51:47 – () helpers/template.py -
Empty reply found when expecting JSON data
15:51:47 – () RESTful -
Error fetching data: https://api.octopus.energy/v1/products/AGILE-18-02-21/electricity-tariffs/E-1R-AGILE-18-02-21-N/standard-unit-rates/?period_from= 2022-09-21T15:30:00Z&period_to= 2022-09-22T15:30:00Z failed with
15:51:47 – () RESTful -
Update of sensor.octopus is taking over 10 seconds
15:51:47 – () helpers/entity.py -
Error doing job: Task exception was never retrieved
15:51:37 – () Smart EQ Connect () -
Updating rpi_power binary_sensor took longer than the scheduled update interval 0:00:30
15:51:37 – () Binary Sensor -
Updating smarteqconnect sensor took longer than the scheduled update interval 0:00:30
15:51:37 – () Sensor -
Reset of hci0 timed out after 10!
15:51:34 – () components/bluetooth/util.py -
Unable to find referenced entities light.garage_tool_wall_light or it is/they are currently not available
15:51:19 – () helpers/service.py -
Timeout sending report to Alexa for vacuum.digby
15:51:09 – () Amazon Alexa -
Garage Light Switch Off: Already running
15:51:09 – () Automation -
Error fetching information from http://192.168.1.114:5000/api/stats: Cannot connect to host 192.168.1.114:5000 ssl:default [Connect call failed ('192.168.1.114', 5000)]
15:50:52 – () Frigate () -
Error fetching alexa_media data: Error communicating with API:
15:49:34 – () Alexa Media Player ()
alexaapi.get_devices((<alexapy.alexalogin.AlexaLogin object at 0x7f8ccc7550>,), {}): Timeout error occured accessing AlexaAPI: An exception of type CancelledError occurred. Arguments: ()
15:49:34 – () runner.py -
Timeout fetching octoprint-a023d01b7ae6740d1488dc4b1ee2fe08 data
15:44:38 – () OctoPrint
Timeout fetching Digby data
15:39:51 – () Xiaomi Miio
TemplateError('UndefinedError: No aggregated item, sequence was empty.') while processing template 'Template("{{ states.sensor.octopus.attributes.results|map(attribute='value_inc_vat')|list|min|round(2) }}")' for attribute '_attr_native_value' in entity 'sensor.octopus_min_price'
15:39:47 – () helpers/template_entity.py -
Power state of bluetooth adapter hci0 is OFF after power cycle
15:39:34 – () /usr/local/lib/python3.10/site-packages/bluetooth_auto_recovery/recover.py -
Exception in async_discover when dispatching 'mqtt_discovery_new_light_mqtt': ({'schema': 'template', 'name': 'Shelly RGBW2 AF08D0 Light 0', 'command_topic': 'shellies/shellyrgbw2-AF08D0/color/0/set', 'state_topic': 'shellies/shellyrgbw2-AF08D0/color/0/status', 'availability_topic': 'shellies/shellyrgbw2-AF08D0/online', 'payload_available': 'true', 'payload_not_available': 'false', 'effect_list': ['Off', 'Meteor Shower', 'Gradual Change', 'Flash'], 'command_on_template': '{"turn":"on"{%if brightness is defined%},"gain":{{brightness|float|multiply(0.3922)|round}}{%endif%}{%if red is defined and green is defined and blue is defined%},"red":{{red}},"green":{{green}},"blue":{{blue}}{%endif%}{%if white_value is defined%},"white":{{white_value}}{%endif%}{%if effect is defined%}{%if effect=="Meteor Shower"%}"effect":1{%elif effect=="Gradual Change"%}"effect":2{%elif effect=="Flash"%}"effect":3{%else%}"effect":0{%endif%}{%else%}"effect":0{%endif%}}', 'command_off_template': '{"turn":"off"}', 'state_template': '{%if value_json.ison%}on{%else%}off{%endif%}', 'brightness_template': '{{value_json.gain|float|multiply(2.55)|round}}', 'red_template': '{{value_json.red}}', 'green_template': '{{value_json.green}}', 'blue_template': '{{value_json.blue}}', 'white_value_template': '{{value_json.white}}', 'effect_template': '{%if value_json.effect==1%}Meteor Shower{%elif value_json.effect==2%}Gradual Change{%elif value_json.effect==3%}Flash{%else%}Off{%endif%}', 'unique_id': 'shellyrgbw2-af08d0-light-0', 'qos': '0', 'device': {'identifiers': ['84cca8af08d0'], 'name': 'Shelly RGBW2 AF08D0', 'model': 'Shelly RGBW2', 'sw_version': '20211109-130054/v1.11.7-g682a0db', 'manufacturer': 'Allterco Robotics'}, 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable return schema(data) File "/usr/src/homeassistant/homeassistant/helpers/config_validation.py", line 829, in validator raise vol.Invalid(warning % arguments) voluptuous.error.Invalid: The 'white_value_template' option has been removed, please remove it from your configuration During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 350, in async_discover config = schema(discovery_payload) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 232, in __call__ return self._exec((Schema(val) for val in self.validators), v) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 355, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 351, in _exec v = func(v) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable return schema(data) File "/usr/src/homeassistant/homeassistant/components/mqtt/light/__init__.py", line 50, in validate_mqtt_light_discovery return schemas[value[CONF_SCHEMA]](value) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 232, in __call__ return self._exec((Schema(val) for val in self.validators), v) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 355, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 351, in _exec v = func(v) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 276, in __call__ raise er.MultipleInvalid([e]) voluptuous.error.MultipleInvalid: The 'white_value_template' option has been removed, please remove it from your configuration
15:22:06 – () util/logging.py -
Forced update failed. Entity sensor.electricity_cost not found.
15:15:00 – () helpers/entity_component.py
sensor.total_gas_usage_day has unit m3 which is unsupported for device_class gas
14:20:10 – () Sensor
Config entry 'DC:A6:32:8B:9D:3B' for bluetooth integration not ready yet: hci0 (DC:A6:32:8B:9D:3B): Failed to start Bluetooth: [org.bluez.Error.NotReady] Resource Not Ready; Retrying in background
14:19:11 – () config_entries.py
Updating alexa_media media_player took longer than the scheduled update interval 0:00:10
14:19:07 – () Media Player
Setup of sensor platform command_line is taking over 10 seconds.
14:19:07 – () Sensor -
Error initializing 'Turn on IBoost' trigger: In 'numeric_state' condition: unknown entity sensor.givenergy_battery_percentage
14:18:57 – () Home Assistant Core Integration -
TemplateError('UndefinedError: 'None' has no attribute 'attributes'') while processing template 'Template("{{ states.sensor.octopus_export.attributes.results|map(attribute='value_inc_vat')|list|max|round(2) / 100 }}")' for attribute '_attr_native_value' in entity 'sensor.octopus_max_export_price'
14:18:57 – () helpers/template_entity.py -
Error while processing template: Template("{{ states.sensor.octopus_export.attributes.results|map(attribute='value_inc_vat')|list|max|round(2) / 100 }}")
14:18:57 – () helpers/template.py -
Config entry 'Living Room' for apple_tv integration not ready yet: Not found at 192.168.1.193, waiting for discovery; Retrying in background
14:18:41 – () config_entries.py -
Can't connect to ESPHome API for nspanel @ 192.168.3.207: Error connecting to ('192.168.3.207', 6053): [Errno 111] Connect call failed ('192.168.3.207', 6053)
14:18:39 – () /usr/local/lib/python3.10/site-packages/aioesphomeapi/reconnect_logic.py -
This issue has persisted in all releases of 2022.9 including the latest 2022.9.5. Rolling back to my previous backup works OK and everything is fine in 2022.8
1 post - 1 participant
Hi, today I installed Home Assistant to RasPi 4 8gb. I got it all installed well and other integrations work, but IHC hub is device I couldn’t connect. Config is from home-assistant.io/integrations/ihc, but just edited my own info there. Hub HW version is 6.1 and latest update installed. Below is screenshot of error that home assistant shows.
1 post - 1 participant
My Broadlink sensors are showing 1, 2, 3, 4 instead of dark, dim, normal, bright, excellent, good, normal, bad, quiet, normal, noisy, etc.
Could someone please help me solve this issue?
1 post - 1 participant
I have the following sensors that I use to track my day/night EV kwh usage
ev_daily_energy:
source: sensor.shellyem_5e26f6_channel_2_energy
name: EV Energy Today
cycle: daily
tariffs:
- peak
- offpeak
monthly_ev_energy:
source: sensor.shellyem_5e26f6_channel_2_energy
cycle: monthly
tariffs:
- peak
- offpeak
The peak and offpeak are set by this:
- id: '1652831843092'
alias: Energy - Switch tariff
description: ''
trigger:
- platform: time
at: 09:00:00
variables:
tariff: peak
- platform: time
at: 00:00:00
variables:
tariff: offpeak
condition: []
action:
- service: select.select_option
target:
entity_id: select.daily_energy
data:
option: '{{ tariff }}'
- service: select.select_option
target:
entity_id: select.monthly_energy
data:
option: '{{ tariff }}'
mode: single
I would like to add another tariff for solar values:
ev_daily_energy:
source: sensor.shellyem_5e26f6_channel_2_energy
name: EV Energy Today
cycle: daily
tariffs:
- peak
- offpeak
- solar
But I am unsure how to switch to that tariff in the code.
I am thinking of using something along the lines of if sensor.openevse_state = Charging
and {{ ''solar'' if states(''sensor.current_solar_generation'') | int > 0}}'
but not sure how to create the automation that can toggle between all 3 tariffs.
Anyone more versed in yaml can please assist?
1 post - 1 participant
So I’m running a Nortek HUSBZB-1 controller with ZWaveJS2MQTT (v0.47.0) and for some reason Z-Wave controls from the Devices menu or Dashboards no longer functions after some time. I can go directly into the device in ZWaveJS2MQTT and control (On/Off) from there, but just not from HA. Looking through the Z-WaveJS2MQTT debug log, I see motion sensor nodes being updated every few minutes, so I know communication is working. What would cause an issue with controls?
2 posts - 2 participants