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

Help using device state values in a template

$
0
0

Hello. I’m looking to recreate the functionality that Philips Hue’s have with multiple button presses on the hue dummer to go between various colour profiles you’ve set for a bulb. My thinking is:

Create an if else condition that sets the colour to white by default, but if the colour is white set the colour to blue, if the colour if blue then set it to green or whatever. Essentially mimicking the way you can click the top button on the hue dimmer to alternative between light shades and colours.

The problem is I’m not sure how to get about doing this. I think it’s possible, but all of the videos and discussions I’ve read don’t seem to click. I’m not really getting anywhere. (I’m fairly new to all of this). Reading the values of the temp_kelvin would be a good way I think. So as a starting point changing the colour temperature if the value is one of the ifs. e.g. 5000k > 4000k if 4000k > 3500k if 3500k > 2000k if 2000k > 5000k. and loop.

Is this something that someone can help me achieve? If there’s a better way of doing it I’m all ears and would love to learn more about the best way of doing things.

My end goes it to possibly have a blueprint or something or a script where the colours can be set easily for a particular dimmer switch.

Thanks.

1 post - 1 participant

Read full topic


Ratgdo / ESPHome Open Garage Notification

Keymaster code turns off Alarmo

$
0
0

Looking for a way to setup an automate if a code in entered into the lock, HA will disable Alarmo.

1 post - 1 participant

Read full topic

Entity Source:History

$
0
0

Just added a Voltage Entity to a graph, same as several other devices/entities.
Only this one shows as
Source:History.

Any ideas why & how to correct ?

Just updated to 2025.2.2

1 post - 1 participant

Read full topic

Zha.set_zigbee_cluster_attribute vs ieee

$
0
0

Hello,

I’m looking a creating a blueprint where the action would be using zha.set_zigbee_cluster_attribute to do something like this:

    - action: zha.set_zigbee_cluster_attribute
      data:
        cluster_type: in
        ieee: '{{ thermostats[repeat.index-1] }}'
        endpoint_id: 1
        cluster_id: 65281
        attribute: 16
        value: "{{ (states('sensor.quebec_temperature') | float * 100) | int }}"

This action work correctly if I create a variable “Thermostats” and put the IEEE addresses of each thermostat in it but… that defeat the purpose of creating a blueprint. The goal would be to be able to select devices or entities through the GUI and, based on a condition, have the zha.set_zigbee_cluster_attribute do his work. The issue I have right now is that if I select a few devices, what is recorded is device_id and that’s what is used as the ieee address. This generate an error about the fact that those are not valid value for dictionary value @ data[‘ieee’]. Using entities do the same but it’s sending stuff like climate.thermostat_bureau_thermostat which is still an invalid value for the same variable as you can see below.

HA is able to talk to the zigbee device and has to use ieee to do it. So, I would expect that there is a way to request HA what is the IEEE address related to a specific entity or device. Is there one? If so, what need to be done to get the information from an automation or blueprint?

Thank you.

ehfortin

1 post - 1 participant

Read full topic

THIRDREALITY ZigBee Smart Plug with Real-time Energy Monitoring

$
0
0

New here. I just installed the Third Reality, Inc Smart plug (3RSP02028BZ) and updated the firmware to 0x1001305c so now I get this nice graph


By default it says I can track 7 things.

Is there a way to let me know if the power of the freezer is off?
Can someone point me to the correct automation for this idea?
What a great software package this HA is

2 posts - 2 participants

Read full topic

Rfxtrx - TV lift - detected but not working

$
0
0

Hi all,

As i am progressing at quite a good pace with integrating home assistant to automate my home from heat pumps, to lights, to Siemens PLC’s but now i hit a snag.

I have a RFXtrx433E to control my applicable RF appliances which works like a charm expect for my TV-lift! i got it to work without issues using the RFXmngr in which the pulse timing seemed quite critical.

What i did so far is capture the signal by automatically add which results in a detection which matches the raw signal in RFXmngr.
Detected as: Switch: PT2262 cc1231 & 3 (up and down)

