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

Reliable automation start stop

$
0
0

Hello all,

Is there a reliable, restart resistant method to make sure that my automations will start, or at least stop when they are supposed to?

I just woke up with the ac running all night because the automation that was supposed to turn it off after 3 hours did not fire. I suspect it was because there was a restart at some point during those 3 hours.

I would be glad if there was a sort of check to see if after restart there are things that are running and are not supposed to. Can this be done?

5 posts - 3 participants

Read full topic


Where is number of update/alerts stored?

$
0
0

I am updating my wall panel view and as it is not showing the HA sidebar, I would like to show the number of updates/repairs as it is shown in the left panel for settings.
image

I managed to do it but only with the number of persistent notifications, I would like to display the number of updates as well:


The orange number you see there it’s actually persistent notification, not updates.

1 post - 1 participant

Read full topic

Disable ripple effect in custom button card not working on android

$
0
0

Hi, I tried asking in the oficial post but no answer. I’m trying to disable the ripple effect in a custom button card but not working on android, on iOS and pc (chrome) works. If I try to change the color works right, it seems to be the opacity value. Is there any other way to do it? Tried with pointer-events: none and works but I loose the click behavior.

Thanks in advance

styles:
  card:
    - --mdc-ripple-color: transparent
    - --mdc-ripple-press-opacity: 0

1 post - 1 participant

Read full topic

Covers with optimistic state

$
0
0

hi all, have some question on how to sync the state of 2 individual covers with one that would possibly cover both.

In more detail, currently i have this cover configuration:

- platform: template
  covers:
    garage_door_1:
      device_class: garage
      friendly_name: "Garage Door 1"
      unique_id: "garagedoor1"
      optimistic: true
      open_cover:
      - service: switch.turn_on
        target:
          entity_id: switch.garage_1
      close_cover:
      - service: switch.turn_on
        target:
          entity_id: switch.garage_1
    garage_door_2:
      device_class: garage
      friendly_name: "Garage Door 2"
      unique_id: "garagedoor2"
      optimistic: true
      open_cover:
      - service: switch.turn_on
        target:
          entity_id: switch.garage_2
      close_cover:
      - service: switch.turn_on
        target:
          entity_id: switch.garage_2
type or paste code here

With the above, each door can have it’s own state.

But if i create similar configuration to control both at the same time:

    both_garage_doors:
      device_class: garage
      friendly_name: "Both Garage Doors"
      unique_id: "bothgaragedoors"
      optimistic: true
      open_cover:
      - service: switch.turn_on
        target:
          entity_id: switch.garage_1
      - service: switch.turn_on
        target:
          entity_id: switch.garage_2
      close_cover:
      - service: switch.turn_on
        target:
          entity_id: switch.garage_1
      - service: switch.turn_on
        target:
          entity_id: switch.garage_2

Then if i use the “both garage doors” entity to open both, the state is not registered to each door.
Anyway i can do this?

Thanks

4 posts - 2 participants

Read full topic

Regional settings

$
0
0

I have two running setups of HA. One in a docker is currently in productive use and the second with HA-OS I’m experimenting with. The locale is set to Germany and language to English. For some reason the e.g. start and end input in history is 12 hours with AM and PM, in docker it’s 24 hours. I have found no way to make HA-OS use 24 hours too. I wouldn’t mind that much in principle, but it’s two extra clicks every time.
By the way I am surprised that this community does not seem to care one bit about the non-working WLAN in HA-OS. WLAN channel 13 (HaOS) - #4 by AxelBerger

3 posts - 2 participants

Read full topic

Combining two sensors for garage door status

$
0
0

Hi Team,
Im just moving over from OpenHAB to HomeAssistant with ~95% success rate.
One thing I wasnt still able to hammer out was the thing with virtual components.
In OH there is a very handy way to create an Item and set status based on rule aka automation. Thats really an OOTB way of managing multiple stati.
In HA it seems a bit more manual and not really straight forward - but thats okay.
Whats my issue here:
I have two zigbee contact sensors to indicate the garage door position. The combination of both sensors values tells me whether the door is open,moving or closed. Based on history Im even able to tell if its opening or closing.
I’ve created a virtual component (GarageDoorStatus) in virtual.yaml

