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

Solar Production Shown as Consumed Energy

$
0
0


Hello My issue is like said in title. When I add my solar production to the energy it is showing as consumed energy and it is showing total value of production (for example in this example it is saying 17 kWh.) It is like it is taking previous day’s total production as consumed energy.

For reading from electricity meter I am using slimmelezer. Which is shown as purple in the graph.

For integration I am using SolarEdge Optimizers Data.

Thanks in advance

1 post - 1 participant

Read full topic


What's the best way to notify if water leak sensors trigger?

$
0
0

I have a bunch of water leak sensors and want to get notified when one is triggered. Is there anyway to do a trigger with a wildcard name? Or do I need to add all of them manually and update as I add more?

2 posts - 2 participants

Read full topic

Zigbee intergation

$
0
0

Hi,
how can i integrate my Zigbee sensor with all it’s functions. In specific it’s a presence sensor and I can see it in the Tuya App. There it works fine with all it’s function.
I add it to the home assistance, it shows up with only 5 Entities. and an easy automation to switch on a light doesn’t work.

2 posts - 2 participants

Read full topic

Template to return entity if state is greater than 0?

$
0
0

I have a minute timer that I want to filter so it is returned only if it’s value is greater than zero.

I thought I could do something like this but it does not work…
{% set msg_grt0_ct = label_entities(‘Msg_grt_0’) | select(‘is_state’, ‘>0’) | list %}

This above should return an array of entities with the label ‘Msg_grt_0’ then filter and return only the entities that are greater than zero.

If I check for the state to be a specific value it does work…
{% set msg_grt0_ct = label_entities(‘Msg_grt_0’) | select(‘is_state’, ‘21’) | list %}

In this case if the entity equals 21 then it will be returned.

===================
Does anybody know how to filter on a range (entity > 0)?
Thanks

3 posts - 3 participants

Read full topic

Calculating delta (change since last value)

$
0
0

Hi.
I’m trying to calculate the delta value (change since the last value, can be positive, negative or 0) between two blood sugar readings. The readings are updated every 5 minutes.
This is what I currently have:

  - platform: statistics
    entity_id: sensor.blood_sugar
    name: Blood Sugar Delta
    sampling_size: 2
    precision: 1
    state_characteristic: change
  - platform: template
    sensors:
      bgdelta:
        friendly_name: "BG Delta"
        value_template: >
             {{ states.sensor.blood_sugar_delta.state.split('.')[0] }}

This generally works as intended, except after a minute or so, the delta changes to 0 even though the value of sensor.blood_sugar is still the same.
Is there any way to prevent it from recalculating the delta value even though the blood value has not changed?

1 post - 1 participant

Read full topic

Water meter rieman sum, wrong readings?

$
0
0

hi,
i have an watermeter from this project GitHub - jomjol/AI-on-the-edge-device: Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world and have readings from the watermeter with “m3” as my water gauge… ok so far.

i wanted to create an rieman sum, but it seems it shows wrong results?
after one toilet flush it shows 9.305 m3h. shouldn´t it be more like “0.09305” m3h? (9 liters)?

#watermeter  m3
  - platform: integration
    source: sensor.watermeter_value
    name: watermeter_value_sum
    unit_prefix: 
    round: 3
    method: left

1 post - 1 participant

Read full topic

Possible to analyze historical data with LLM?

$
0
0

Hey there,
might be a stupid question, but is there any way to have some AI model like Gemini analyze historical Home Assistant data ?
I am running an influxDB and would like to find correlations, trends and so on to optimize my enviroment.

Thanks ahead

2 posts - 2 participants

Read full topic

New paired/installed Z2M Push Button (Loginovo ZG-101ZL) switches Light without Automation

$
0
0

Hi,

I added the mentioned Push Button in HA over Zigbee2MQTT addon, which worked fine (I have about 10 of those Push Buttons in my mesh).

In the automations I usually set how the Push Buttons should behave/which device to switch on/off.