RFXmngr captures the raw signal as:
10-2-2025 02:24:06:872= 09130007CC1232015850
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 7
Code = CC1232 decimal:13374002
S1- S24 = 1100 1100 0001 0010 0011 0010
Pulse = 344 usec
Signal level = 5 -80dBm

Re-sending this command with a pulse timing of 300 usec worked like a charm every time.

So i convert these values to HEX

  • Down (1100 1100 0001 0010 0011 0010) → Hex: `CC1232
  • Up (1100 1100 0001 0010 0011 0001) → Hex: `CC1231

Now i can send it on the events page under development tools: (down as example)

service: rfxtrx.send
data:
event: 09130000CC1232

Nothing happens…, debug log shows the following:

DEBUG (SyncWorker_3) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0xcc 0x12 0x31

Does anyone have any idea how i can make this work?

1 post - 1 participant

Read full topic

Backup Size very large

$
0
0

Hi

I am running ha as container and I have my database as a maria db running on a seperate machine. Backup config is configured to only backup config. But my backup size is still 182gb.
If i do a size check pf the config directory, I cant find the reason for such a big backup. What else could be the reason for such big backups?

1 post - 1 participant

Read full topic


Automation only works the first time

$
0
0

I have an automation in the kitchen which was working but stopped a while ago when I changed the sensors.

Essentially i am looking for the automation to do the following:

After 19.30 and before 00:30 if the kitchen lights are on for 2 mins and no motion is detected on the Kitchen or Dining Room sensor, all the lights should turn off. I have another automation which turns the lights on during this time if motion is detected so I want this to continually turn on and off during this time on trigger of motion or no motion.

  alias: Kitchen No Motion Evening (New v2)
  description: Kitchen lights off after 2 mins of no motion.
  triggers:
  - trigger: state
    entity_id:
    - light.kitchen_lights
    to: 'on'
    for:
      hours: 0
      minutes: 2
      seconds: 0
  conditions:
  - type: is_not_occupied
    condition: device
    device_id: 8432837d7f12663595646277dc57998f
    entity_id: 32628c877b79a87244899865bb118f25
    domain: binary_sensor
    for:
      hours: 0
      minutes: 2
      seconds: 0
  - type: is_not_occupied
    condition: device
    device_id: 6702be4b7e92333bc5d69263f076b33b
    entity_id: 9b747b5e633a85874d51ebd982b4f29a
    domain: binary_sensor
    for:
      hours: 0
      minutes: 2
      seconds: 0
  - condition: time
    after: '19:30:00'
    before: 00:30:00
    weekday:
    - sun
    - sat
    - fri
    - thu
    - wed
    - tue
    - mon
  - condition: state
    entity_id: input_boolean.guest_mode
    state: 'off'
  - condition: state
    entity_id: input_boolean.flip_mode
    state: 'off'
  actions:
  - type: turn_off
    device_id: 63100c864650976e5ee028cdcdb7d120
    entity_id: 3af9b50cacdbdf8508f0939b26fb0448
    domain: light
  - type: turn_off
    device_id: 27a82779aa61114da85fad319f3ee2d9
    entity_id: 2d5ede666d72ed8dd8e5e21fc95c3721
    domain: light
  - type: turn_off
    device_id: 0fc582e96373c45d0941ab64d28833bd
    entity_id: d685ae9c38cb89ee90e12d56407c2508
    domain: light
  - type: turn_off
    device_id: efb3a51e4350ef7461fc928602c8cc30
    entity_id: 8ffbdc04b9af3785364797f837ad4694
    domain: light
  mode: single
type or paste code here

The lights seem to turn off the first time it is triggered but then after the first time it will never turn off again.

What am i doing wrong?

4 posts - 3 participants

Read full topic

Atomic Calendar Revive assistance, select a day and show events

$
0
0