version: 1
devices: 
 GarageDoorStatus:
  - platform: cover
    initial_value: 'closed'
    open_close_duration: 15
    open_close_tick: 1

When it comes into Automation where I create the rule, I cannot find the virtual component as defined above to set the status to.

What is my misunderstanding?

2 posts - 2 participants

Read full topic

Satellite map

$
0
0

Hi there,

Is it possible to change the map view to satellite view, and if so, how can this be done?

2 posts - 2 participants

Read full topic

Switch and Dimmer - 2 entities -> 1 command

$
0
0

Hi everybody! I have a question for you:
i have a strip led connected by two smart device:

  1. smart relay that pilot the power supply 220v - 24v
  2. dimmer 24v - 24v for light intensity
    I know that was better have a TRIAC and a 220v dimmer but now i wan’t buy everything twice.
    My question is: it’s possible pilote this two entities like one, e.g. like a native dimmer lightbulb
    → ON-OFF: switch the status of releay
    → Dimming: change intensity

using a custom entity like this:

thank you so much

8 posts - 2 participants

Read full topic


Alarm not triggered (Alarmo)

$
0
0

I have an issue with alarmo: the alarm is not triggered.

When the alarm is set, and soon after I open the door or activate a motion sensor, the alarm goes off. But when we leave the house in the morning, and come back later that day, nothing happens. I know the door sensor is working, because the lights go on as soon as I open the door and I can also see in HA that the motion sensor has worked. But, no alarm. As if some kind of connection is lost with Alarmo.

Is anyone else having this issue or knows about it? Is there something I need to check, change in me setup, a log I can share?

1 post - 1 participant

Read full topic

Best Practise on putting HA on Home-subnet or Io- subnet

$
0
0

Hello,
before HA i was using iobroker. I had a IoT subnet where i had everything. I also had a home subnet for my mobile and PC.
I was running into issues because my phone cant broadcast in the IoT and vice versa. So that caused multiple issues, as well with the homepods.
Hence when i switched to HA i set up everything on my home network.

While this is working convinient, i am putting more and more devices and i start to worry because my PC and mobile is on this subnet so i kinda want to secure them.

Now im scared that i run into issues again.
What do you guys do? All on one subnet? Do 2 subnets and try to hack everything in? Especially Multicast routing is always a big pain and i really like to avoid it.

1 post - 1 participant

Read full topic

How to set border-radius on Title Humidifier

$
0
0

separate post for clarity, and because it is unexpectedly difficult…

trying to set a border-radius of my theme to the buttons on the humidifier, I can not immediately find a way to do so:

  - type: tile
    entity: humidifier.badkamer
    card_mod:
      style:

        hui-card-features $:
          hui-humidifier-toggle-card-feature $:
            ha-control-select$: |
              .container {
                border-radius: var(--ha-card-border-radius);
              }
              .option-on.option.selected {
                --control-select-button-border-radius: 0 !important;
              }
        hui-card-features $:
          hui-target-humidity-card-feature $:
            ha-control-slider$: |
              .container {
                --control-slider-border-radius: var(--ha-card-border-radius);
              }
              .slider .slider-track-bar {
                border-radius: var(--ha-card-border-radius) !important;
              }

works almost perfectly, except for the option buttons
if I set the border-radius on the element in Inspector, it does kick in, but somehow my card-mod skills leave me here.

and upon reloading even the container fall back to its default 10px now… so not reliable after all

I did manage to pull it off on several other tiles

carefully watching my Climate tile, I can copy this:

  - type: tile
    entity: humidifier.badkamer
    card_mod:
      style:

        hui-card-features $:
          hui-humidifier-toggle-card-feature $:
            ha-control-select$: |
              .container {
                --control-select-border-radius: var(--ha-card-border-radius);
                --control-select-button-border-radius: var(--ha-card-border-radius);
              }

          hui-target-humidity-card-feature $:
            ha-control-slider$: |
              .container {
                --control-slider-border-radius: var(--ha-card-border-radius);
              }
              .slider .slider-track-bar {
                border-radius: var(--ha-card-border-radius) !important;
              }

