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

Sonos integration does not find anymore my speakers (same vlan as HA)

$
0
0

I have been running Home Assistant via its official docker image on a Raspberry Pi 4 for some years. Recently, I switched over to an Intel N100 machine and moved the docker container and its configuration there. It has been running smooth and everything immediately worked from the start.

However, there is only one integration that has stopped working since the moving: the Sonos one. I have 3 speakers, a soundbar and a woofer from Sonos.

When I was on the Raspberry Pi 4, Home Assistant automatically found all those devices by itself. Now I don’t receive anymore the notification but even trying to “manully” add the speakers by going to Integrations → Sonos, I get a “No devices found on the network” message.

The speakers are on the same vlan (I only have one) and I can ping them all from my N100 machine where Home Assistant is running.

Do you know what I am doing wrong and how could I re-add them into Home Assistant? I really don’t understand what is going on.

1 post - 1 participant

Read full topic


Can somebody suggest sliders that would be fitting for an equalizer?

$
0
0

I use J.River Media Center, but the full equalizer isn’t exposed in the API. I can however send HTTP commands like this:

http://127.0.0.1:16000/MCWS/v1/DSP/SetEqualizer?Zone=-1&ZoneType=ID&Slider=1&Level=25

That one sets the value of the 31.1 Hz slider to +25 %, which means 3 dB in this equalizer:

What I’m looking for is a slider version that I can configure so I have one per slider in the equalizer, which means 20, but isn’t so big that it won’t work on a phone or tablet screen. Preferably with vertical sliders, if possible. Since there is no feedback (at least I don’t think there is one, I have asked on the JRMC board) I guess I have to assume the value has gone through. That means that there can be no adjustments done to the equalizer outside of Hass, but that isn’t a big problem if the sliders in Hass work well. I just need to know they are syncronized. it would be nice to have the percentage or the dB value shown as a number as well, even if that isn’t a must. Does anybody have a suggestion about something that would fit the bill? I have looked around a bit, but not found something that is ticking my boxes.

1 post - 1 participant

Read full topic

Need your help with automation

$
0
0

Hi,

I have created such automation to log media player titles:

id: '1720000000001'
alias: Log song name
description: Logs song name
trigger:
  - platform: device
    device_id: 00000000000000000000000000000001
    domain: media_player
    entity_id: 00000000000000000000000000000002
    type: playing
condition: []
action:
  - service: logbook.log
    metadata: {}
    data:
      name: Living Room Speaker currently playing
      entity_id: media_player.living_room_speaker
      domain: media_player
      message: >
        {{ states.media_player.living_room_speaker.attributes.media_artist }} -
        {{ states.media_player.living_room_speaker.attributes.media_title }}
mode: single

When I manually click “Next” or “Previous”, it adds log as expected:

But when the next track starts automatically, it does not log track name, just logs that state was changed to “Playing”:

As I am listening to state “Playing”, why does it not trigger when it changes automatically? Should I listen to a different state? If so, then to what state?
Thanks

Update: It looks to trigger that automatically too, but:

  • manually it logs title when song starts playing
  • automatically it logs title when song stops playing and new one starts playing (aka it logs previous title).

Any ideas why is it happening and how to fix it?

6 posts - 4 participants

Read full topic

Login Issues: It's complicated

$
0
0

Hi, I’m a new user and since day one, sometimes it’s hard to login. I got the credentials saved in my Password Manager, and they get copied over, so it’n not about this.

It simply loads forever. Sometimes I clear the cache and after 5-6 tries it works. Is there anything I can do to optimze it ?

Login attempt or request with invalid authentication from notebook.fritz.box (192.168.x.x). See the log for details.

Where do I find the log for this ?

1 post - 1 participant

Read full topic

Tts with Alexa device (without Alexa Media Player integration). is it possible?

$
0
0

Hi there,

I have used custom integration ‘alexa media player’ to make tts to Alexa devices. It works, but recently I am experiencing frequent issues with ‘alexa media player’ integration.

On other hand, I’ve now suscbribed to Nabu Casa account.

Nabu casa account is working – I am able to expose some entinty from HA to Alexa and can control/see status in Alexa.