I am currently implementing a dashboard with this really nice component. The issue I have is that I want to show it in two parts. On one part, I have the calendar view, and it appears as if the cells (days) are clickable, since the cell get a different style when selected. Also, some information on the current day events are presented below the calendar.

How can I capture this “tap” on the cell, so that I can use the atomic calendar in event mode to display a detailed list of events for that current day? I wish it was built in so these two modes of the calendar could work in tandem, but it is not the case. Also, there is no “tap” event hander that I can use that I am aware of.

How can I solve this?

1 post - 1 participant

Read full topic

Sonoff WIFI devices becoming unavailable

$
0
0

Hey, I’m having some issues with Sonoff switches becoming unavailable in homeassistant intermittently. They do however come back online if the switch button is manually pressed. Or if the switch is activated via ewelink.

This issue appears to be specific to each button on the device. For example a doubble switch can have switch A available while B is unavailable, and the switch doesnt go offline in ewelink. This leads me to beleve this isnt a network connectivity issue.

They are all M5-1C-86W & M5-2C-86W wifi switches. For refrence i have 89 of them total so unsure if im hitting some kind of limitation in the free version of the API or is this is a know issue.

I did find a known issue that sounds similar, so just wondering if I am experiencing said issue or if not what are the next steps to diagnosing whats happening?

1 post - 1 participant

Read full topic

Using an automation to update a "timestamp" field

$
0
0

I want to use an automation to capture the date/time a certain condition happens and display that date/time on a dashboard.

I got as far as creating an input_text helper entity in the GUI and creating an automation that stores {{ now() }} in the helper when the condition happens. But that entity is not treated as a timestamp, and I haven’t found a way to change that.

Maybe I’m going about this the wrong way. Any suggestions?

1 post - 1 participant

Read full topic

Triggering automation based on automation creation

$
0
0

Hi,

Is it possible to trigger an automation when a new automation is created by the user ?

I’d like to get inspiration from Create a drop-down list from entities? where the use case is to populate an input_select based on switches that may evolve over time (as far as I understood).

Now, I’d like to do the same, but replacing switches by handmade automations within HA. Use case is basically for benchmarking temperature programs in my house, in a kinda-scientific way.
So I need a group of automations (so called programs) from which I can pick only one at a time. Hence the dropdown (I couldn’t find helper groups for automations).

So, when the user adds an automation, it triggers the refreshing of the automation dropdown.
Then, I can easily display at a time T which program had been selected, and I avoid any risk of misspelling or anything when adapting the automation name to the dropdown items.

I know I could just provide options like a time-pattern or just be satisfied with clicking on “Run Actions”, but if there is already an implementation of this, I’d like to learn more :smiley:

1 post - 1 participant

Read full topic

Aqara light switches - MARS

$
0
0

Aqara has recently released Matter-over-Thread light switches in the EU and in the US. The switch’s home page describes Aqara’s proprietary “MARS” tech that synchronizes a smart light’s on/off status with the switch. However, it only works over Zigbee and only with Aqara bulbs. I wonder if this would be possible to do with HA over Matter, as well.

1 post - 1 participant

Read full topic

iOS shortcut triggers


RGB Controller is missing all the color options in Hass

$
0
0

Im using a Z-wave rgb controller through Smartthings, and for some reason I can only turn it on and off in home assistant, but can only change color in the smartthings app. Any idea a fix? Re-installing the integration did not help

1 post - 1 participant

Read full topic

Adding nodes further from the hub results in inclusion failures and dead nodes that can't be removed

$
0
0

I’ll preface this by saying I’m very new to Home Assistant and using it with ZWave devices, so please bear with me. I have experience with ZWave devices on the Samsung SmartThings platforms but am currently migrating my devices to Home Assistant. All the devices have been working properly on the SmartThings controller.

I’ve excluded all my devices from Samsung and am now adding them to the Home Assistant network.