and bingo:

1 post - 1 participant

Read full topic

Picture Glance open external App depending on OS

$
0
0

I looked through for some days, trying to solve an issue I’d like to resolve. It depends on the not yet existing microphone function allowing bi-directional communication with a doorcam (yet).

As a workaround for this, I would like to have the possibility to open i.e. a Windows program (Laptop) or Android app (Smartphone), others may have the same need for Linux or Apple, when I click on the camera image in picture glance. So instead of opening the picture in a pop-up that is not of real use size-wise, it should open up the OS-specific App.

One approach would be https://github.com/home-assistant/android/pull/1007, but this must be then dependent on either the operating system or maybe the device.

I could possibly trigger this as an automation, like a switch to activate the camera app on the mobile, but then again, I’d need to separate the OS, from which the call originates, as I neither want to pop up the camera app on all family members or all my devices using that dashboard. But the one on which I “answer” the door call.
I also would like to keep Home Assistant active, as the door opener is not inside the camera app, so to open the door, I’ll switch back to Home Assistant.

I’m relatively Newbie on Home Assistant, I love the ideas and sample codes I find, but the microphone and bi-directional voice on the doorcam seem to remain a dead end for now and I also don’t find anything on such a workaround yet?
And while knowing LAMP, YAML is still new to me, so I’m not good enough to understand the programming basics on YAML yet, work with adjusting such sample codes…?
I did not find anything yet on how to open an app from clicking on the picture glance card. But I think this might be a workaround for many such cases where an external app might need to be opened from a card? Apologies if I missed the right manual, directions also welcome!

1 post - 1 participant

Read full topic

Statistic entities - Seems I made a mistake

$
0
0

Using the wizard for the first time, I’ve created a statistic helper, but it is not doing, what I had in mind.

I was expecting that it shows me “the average temperature” in my room. But it seems that what I’ve gotten out of the documentation is wrong.

How would such an entity look like, if it should tell me the average temperature of the last 4 hours and fill a diagram containing values of the last week.

1 post - 1 participant

Read full topic

Card-mod: How to hide sub-element in a ha-card?

$
0
0

I’m trying to modify a logbook card to hide the date header, but I can seem to figure out how to do this using the card-mod.

This is (part of) my configuration:

 - type: logbook
    entities:
      - binary_sensor.door_bedroom_opening
    hours_to_show: 200
    card_mod:
      style: |
        ha-card {
          max-height: 120px;
          overflow: hidden;
        } 
        .date {
           background-color: pink;
        }

No matter if I use “.date” or “h4” or “h4.date” - it seems that I cannot target the date block.

Thanks in advance…

1 post - 1 participant

Read full topic

Generic Thermostat Helper Template Switch Help

$
0
0

I have been using Generic Thermostats to control radiator valves. I’m using an input_boolean helper to indicate if the generic thermostat conditions mean the radiator should be on or off and another input_boolean which is related to whether or not I actually want the heating to come on.

- platform: generic_thermostat
  name: b_temp
  unique_id: b_temp_av
  heater: input_boolean.b_state
  target_sensor: sensor.average_temp_bedroom
  min_temp: 17
  max_temp: 22
  cold_tolerance: 0.2
  hot_tolerance: 0
  min_cycle_duration:
    seconds: 5
- id: srv_b
  alias: sRV_B
  trigger:
  - platform: state
    entity_id:
    - input_boolean.b_state
    from: 'off'
    to: 'on'
  - platform: state
    entity_id:
    - input_boolean.b_state
    from: 'on'
    to: 'off'
  condition:
  - condition: state
    entity_id: input_boolean.heating_switch
    state: 'on'
  action:
  - service: '{% if is_state_attr(''climate.b_temp'', ''hvac_action'', ''heating'')
      %} switch.turn_off {% elif is_state_attr(''climate.b_temp'', ''hvac_action'',
      ''idle'') %} switch.turn_on {% endif %}'
    entity_id: switch.srv_bedroom
  initial_state: 'true'
  mode: restart