Just wondering if there is a way to make tts service work to use Alexa Echo devices utilizing nabu casa (without Alexa Media Player integration)?

thanks in adv.

1 post - 1 participant

Read full topic

Cover Toggle

$
0
0

I have the following code and when I push the icon it’s supposed to toggle the blinds open and closed but I receive this error. Any ideas


show_icon: true
type: button
tap_action:
  action: toggle
icon_height: 50px
name: Sink Blinds
icon: ''
entity: cover.blind_tilt_5bb6
show_state: true

6 posts - 2 participants

Read full topic

How do I create a group entity from floor area

$
0
0

All my lights are categorized to areas and floors.

How/Can I create a light group entity from all the lights that are defined on a certain floor?

2 posts - 2 participants

Read full topic

Media play thumb local image

$
0
0

I have created an automation that will play a mp3 file from the media-source dir on my google nest speaker. Now i want to add a thumbnail as well; so i can see this extra details on my phone (google home app). If i use an external url (some image from the internet) then it works fine; but i can’t get an image file from the media-source working.

my action looks like this:

service: media_player.play_media
data:
  media_content_id: media-source://media_source/local/my_song.mp3
  media_content_type: music
  extra:
    thumb: media-source://media_source/local/my_song.png
    title: My song
target:
  entity_id: |
    {{ trigger.entity_id }}

1 post - 1 participant

Read full topic


Play Jellyfin Media at a Future Time/Date

$
0
0

Hi Community!

I am trying to create an automation or script to emulate the movie theater experience. So far I am able to do the following:

  • turn on my projector, receiver, and shield tv
  • navigate to the Jellyfin app
  • dim the lights.

So far so good, but I would like the movie to be preselected and to start playing at the “showtime”. To this end, I want to find a way of selecting media in the home assistant UI and telling it to play the media through Jellyfin at some scheduled future time. Is there an asset which supports this functionality?

I was thinking I could have a media player card which allowed me to select media from my Jellyfin library and stored the selection in a variable. The script would then use this captured variable.

Any thoughts on a good way to do this? Is there even an asset which will allow me to accomplish what I want to do?

1 post - 1 participant

Read full topic

Retriving hours and minutes until next alarm

$
0
0

Hi,

I’m trying to show the hours and minutes until the next alarm in my dashboard.
The alarm is stored in a input datetime helper with just time.

I have this template:

{{ time_until(as_datetime(strptime(states(‘input_datetime.alarm’),“%H:%M”)),1) }}

But it fails with the following error:
ValueError: Template error: strptime got invalid input ‘09:00:00’ when rendering template ‘{{ time_until(as_datetime(strptime(states(‘input_datetime.alarm’),“%H:%M”)),1) }}’ but no default was specified

Any help would be greatly appriciated.

5 posts - 4 participants

Read full topic

Manual installed lovelace card modules ignored

$
0
0

Hi, I know this question has been discussed here multiple times but I have not been succesful in solving my problem.

My homeassistant instance is 2023.1. and I do not have supervisor nor hacs installed due to hardware limitations. It is running on debian 11 on an arm board (olimex). Unfortunately I do not have the possibility to upgrade to a supervised installation.

I need to install some additional card configurations, like layout-card. I’ve downloaded the zip-file from github and unzipped it in .homeassistant/config/www after adding it in the resources list (via dashboard), and restarting homeassistant I expected it to be available in my lovelace frontend. Unfortunately I keep getting the error:

Custom element doesn’t exist: layout-card:

In home-assistant.log (set to default debug) I get no reference to any manually installed module, it seems that all are completely ignored.

Could it be that the additional resources are expected in another directory? Or is there an option which needs to be set to include additional resources at all?

All help highly appreciated.
Mike

1 post - 1 participant

Read full topic

Reolink camera integration broken after Core 2024.7

$
0
0

There is a quite clear DeviceIdentifierCollisionError but I don’t know what to do about it. Camera is RLC-510A.