On the newly added push button the single push action is already triggering one switch/light in my installation, which I haven’t defined in my automations.
I cannot figure out why and where I can see/change this behaviour.

Any hint would be highly appreaciated, thanks.

Tesa

1 post - 1 participant

Read full topic


SMLIGHT SLZB firmware update and all devices offline

$
0
0

Had an update today (v2.8.7) and now all devices offline. Never seen this before. Anyone resolve this or have this issue today?

6 posts - 2 participants

Read full topic

Automation for holidays

$
0
0

I want to create an extra automation for holidays, such as Christmas, Ascension Day, Pentecost, etc.
I have installed the holiday integration.
Can someone tell me how I can also create an automation for this in the visual editor.
Possibly also in Node Red

5 posts - 4 participants

Read full topic

Chatterbox TTS Server - SOTA TTS Open Souce

$
0
0

So Chatterbox is quite good at voice cloning, it’s new and rivals Eleven Labs in some ways. There is a project on Github for a Server serving this up but it’s not fully Open AI compatible (can’t use OpenAI TTS Device which is what I use to get my Kokoro Fast API into HA Voice pipeline).

Just something to keep an eye on, I had it clone my voice locally and it did a very decent job. Inference time was like 3 seconds for a standard message on an RTX 5000 Ada

Project: GitHub - devnen/Chatterbox-TTS-Server: Self-host the powerful Chatterbox TTS model. This server offers a user-friendly Web UI, flexible API endpoints (incl. OpenAI compatible), predefined voices, voice cloning, large text processing, and GPU/CPU execution.

1 post - 1 participant

Read full topic

Pacific Gas & Electric Opower

$
0
0

I have been trying to connect PG&E (Pacific Gas & Electric) using the official integration via Opower but have had no luck. When I enter my account credentials, I get the error: “Failed to connect.”

Is there something I need to accomplish on the PG&E side to get the energy data to HA?

1 post - 1 participant

Read full topic

Bluetooth adapter not usable on home assistant running in a VM

$
0
0

I used this post, Home Assistant OS in KVM with USB Bluetooth adapter passthrough - #3 by wmaker as somewhat of a guide, and was finally able to see my onboard bt adapter from my old gaming laptop (Lenovo Legion y720) running NixOS now. I have haos configured via a VM now.

> lsusb | grep Blue
Bus 001 Device 005: ID 8087:0a2b Intel Corp. Bluetooth wireless interface

Here is the bt-device config

<hostdev mode='subsystem' type='usb' managed='yes'>
  <source>
    <vendor id='0x8087'/>
    <product id='0x0a2b'/>
  </source>
  <address type='usb' bus='0' port='6'/>
</hostdev>

Note: I am able to scan for devices from my host machine

I am able to see the hardware but it does not show up as a bluetooth device on my home-assistant

Looking at dmesg, i get the following lines for bluetooth