Everything had been going great, and I have about 23 devices moved over, but have started to run into problems adding devices which are on the edge of the range. The hub detects the devices and begins the process of including it, but then something in the interview process goes wrong and the node isn’t properly added, but it also doesn’t outright fail and I end up with an incomplete dead node that is stuck in some strange state with numbered node in my table in Z-wave JS UI, with “Unknown” device/manufacturer. They have the circular spinning icon like something is being updated but that never completes, and they are never removed. Even after days, these do not go away. I’ve tried restarting Home Assistant and shutting down Home Assistant fully unplugging the controller and restarting,

I’ve also tried removing them with the “Remove Failed Node” command in Z-Wave JS UI but the command never completes and doesn’t remove them.

The first time I call “Remove Failed Node” I eventually get a time out error:

2025-02-12 17:35:07.122 INFO Z-WAVE: Calling api removeFailedNode with args: [ 2, [length]: 1 ]
2025-02-13T00:35:07.123Z CNTRLR » [Node 002] pinging the node...
2025-02-12 17:35:21.177 INFO APP: GET /health/zwave 301 0.615 ms - 162
2025-02-13T00:35:28.549Z CNTRLR   [Node 002] The node did not respond after 1 attempts, it is presumed dead
2025-02-13T00:35:28.551Z CNTRLR   [Node 002] ping failed: The node did not acknowledge the command (ZW0204)
2025-02-12 17:35:51.222 INFO APP: GET /health/zwave 301 0.675 ms - 162
2025-02-12 17:35:58.566 INFO Z-WAVE: Timeout while waiting for a callback from the controller (ZW0200) removeFailedNode undefined
2025-02-12 17:36:21.282 INFO APP: GET /health/zwave 301 0.548 ms - 162
2025-02-12 17:36:51.342 INFO APP: GET /health/zwave 301 0.606 ms - 162
2025-02-12 17:36:52.130 INFO Z-WAVE: Removing user callbacks

Any subsequent time I call the “Remove Failed Node” I get:

2025-02-12 17:38:51.091 INFO Z-WAVE: Calling api removeFailedNode with args: [ 2, [length]: 1 ]
2025-02-13T00:38:51.091Z CNTRLR » [Node 002] pinging the node...
2025-02-12 17:38:51.578 INFO APP: GET /health/zwave 301 0.680 ms - 162
2025-02-13T00:39:12.623Z CNTRLR   [Node 002] The node did not respond after 1 attempts, it is presumed dead
2025-02-13T00:39:12.624Z CNTRLR   [Node 002] ping failed: The node did not acknowledge the command (ZW0204)
2025-02-13T00:39:12.635Z CNTRLR   The controller response indicated failure after 1/3 attempts. Scheduling next 
                                  try in 100 ms.
2025-02-13T00:39:12.742Z CNTRLR   The controller response indicated failure after 2/3 attempts. Scheduling next 
                                  try in 1100 ms.
2025-02-12 17:39:13.853 INFO Z-WAVE: The node removal process could not be started due to the following reasons:
· The node removal process is currently busy (ZW0360) removeFailedNode undefined
2025-02-12 17:39:21.626 INFO APP: GET /health/zwave 301 0.745 ms - 162
2025-02-12 17:39:27.661 INFO Z-WAVE: Removing user callbacks

I continue to get that error until I reboot Home Assistant, then I get the time out error again once and I’m back to get the currently busy message.

Is there any way to remove these that does not require me to wipe the controller and start over? I’m concerned that I’ll just end up in the same state again if one node fails to add for some reason and I’d like to find a way to address them that doesn’t involve starting over.

Related: I’m not sure what is going on with the nodes getting partially added. As I understand it the best practice now is not to move the hub closer to the device when including them and they should be able to be successfully added via hops through existing devices. In the early days of ZWave the only way to get nodes added was to bring the device and the hub close together.

Thank you!

System setup:

  • Home Assistant running on a Raspberry PI 5
  • Core v2025.3.3 / Supervisor v2025.02.0 / OS v14.2 / Frontend 20250210.0
    *Z-Wave JS Driver Version:14.3.8, Server version: 1.40.2
  • Z-Wave JS UI 9.30.1
  • Zooz ZST39 LR controller / FW v1.50 / SDK v7.22.1