# turning the switch on closes the radiator valve

If the input_boolean.b_state turns on and I want the radiator to start warming the house (input_boolean.heating_switch is on) then my action checks the state attribute of the climate entity. If it’s already in ‘heating’ then the radiator valve switch will turn_off (or probably just remain off), so that the radiator valve stays open.

The reason I’ve done it this way is because when I turn the heating on/off, all my radiator valves run this respective automation, so they will open/close based on the generic thermostat but if I turn the heating off, all the switches will turn off and the valves will all open, to avoid any valves getting stuck closed.

I recently requested for the Generic Thermostat Integration to allow the use of input_booleans as the actuator switch but the merging to allow this was stopped by balloob and the recommendation is to use a Template Switch instead.

I created this setup many years ago and now trying to revisit it and remember my own logic is challenging (ever gone back to an excel spreadsheet and try to remember the formulas you set up!?) either way…

TL:DR

Could I have some guidance on how I could use a Template Switch to achieve the same? I do appreciate I could just keep this in YAML but if balloob says use a Template Switch seems something worth investigating.

1 post - 1 participant

Read full topic


Switch my installation from Multiprotocol to standard OpenThreadRouter ... failed!

$
0
0

Hello,

I was running on my Home Assistant 2024.7.2 with a working Multiprotocol installation of Thread/Matter + Zigbee. Device -ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2 (Sonoff Zigbee Dongle -E).

Everything was working fine, no issue at all. So why I changed ? because I read everywhere that the Multiprotocol option is no longer a recommended option, that it will not be maintained, and that user should prefer deploying two dongles if they need Zigbee and Thread on their installation. This is not a big issue for me and I prefer switching now that I have three Thread devices, and planning to add some more, than when my installation will be larger.

Issue: I was not able to get Matter/Thread working again: when adding a device, my phone is blocked on the step “Checking for network” then fails to add the device.

What I have done so far:
I installed the OpenThread Border Router integration (2.9.0) and I configured it:
Device:
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230829202004-if00
Baudrate: 460800
No hardware flow control, no automatically flash firmware
I tested OTBR firewall and NAT65 on and off, just in case


Nothing strange in logs:

s6-rc: info: service mdns: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service mdns successfully started
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service banner: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
[13:10:57] INFO: Starting mDNS Responder…
Default: mDNSResponder (Engineering Build) (Jul 2 2024 09:04:20) starting


Add-on: OpenThread Border Router
OpenThread Border Router add-on

Add-on version: 2.9.0
You are running the latest version of this add-on.
System: Home Assistant OS 12.4 (amd64 / generic-x86-64)
Home Assistant Core: 2024.7.2
Home Assistant Supervisor: 2024.06.2

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service banner successfully started
s6-rc: info: service universal-silabs-flasher: starting
[13:10:59] INFO: Flashing firmware is disabled
s6-rc: info: service universal-silabs-flasher successfully started
s6-rc: info: service otbr-agent: starting
[13:11:00] INFO: Setup OTBR firewall…
[13:11:00] INFO: Starting otbr-agent…
s6-rc: info: service otbr-agent successfully started
s6-rc: info: service otbr-agent-rest-discovery: starting
s6-rc: info: service otbr-agent-configure: starting
[13:11:00] INFO: Enabling NAT64.
Done
Done
Done
s6-rc: info: service otbr-agent-configure successfully started
[13:11:01] INFO: Successfully sent discovery information to Home Assistant.
s6-rc: info: service otbr-agent-rest-discovery successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started

Thread service is there: The OpenThread border router is configured.

Matter integration is also there:

In HA Companion App, I used the Synchronize Thread identifiers in troubleshooting, as well as the option “Send credentials to Home Assistant” in the thread preferred network page.