[    5.182857] Bluetooth: Core ver 2.22
[    5.182880] Bluetooth: HCI device and connection manager initialized
[    5.182884] Bluetooth: HCI socket layer initialized
[    5.182886] Bluetooth: L2CAP socket layer initialized
[    5.182892] Bluetooth: SCO socket layer initialized
[    5.867760] Bluetooth: hci0: Bootloader revision 0.0 build 26 week 38 2015
[    5.868770] Bluetooth: hci0: Device revision is 16
[    5.868775] Bluetooth: hci0: Secure boot is enabled
[    5.868776] Bluetooth: hci0: OTP lock is enabled
[    5.868778] Bluetooth: hci0: API lock is enabled
[    5.868779] Bluetooth: hci0: Debug lock is disabled
[    5.868781] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    5.877543] Bluetooth: hci0: Found device firmware: intel/ibt-12-16.sfi
[    6.442742] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    6.442748] Bluetooth: BNEP socket layer initialized
[    7.369880] Bluetooth: hci0: Waiting for firmware download to complete
[    7.370758] Bluetooth: hci0: Firmware loaded in 1458213 usecs
[    7.370861] Bluetooth: hci0: Waiting for device to boot
[    7.383795] Bluetooth: hci0: Device booted in 12708 usecs
[    7.384095] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-12-16.ddc
[    7.386803] Bluetooth: hci0: Applying Intel DDC parameters completed
[    7.387805] Bluetooth: hci0: Firmware revision 0.1 build 19 week 44 2021
[    7.389805] Bluetooth: hci0: Reading supported features failed (-16)
[    7.389835] Bluetooth: hci0: Error reading debug features
[    7.389839] Bluetooth: hci0: HCI LE Coded PHY feature bit is set, but its usage is not supported.
[    7.441011] Bluetooth: MGMT ver 1.23
[10879.812288] Bluetooth: hci0: Firmware revision 0.1 build 19 week 44 2021
[10879.815233] Bluetooth: hci0: Reading supported features failed (-16)
[10879.815324] Bluetooth: hci0: Error reading debug features
[10879.815363] Bluetooth: hci0: HCI LE Coded PHY feature bit is set, but its usage is not supported.

2 posts - 2 participants

Read full topic

HomeKit integration: use dummy switches on a external HomeKit hub with HA

$
0
0

First of all, i want to thank the developers of HA for making such a great effort.

This is my first post and coming from HomeSeer I’ve to say that it’s a real game changer.

That said, I’m looking for a way to use dummy switches in the Apple Home app with my Apple TV and Apple HomePod on my vacation adress. My HA is running at home and I’m using the HomeKit integration for the communication between both HA and Apple Home. I’ve setup my Apple Home at home successfully with external access.

The idea is to make some automations based on my dummy switches on my vacation adress. I’ve two Apple devices which i bring with me on vacation as a hub and i also have a private VPN so I’ve direct access to my HA at home.

I’ve added a second home in the Apple Home app as Hotel, I’ve made some switches in HA and added those switches to my second home: Hotel. Unfortunately those switches aren’t responding in the Apple Home app.

I think HA is only communicating with the Apple Home app when both are on the same local network, regardless of my direct connection through my private VPN?

Any help is welcome,

Michael de Charon

1 post - 1 participant

Read full topic

Input_datetime used as a trigger fires twice

$
0
0

I’m using an input_datetime helper to allow users to see the conditions expected at the time they are interested in. A number of things are read from a REST call to an API which is somewhat rationed and I want to minimise the number of calls made to it. My current solution uses an automation triggered by the state of the input_datetime. I’ve just realised that it is getting triggered twice, when the user changes the date and when the time is changed. I’m using a picture-elements card to display the helper and when it is clicked on the normal HA interface comes up that allows the date & time to be changed. Naturally there is a time lag between these 2 actions and the lag depends on how quickly the user moves from one part of the display to the other, and I’ve seen that can take anything from milliseconds to tens of seconds. I’ve implemented a delay so the automation won’t trigger until the state change is n milliseconds old, but if I make this long enough to prevent the double call to the API, the interface feels unresponsive. I’ve thought about waiting for both the date and the time to change, but users often only want to change one of them.
Is there a different method for getting the user to set a date_time that only results in a single state change?

4 posts - 2 participants

Read full topic


Minutes not a number?

$
0
0

Hi. I’m quite lost on this one.

I have 2 helpers defined and they both seem to work:

min: 0
max: 496
step: 1
mode: auto
unit_of_measurement: min
icon: mdi:timer-sync
friendly_name: næste forestilling om

and

min: 0
max: 240
step: 1
mode: auto
unit_of_measurement: min
icon: mdi:clock-time-eight-outline
friendly_name: nødvendig forvarmningstid

Which danish names can be translated to “next play in” and “nessesary time for heat up”

At the time of writing this post “nødvendig forvarmningstid” is 86.0 and “næste forestilling om” 31.0