Failed Node Debug JS:
{
  "id": 2,
  "name": "",
  "loc": "",
  "values": [],
  "groups": [],
  "neighbors": [],
  "ready": false,
  "available": false,
  "hassDevices": {},
  "failed": false,
  "inited": false,
  "eventsQueue": [
    {
      "time": "2025-02-13T00:29:41.640Z",
      "event": "dead",
      "args": [
        0
      ]
    },
    {
      "time": "2025-02-13T00:29:41.644Z",
      "event": "interview failed",
      "args": [
        {
          "errorMessage": "The node is dead",
          "isFinal": true
        }
      ]
    }
  ],
  "status": "Dead",
  "interviewStage": "ProtocolInfo",
  "priorityReturnRoute": {},
  "customReturnRoute": {},
  "customSUCReturnRoutes": [],
  "applicationRoute": false,
  "hexId": "0xXXXX 0xXXXX-0xXXXX",
  "dbLink": "https://devices.zwave-js.io/?jumpTo=0xXXXX:0xXXXX:0xXXXX:0.0",
  "productLabel": "Unknown product 0xXXXX",
  "productDescription": "0xXXXX",
  "manufacturer": "Unknown manufacturer 0xXXXX",
  "protocolVersion": 3,
  "nodeType": 1,
  "endpointsCount": 0,
  "endpoints": [
    {
      "index": 0,
      "label": "Root Endpoint",
      "deviceClass": {
        "basic": 4,
        "generic": 17,
        "specific": 7
      }
    }
  ],
  "supportsSecurity": false,
  "supportsBeaming": true,
  "isControllerNode": false,
  "isListening": false,
  "isFrequentListening": "1000ms",
  "isRouting": true,
  "keepAwake": false,
  "maxDataRate": 100000,
  "deviceClass": {
    "basic": 4,
    "generic": 17,
    "specific": 7
  },
  "lastActive": null,
  "firmwareCapabilities": {
    "firmwareUpgradable": false
  },
  "protocol": 0,
  "deviceId": "undefined-undefined-undefined",
  "statistics": {
    "commandsTX": 0,
    "commandsRX": 0,
    "commandsDroppedRX": 0,
    "commandsDroppedTX": 0,
    "timeoutResponse": 0
  },
  "_name": "NodeID_2",
  "prioritySUCReturnRoute": false
}


Screen Shot 2025-02-12 at 17.21.42 PM
Screen Shot 2025-02-12 at 17.22.58 PM

1 post - 1 participant

Read full topic

Apex Chart Cards Y-Axis ID ignored?

$
0
0

Hi!

Apexcharts-card is so nice. Been using it for basic good looking stuff for a while now.

I have difficulty on creating a two axis graph for fridge temperatures on one side and freezer temperatures on the other. I have 4 series, and need to match 2 ea side.

It seems series 1 gets matched do the left and 2,3,4 to the right, no matter the id I specify in series. Been bumping on that for a while. Maybe an experienced eye will find my error in a sec. :slight_smile:

Thanks

type: custom:apexcharts-card
header:
  title: Refrigeradores e Congeladores
  show: true
apex_config:
  yaxis:
    - id: esquerda
      title:
        text: Geladeiras
      min: |
        EVAL:function(min) {
          return min;
        }
    - id: direita
      title:
        text: Congeladores
      opposite: true
      min: |
        EVAL:function(min) {
          return min;
        }
series:
  - entity: sensor.termometro_geladeira_geral_temperature
    name: Geladeira Geral
    yaxis_id: esquerda
  - entity: sensor.termometro_geladeira_vidro_refrigerador_temperature
    name: Geladeira Vidro
    yaxis_id: esquerda
  - entity: sensor.termometro_geladeira_geral_congelador_temperature
    name: Freezer Geral
    yaxis_id: direita
  - entity: sensor.termometro_geladeira_vidro_congelador_temperature
    name: Freezer Vidro
    yaxis_id: direita