And so I am stuck not being able to add my devices again. No device can be added (Nuki Smart Lock, Eve Energy, Aqare Motion …) so the issue seems not linked to the devices.

I do not where to have a look to, I had this issue months ago when trying to move my HA setup from a VM to some other hardware, and I never have been able to figure out how to debug these issues.

Thanks!

1 post - 1 participant

Read full topic

How to add an entity previews as card

$
0
0

Hello, I’m new to HA.

I would know if there is a way to add the default views of an entity as a card, here is an example :
I have my Dyson fans entity, when we click on it, we get this preview.

I would like to add this views as card on my dashboard, there is a way to do it, or I need to manually create it ?

Thanks for your help :smile:

1 post - 1 participant

Read full topic

JSON extract help

$
0
0

i’ve a JSON extract from a heatpump URL that gives me the below (truncated extract)

{
“heatpump”: [
{
“Topic”: “TOP0”,
“Name”: “Heatpump_State”,
“Value”: “1”,
“Description”: “On”
},
{
“Topic”: “TOP1”,
“Name”: “Pump_Flow”,
“Value”: “0.13”,
“Description”: “l/min”
},
{
“Topic”: “TOP2”,
“Name”: “Force_DHW_State”,
“Value”: “0”,
“Description”: “Disabled”
},
]
}

I’ve got so far in my code:
sensor:

  • platform: rest
    name: “Heatpump Data”
    resource: http://192.168.1.193/json
    json_attributes_path: “$.heatpump”
    json_attributes:

    • TOP1
    • TOP2
      scan_interval: 60
      value_template: “{{ value_json.heatpump[0].Value }}”
  • platform: template
    sensors:
    force_dhw_state:
    friendly_name: “Force DHW State”
    value_template: “{{ state_attr(‘sensor.heatpump_data’, ‘2’)[‘Value’] }}”

    pump_flow:
    friendly_name: “Pump Flow”
    value_template: “{{ state_attr(‘sensor.heatpump_data’, ‘1’)[‘Value’] }}”

but I get no values returned, what am I missing, any pointers appreciated, thx.

2 posts - 2 participants

Read full topic

Cannot Connect new Devices to conbee II Stick

$
0
0

Hello Guys

I have an issue. I have my HA on a Raspy 5 and use a Dresden Electronics ConBee II Zigbee Coordinator. I just use the Zigbee Integration.

I added 24 Devices and this worked just fine. After this I had trouble registering more devices, but somehow I could do it. But it didn’t refresh for more than 24 Devices. So I found out there is a limit to how many Zigbee devices I can connect directly.

So I ordered a Zigbee Repeater to add more devices. But I needed to clear some space for the repeaters, that’s why I deleted 4 Aqara Window Sensors. But I wanted to try if I can connect new devices again, since now the limit should be okay (less than 20 devices connected at the moment).

But I cannot find any new devices. No factory new ones, no devices I had previously connected and then deleted (so reconnection not possible) and also I cannot find my repeaters. Just no device found. And that’s a problem because I cannot add my devices and repeaters now. In the log, it shows nothing (it’s empty).

Does anyone have an idea why this is the case and how I can fix it. I googled already a lot, but I cannot find a good solution. A lot of people have quite complex setups with containers and deconz. But I don’t understand why you would do it so complex

Anyway, I wish you a nice day, and thanks in advance for all replies!

1 post - 1 participant

Read full topic

Browser mod popup close from script

$
0
0

I have a popup I want to close with a scripted button. Tried 2 scripts, but they don’t work.
Anyone an idea ?

- type: custom:mushroom-template-card
  primary: Ja
  tap_action:
    action: fire-dom-event
    browser_mod:
      service: script.verlichting_allesuit
      data:
        browser_id: THIS

script:

  - service: browser_mod.navigate
    data:
      path: /ui-lovelace-minimalist/home
      browser_id: "{{ browser_id }}"
    enabled: true
  - service: browser_mod.close_popup
    data:
      browser_id: "{{ browser_id }}"

1 post - 1 participant

Read full topic

Viewing all 106555 articles
Browse latest View live


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