I have (using web gui) created this automation:

alias: Varme aktiver komfortstatus
description: Forbered KINO til gæster
triggers:
  - trigger: state
    entity_id:
      - number.forestilling_om
conditions:
  - condition: numeric_state
    entity_id: number.forestilling_om
    attribute: mode
    below: number.nodvendig_forvarmningstid
actions:
  - metadata: {}
    data: {}
    target:
      entity_id: input_boolean.varme_aktiv
    action: input_boolean.turn_on
    enabled: false
mode: single

But the condition alwais claims not to be met. Tracking shows:

Error: In 'numeric_state': In 'numeric_state' condition: entity number.forestilling_om state 'auto' cannot be processed as a number
Error: In 'numeric_state' condition: entity number.forestilling_om state 'auto' cannot be processed as a number

Any ideas?

6 posts - 3 participants

Read full topic

HUE switch in Zigbee exposed as 'update'

$
0
0

I have quite a few HUE and Zigbee switches/lights exposed in HA using the Zigbee2MQTT broker, all working fine.

I have purchased a HUE tap dial switch and Zigbee has picked this up. But unfortunately it has exposed this a ‘update’ type and not a ‘switch’. I assume this means the switch is due a firmware update (maybe?) but zigbee2mqtt doesn’t find any OTA.

Any idea what I can do with this? Without it as a ‘switch’ I cannot expose it to HomeKit using the plugin.

Thanks

1 post - 1 participant

Read full topic

Washing machine cycles counter on past power data

$
0
0

I have a power meter attached to the washing machine and I can pretty much well detect when cycle completed. This is not a question how to manage this part.

I also have a history data for the washing machine for about 50 cycles and I was wondering how to create a counter helper and align the states changes timestamp to the history when history value transitions from >0W to =0W.

I don’t know if HA has a way to scan the history and perform sensor state changes based on history data - I suspect, not. So I did SQLite manipulation on my own, which worked well, but only to realize this morning that counter data is lost.

So what I did is the following.

Creation of a new counter helper

  • Create a new helper counter counter.washing_machine_cycles
  • Clicked Increment about 50 times to log all states history from 0 to 50. This has successfully insert the entries into the states table, together with the metadata_id in the states_meta table.

Export the historical data from statistics for power measurement

  • Find the meta id for the washing machine power for statistics
  • Read the historical entries from statistics table that match meta
  • Filter out only the values that are above 0 and have a delta time between them minimum 2 hours. I used python to verify the data

Finally, I’ve updated the states table for my counter.washing_machine_cycles, each increment state matches the time when power measurement went from non-zero to zero. This happened for 12 months of data in total.

During the update, history graph looked nice. The counter went up on the history chart in a consistent cumulative way, every time there was a spike in the power measurement chart.

But then this morning I realized that history chart doesn’t show the data for anything beyond 10 days. My assumption is it is because of the long-term statistics and the fact that I’ve updated the states table with data more than 10 days far, which is default history.

I’ve checked the SQLite raw data with the Web addon and realized that:

  • HA has deleted the entries from the states table for anything beyond the 10 days
  • HA did not transfer the data to the long term statistics table

Or simply put, is there a recommended way to run the past historical data and set the sensor state(s) based on the history data? I simply want to show the monthly granularity chart of the cycles count.

1 post - 1 participant

Read full topic

"more info" of Entity: Change from slider to box (number selector)

$
0
0

Hi,
when I’m clicking on an entity on my dashboard, the more-info popup comes up, where I can change the value.
Is it possible to change that from the slider (current):

to a box (number selector) - then it’s easier via the mobile phone touch based.

Thanks,
Stefan

3 posts - 2 participants

Read full topic

High-Low side by side

$
0
0

Trying to customize my dashboard and would like to get the high / low side by side below the icon

Any idea how i could do that ?

1 post - 1 participant

Read full topic

Viewing all 109071 articles
Browse latest View live


Latest Images

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