image

1 post - 1 participant

Read full topic

Internal Voice Assistant on Separate Server

$
0
0

Sort of the idea I think this post is getting at. I have a Home Assistant Yellow and just bought a Home Assistant Voice Preview Edition. I want to set up a local voice system, but I don’t want to wait 8 seconds for the Pi Compute Module in the Yellow to process sound. So, I figured I’d set up faster-whisper and piper on a separate amd64 server I have handy and somehow link Home Assistant to it…but the READMEs for those projects seem geared toward command-line usage, and the Getting Started guides from Home Assistant seem focused on either “local” (meaning on the same host as the Home Assistant service) or “cloud” (meaning somewhere out in the internet) and nothing in between.

Long story to short question: Where do I look for guidance for setting up faster-whisper and piper on a separate server on my LAN, then getting Home Assistant to use it for Voice Assistant? I feel like it’s going to be something along the lines of “fooling” a “cloud” setup into talking to a local server…

Thanks in advance for all tips!

Note: This post was authored with more reference links, but I’m a ‘new user’ and therefore limited to two links per post…

2 posts - 2 participants

Read full topic

Z-wave network down with restart loops in logs

$
0
0

Not sure what’s going on but updated like an hour ago to z-wave js addon 0.10.0 and now some nodes are not showing as online and even the ones showing up are not able to be controlled from home assistant.

The addon logs start up normally for a while then start spamming like this

2025-02-13T01:15:47.148Z CNTRLR   Serial API restarted unexpectedly.
2025-02-13T01:15:47.148Z CNTRLR   Currently active command will be retried...
2025-02-13T01:15:47.148Z CNTRLR   Starting hardware watchdog...
2025-02-13T01:15:47.151Z CNTRLR   Switching serial API to 16-bit node IDs...
2025-02-13T01:15:47.167Z CNTRLR   Switching to 16-bit node IDs successful
2025-02-13T01:15:48.396Z CNTRLR   Serial API restarted unexpectedly.
2025-02-13T01:15:48.396Z CNTRLR   Currently active command will be retried...
2025-02-13T01:15:48.396Z CNTRLR   Starting hardware watchdog...
2025-02-13T01:15:48.399Z CNTRLR   Switching serial API to 16-bit node IDs...
2025-02-13T01:15:48.415Z CNTRLR   Switching to 16-bit node IDs successful
2025-02-13T01:15:49.644Z CNTRLR   Serial API restarted unexpectedly.
2025-02-13T01:15:49.644Z CNTRLR   Currently active command will be retried...
2025-02-13T01:15:49.645Z CNTRLR   Starting hardware watchdog...
2025-02-13T01:15:49.648Z CNTRLR   Switching serial API to 16-bit node IDs...
2025-02-13T01:15:49.665Z CNTRLR   Switching to 16-bit node IDs successful
2025-02-13T01:15:50.894Z CNTRLR   Serial API restarted unexpectedly.
2025-02-13T01:15:50.894Z CNTRLR   Currently active command will be retried...
2025-02-13T01:15:50.894Z CNTRLR   Starting hardware watchdog...
2025-02-13T01:15:50.898Z CNTRLR   Switching serial API to 16-bit node IDs...
2025-02-13T01:15:50.914Z CNTRLR   Switching to 16-bit node IDs successful

I completely restarted my home assistant yellow and then I restored the addon to 0.9.0 from yesterday’s backup but that hasn’t fixed the issue.

Also seeing the occasional log like this

2025-02-13T01:16:37.111Z CNTRLR   Failed to execute controller command after 1/3 attempts. Scheduling next try i
                                  n 100 ms.
2025-02-13T01:16:37.113Z CNTRLR   [Node 5791] is unknown - discarding received command...

Controller is a Zooz ZST10 with firmware 7.18.3

Been running it for maybe 2 years now and never seen this issue.

2 posts - 1 participant

Read full topic

Viewing all 106694 articles
Browse latest View live


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