Thanks,
Veljko

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/reolink/__init__.py", line 154, in async_setup_entry
    migrate_entity_ids(hass, config_entry.entry_id, host)
  File "/usr/src/homeassistant/homeassistant/components/reolink/__init__.py", line 262, in migrate_entity_ids
    device_reg.async_update_device(device.id, new_identifiers=new_identifiers)
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 990, in async_update_device
    new_values["identifiers"] = self._validate_identifiers(
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1091, in _validate_identifiers raise DeviceIdentifierCollisionError(identifiers, existing_device)
homeassistant.helpers.device_registry.DeviceIdentifierCollisionError: Identifiers {('reolink', '952700057ZH91U6F')} already registered with DeviceEntry(... all of the attributes ...)

3 posts - 2 participants

Read full topic

403: Forbidden in Local

$
0
0

Someone help me, I can’t enter HA! Via the remote address I can access it but not locally.

I get a white screen and 403: Forbidden

Before this I had to restart the entire HA because the interface looked bad and then I couldn’t log in again through the local address!! Help!!

1 post - 1 participant

Read full topic

Vacation lights, ie replay from history

$
0
0

Hi,
So there has been many things written about replay from history sensor, however all of those are touching on using “ON” state, and nothing more. There is a lot of kung-fu with node red etc … But can somebody please explain how to for example use history sensor with basic automation script firing every minute (or other interval), to set light to given state, brightness and colour ?

A ready script would be nice, but I think we all would like to learn more about history_stats and how to use it for other things and documentation is not very helpful here.

2 posts - 2 participants

Read full topic

Sudden Centering of mushroom chip card

$
0
0

Hey,

I noticed that my dashboard suddenly became centered. But I didn’t change anything…

After various tests I found that it was probably the connection between the “power distribution card” and the “mushroom chips cards”?!?

The mushrooms are connected in a vertical and horizontal stack.

could anyone else tell?


type: horizontal-stack
cards:
  - type: vertical-stack
    cards:
      - show_name: true
        show_icon: true
        type: button
        tap_action:
          action: toggle
        entity: cover.dachflur_fenster
        icon: mdi:window-closed-variant
        icon_height: 40px
        name: Dachflur
        show_state: false
  - type: vertical-stack
    cards:
      - type: custom:mushroom-chips-card
        chips:
          - type: weather
            entity: weather.openweathermap
            show_temperature: true
            show_conditions: false
            card_mod:
              style: |
                ha-card {
                  padding: 0px !important;
                  border: none !important;
                  box-shadow: non !important;
                  font-size: 3.5rem !important;
                  background: transparent !important;
                } 
        alignment: center
      - type: custom:mushroom-chips-card
        chips:
          - type: template
            entity: switch.sandfilteranlage_sockel_1
            picture: |-
              {% if is_state(entity, 'on') %}
                /local/my_icons/IMG_4854.png
              {% else %}
              {% endif %}
            icon: |-
              {% if is_state(entity, 'off') %}
                mdi:pool
              {% else %}
              {% endif %}
          - type: template
            entity: climate.inverter_pool_warmepumpe
            icon: mdi:fan
            icon_color: |-
              {% if is_state('climate.inverter_pool_warmepumpe','heat') %} 
                orange
              {% else %} 
                white
              {% endif %}
        alignment: center
        card_mod:
          style:
            mushroom-template-chip:nth-child(2)$: |
              ha-state-icon {
                {{ 'animation: rotation 2s linear infinite;' if is_state('climate.inverter_pool_warmepumpe','heat') }}
              }
              @keyframes rotation {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
              }
  - type: vertical-stack
    cards:
      - type: custom:button-card
        entity: climate.klimaanlage
        name: Klima
        size: 40%
        icon: mdi:fan
        state:
          - value: cool
            styles:
              icon:
                - animation:
                    - rotating 2s linear infinite
        tap_action:
          action: call-service
          service: climate.set_hvac_mode
          target:
            entity_id: climate.klimaanlage
          data:
            hvac_mode: cool
        hold_action:
          action: more-info
        double_tap_action:
          action: call-service
          service: climate.set_hvac_mode
          target:
            entity_id: climate.klimaanlage
          data:
            hvac_mode: 'off'

1 post - 1 participant

Read full topic


Sensor Graph Not Working After Updates

$
0
0

So before the latest patch update, my graphs were squished and illegible. Now, they’re huge and still illegible. Anyone know what I can do to fix this? It’s a swipe card with a sensor graph.


May be an image of text

1 post - 1 participant

Read full topic

HA not completely starting anymore, please help! SOLVED!

$
0
0

Hello,

since the update to 2024.7.1, I faced the recorder bug, so I disabled the auto_purge as suggested yesterday.
HA worked for more than two years now, but now it’s over.
Some automations are working after starting very slow, but UI only sometimes and not completely.
All the time connection lost, reconnecting. Everything is extremely slow.

Running on VirtualBox 7.0.18 on a Windows Server.

Here’s a path to my log file on google drive: https://drive.google.com/file/d/1s8ZIaFiwyd7yEh3ebWy3r1swE4_ozWxV/view?usp=sharing

Please help!
I’ve searched all day, but no luck. I’ve tried to create a new HA VM and to restore a backup, since the original one didn’t start anymore. Thanks to OneDriveBackup, I have the last 10 daily backups on Onedrive.
I restored the file from the day before it died and before I added the auto_purge disabling…

2 posts - 1 participant

Read full topic

Template unknown

$
0
0

I have sensors defined in a templates.yaml file. I have used the same code for listing windows that are open and doors that are open. The sensor for windows works fine and yet the sensor for doors returns ‘unknown’ in the Developer Tools template window. Plus in Settings > Entities the name of the sensor does not display the correct unique id, name or icon.

I have renamed and changed the unique id of the sensors. But I have deleted the entities, purged them from the recorder, reloaded YAML configuration/template entities and restarted Home Assistant multiple times, plus deleted the code from the templates.yaml file and repeated all of the above.

The code is identical other than the sensor name, unique id, icon and a line to select the device class’, see below. Can anyone help with this?

#List Windows Open#
  - name: "List Windows Open"
    unique_id: list_windows_open
    icon: mdi:window-open
    state: >
      {%- set ns = namespace(sensors=[]) -%}
      {%- set ns.sensors = states.binary_sensor
        | selectattr('attributes.device_class', 'defined')
        | selectattr('attributes.device_class', '==', 'window')
        | selectattr('state', 'eq', 'on')
        | map(attribute='name') | list -%}
      {% if ns.sensors | count > 0 | int %}
        {{ ns.sensors | list | join('\n') }}
      {% else %}
        {{ 'All windows are shut or sensors are unavailable' }}
      {% endif %}

  #List Doors Open#
  - name: "List Doors Open"
    unique_id: list_doors_open
    icon: mdi:door-open 
    state: >
      {%- set ns = namespace(sensors=[]) -%}
      {%- set ns.sensors = states.binary_sensor
        | selectattr('attributes.device_class', 'defined')
        | selectattr('attributes.device_class', '==', 'door')
        | selectattr('state', 'eq', 'on')
        | map(attribute='name') | list -%}
      {% if ns.sensors | count > 0 | int %}
        {{ ns.sensors | list | join('\n') }}
      {% else %}
        {{ 'All doors are shut or sensors are unavailable' }}
      {% endif %}

2 posts - 2 participants

Read full topic

Creating an AC On / Off toggle that can be used in HomeKit dashboard

$
0
0

I have added my LG air condition, but there is no on / off toggle. When I click the thermostat in apple homekit it popups and I can select off or cool. I would like to create a On / Off switch or toggle that i can click from the Homekit dashboard and also use as a shortcut on my phone.

1 post - 1 participant

Read full topic

Template Sensor Graphs showing individual data, want 5 minute summaries. How?

$
0
0

Hi all,

I’ve been using HA for one year now and have finally found something I can not find the answer to online.

I’ve got a heap of template sensors in my HA doing a variety of things, but one thing that is annoying me is that when I click on them to view the 24-hour history, I can see all of the individual data.
What I want to see is the nice summary that comes along with a lot of devices.

Essentially, all of my template sensors look like the left of the below image, and I want to see if there is something I can add to the yaml, to make them to look like the right, where you can see the 5-minute min, mean, and max summarised on the 24-hour history graph.

Thanks for your help.

3 posts - 2 participants

Read full topic

Viewing all 106562 articles
Browse latest View live


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