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

Dashboard Reloading on Tablet Wake (Galaxy A9+)

$
0
0

Hi everyone,

I recently upgraded my main dashboard tablet from a Galaxy A6 (2016) to a Galaxy A9+. Everything works much better now, except for one annoying issue. Every time I unlock the tablet, the Home Assistant main page gets rebuilt. I can clearly see all the cards resizing and reorganizing, even though they should already be in their correct positions.

I have disabled all power-saving settings, background restrictions, and app optimizations, but the issue persists. I also tried using Fully Kiosk Browser, but it’s not the ideal solution for me. Even with a completely black screensaver, the tablet’s backlight stays on, leading to high battery consumption. I also tried setting Fully Kiosk to turn off the screen during specific hours, but it randomly wakes up, again causing excessive battery drain—requiring at least one full charge every 12 hours.

I also tried clearing the app cache, and after doing so, everything works fine for a couple of days, but then the problem comes back.

Is there any way to keep apps always open on this type of tablet or trick the device into not going into sleep mode? Maybe by sending periodic commands from an assistant?

Any suggestions would be greatly appreciated!

Thanks!

1 post - 1 participant

Read full topic


Input_text acting as a float problem

$
0
0

This might be a bug I think… I’m trying to make a keypad with numbers 0-9 and a decimal. This is working fine until I use the decimal. If I enter 1 and then press the decimal, I get 1.0 so impossible to enter 1.5 as the system added the 0 by itself. I’m sure it is some sort of internal decision to automatically convert it to a number (some sort of AI ). It is strange to do that with an entity called INPUT_TEXT.

I use custom buttons. like this:

type: custom:button-card
color_type: icon
entity: input_text.keypad_input
aspect_ratio: 1/1
show_label: true
show_name: false
show_icon: false
show_state: false
tap_action:
  action: call-service
  service: script.keypad_input_2
  service_data:
    number: "7"
size: 80%
name: ""
label: "7"
styles:
  card:
    - border-radius: 10%
    - padding: 10%
    - font-size: 80px
    - text-shadow: 0px 0px 5px black
  name:
    - font-size: 40px
    - text-transform: uppercase
    - letter-spacing: 0.5em
    - font-familly: cursive
    - padding: 0px 5px

The “Service_data Number” is set to the digit I want. Same thing for the decimal place. The script.keypad_input_2 is as follow:

data_template:
  entity_id: input_text.keypad_input
  value: |
    {% set current_value = states('input_text.keypad_input') %}
    {% if current_value != 'None' and current_value != 'unknown' %}
      {{ current_value ~ number | string }}
    {% else %}
      {{ number | string }}
    {% endif %}
action: input_text.set_value

if I press 1, I get 1
then I press . I get 1.0
but if I press again ., I get 1.0.
I clear
I press . I get .
I press 2 I get 0.2

It means that I the text entered is valid number, it format it as a number. So if I put a letter at the beginning, then it stays as a text.

Anyone has a solution to bypass this bug?

3 posts - 3 participants

Read full topic

Integrate Samsung TV LED55 (UE55H6850)

$
0
0

Hello,
I don’t know if this is the right place for my query.
I’m new to Home Assistant, so it’s possible that it’s simple clumsiness.
I am integrating this TV that is somewhat old, and it appears automatically for integration, but it is asking me for a PIN number that I do not know where to get it, nor does it appear on the TV screen itself.
What do I have to do to integrate it with HA?

1 post - 1 participant

Read full topic

Changing logic to text, Jinja

$
0
0

What am i doing wrong or don’t understand ?

I have a template in jinja who’s giving the wanted result in the editor but I cannot find how to implement in the lovelace screen.
The file is named niveau.ninja and placed in custom_templates.
Looks to me it’s doing nothing, I tried to put the template in the config file but that gives me a lot of errors, so help wanted to understand why or what to do.
I prefer jinja, that’s more clear.

  - sensors:
      niveau_piscine:
        friendly_name: "Niveau"
        unit_of_measurement: "State"
        entity_id: sensor.niveau_piscine
        value_template: >-
          {% set mapper =  {
            '4095' : 'bon',
            '0' : 'à remplir' } %}
          {% set state =  states.sensor.niveau_piscine.state %}
          {{ mapper[state] if state in mapper else 'inconnu' }}

Tks in advance, regards Robert.

2 posts - 2 participants

Read full topic

Sonoff Zigbee 3.0 USB Dongle Errno 2

$
0
0

I did a cold reboot of Home Assistant this morning and the Sonoff Zigbee 3.0 USB Dongle is no longer connecting (didn’t change any configurations, just rebooted network, routers and HA).

Error is:

Failed setup, will retry: [Errno 2] No such file or directory: ‘/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_c8b7e548470dec119936d5cebd930c07-if00-port0’

I have the dongle attached via Ethernet Cable (USB to Ethernet) I’ve checked all cables and everything is fine.

I installed all pending updates to HA and rebooted, still nothing.

Any troubleshooting ideas?

2 posts - 1 participant

Read full topic

Need help changing button/tile card animations and toggles

$
0
0

Hi all,
I’m trying to play around with a couple of button or tile cards and how they behave:

On the left is my button card to control my office blinds. It currently shows the default features which show open, stop, close on the first row and the percentage slider on the 2nd row. I can’t seem to get the first row buttons to work but the slider works fine. My intention here is to change the function of tapping the icon (or the button altogether) so that it toggles between 0% and 100% open state and changes the icon/color respectively, kind of like a light switch. Any suggestions on how to achieve that would be greatly appreciated!
For context on the above, I’m using this AVATTO Wifi Smart Roller Blind Motor which was imported into HA via the Tuya Integration.

On the right of the screenshot is a button card that controls a Zigbee Fingerbot that was added to HA via Zigbee2MQTT.
Currently the button works as a toggle to click (more like press and hold) my Desktop PC power button and release it after 1 sec. (Explicitly not using Wake On LAN for offline use cases)
My issue here is that the animation of the tap lights up the icon as “Powered On” and when you tap it again it “Powers off” but technically what it’s doing is triggering the finger bot again to click the power button.
I don’t expect to find a way for the button to know if my computer is actually powered on or not, so instead my intention here is to see if there is a way to change the animation to “light up” as the button is being pressed and quickly fade away/return to default after the button was pressed.

As usual, thanks in advance for all the brilliant and friendly folks out there willing to help a fellow HA enthusiast without as much technical knowledge (but hope to get there some day)!

1 post - 1 participant

Read full topic

Help with CLIMATE

$
0
0

Hi
I use TADO and managed to get the deprecated homebridge addon installed so I am controlling it using homebridge locally.
I am able to turn on rooms or the hot water with climate.set_temperature to specify a temperature and HVAC mode (heat), but this does it permananetly - I just want to be able to press a button that heats my room (climate.masterbedroom) for 20 mins only at 25C - but this doesnt seem possible.

Is the work-around to make an automation ‘when climate.masterbedroom’ set to HVAC -heat for 20 mins - then climate.set_temperateure to 10C and HVAC - off (or do I select auto here?)

1 post - 1 participant

Read full topic

How to hide state in Mushroom Chip Cards?

$
0
0

Hi all,
I’m trying to add buttons to control my speakers and am trying to figure out how to remove the State of the Entity that is shown as text by default.

Here’s a screenshot of the situation and the code block for it below:

type: custom:mushroom-chips-card
chips:
  - type: entity
    entity: scene.speaker_vol_down
    show_state: false
    tap_action:
      action: toggle
    icon: mdi:volume-minus

Normally for other button or tile cards the show_state: false should work, but can’t seem to get it to disappear here.

Context: this entity is a scene imported from Smart Life to control an IR remote blaster for the corresponding button on my speaker’s remote.

1 post - 1 participant

Read full topic


1 dashboard or more?

$
0
0

Is there any disadvantage sharing one dashboard between several device when it comes to performance?

Should I use separate dashboard for each device or share one dashboard between similar devices?

Just trying to see what is recommended and what makes things run smoother.

2 posts - 2 participants

Read full topic

How to play Jellyfin movies on Nvidia Shield via Home Assistant Voice?

$
0
0

I recently bought Home Assistant Voice Preview Edition, I installed Home Assistant and configured Jellyfin and Android Tv Remote (Nvidia Shield Pro) integrations.

I can use voice commands to turn on/off Shield.

I would like to use voice commands to :

  1. open Jellyfin app on Shield
  2. play a movie of choice by name

Is it doable these days ?

1 post - 1 participant

Read full topic

Creating template sensors - yaml problems - i don´t get it

$
0
0

syntax check is ok, but after restarting home assistant i get some errors:

Logger: homeassistant.config
Quelle: config.py:357
Erstmals aufgetreten: 18:47:26 (2 Vorkommnisse)
Zuletzt protokolliert: 18:47:26

  • Invalid config for ‘template’ at configuration.yaml, line 41: ‘friendly_name’ is an invalid option for ‘template’, check: sensor->0->friendly_name
  • Invalid config for ‘template’ at configuration.yaml, line 79: ‘platform’ is an invalid option for ‘template’, check: sensor->0->platform Invalid config for ‘template’ at configuration.yaml, line 79: required key ‘state’ not provided Invalid config for ‘template’ at configuration.yaml, line 80: ‘sensors’ is an invalid option for ‘template’, check: sensor->0->sensors

also i tried to separate the sensors in different yaml files with the help of gemini and perplexity ai - but nothing works as expected. any help would be great.


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

#logger:
#  logs:
#    homeassistant.components.modbus: debug
#    pymodbus.client: debug

powercalc:


group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

homeassistant:
    customize: !include customize.yaml


waste_collection_schedule:
  sources:
    - name: jumomind_de
      args:
        service_id: ben
        city: XXXXXXX
        street: XXXXXX-Straße, Ringe # Housenumber is part of street so it is not in house_number


#template: !include template.yaml
#platform: !include rest.yaml

template:
  - sensor:
    - name: "Temperatur Küche"
      friendly_name: "Temperatur Küche"
      state: "{{ state_attr('climate.wandthermostat_kuche_2', 'current_temperature') }}"
    - name: "Summe PV Leistung"
      friendly_name: "Summe PV Leistung"
      unit_of_measurement: "W"
      device_class: "power"
      state_class: "measurement"
      state: >
        {% set sensors = [
          'sensor.myenergi_harvi_1781962_power_ct_generation',
          'sensor.hoymiles_25kwp_power'
        ] %}
        {{ sensors | map('states') | map('float', 0) | sum }}
    - name: "IONiQ6 Gefahrene Kilometer"
      friendly_name: "IONiQ6 Gefahrene Kilometer"
      unit_of_measurement: "km"
      state: >-
        {% set start_km = states('input_number.ioniq6_km_stand_beim_kauf') | int %}
        {% set aktuell_km = states('sensor.ioniq6_odometer') | int %}
        {{ aktuell_km - start_km }}
    - name: "IONiQ6 Durchschnittsverbrauch"
      friendly_name: "IONiQ6 Durchschnittsverbrauch"
      unit_of_measurement: "kWh/100km"
      state: >-
        {% set gefahrene_km = states('sensor.ioniq6_gefahrene_km') | float %}
        {% set gesamt_verbrauch = states('sensor.ioniq6_total_energy_consumption') | float %}
        {% if gefahrene_km > 0 %}
          {{ '{:.2f}'.format((gesamt_verbrauch / gefahrene_km) * 100) }}
        {% else %}
          0.00
        {% endif %}
    - name: "aktueller IONiQ6 Durchschnittsverbrauch"
      friendly_name: "aktueller IONiQ6 Durchschnittsverbrauch"
      unit_of_measurement: "kWh/100km"
      state: >-
        {% set average_consumption = states('sensor.ioniq6_average_energy_consumption') | float %}
        {{ '{:.2f}'.format((average_consumption / 1000) * 100) }}
  - sensor:
    - platform: rest
      sensors:
        - name: Feinstaubsensor PM10
          unit_of_measurement: "µg/m³"
          value_template: '{{ value_json["sensordatavalues"][0]["value"] }}'
          resource: 'http://10.10.5.110/data.json'
        - name: Feinstaubsensor PM25
          unit_of_measurement: "µg/m³"
          value_template: '{{ value_json["sensordatavalues"][1]["value"] }}'
          resource: 'http://10.10.5.110/data.json'
        - name: Feinstaubsensor Humid
          unit_of_measurement: "%"
          value_template: '{{ value_json["sensordatavalues"][3]["value"] }}'
          resource: 'http://10.10.5.110/data.json'

2 posts - 2 participants

Read full topic

Window Icons Opened/Closed

$
0
0

Hi there,

I would like to use the mdi:window-closed/open-variant instead of the mdi:window-open/closed icons. I changed the Icon in the frontend, but now it only shows the closed icon.

1 post - 1 participant

Read full topic

VM Configuration Suggestions/Requirements

$
0
0

I’m wondering if anyone else has suggestions and/or metrics around the configuration (CPU & Memory) of the VM they use to host HAOS?
The most taxing tasks I run seem to be Frigate (with CPU based detection) and periodic ESPHome compiles. The compiles are where I can run into issues.
As a benchmark, I’m using the ESPHome compile of wake-work-voice-assistant for an ESP32-S3-Box, after a full restart & clean build files. This is on a Ryzen 5800X host using Hyper-V. Results:
2 CPU, 4 GB, Frigate stopped - 658 seconds
2 CPU, 4 GB, Frigate running - 1272 seconds
3 CPU, 4 GB, Frigate stopped - 388 seconds
3 CPU, 4 GB, Frigate running - failed, Out-of-memory
6 CPU, 6 GB, Frigate stopped - 234 seconds
6 CPU, 6 GB, Frigate running - 301 seconds
Time roughly linear with available (not in use by Frigate) CPU count - CPU usage is pegged at 100% during compile.
Each extra CPU needs roughly 1GB extra memory.
Are other seeing similar (or conflicting!) numbers?

1 post - 1 participant

Read full topic

HACS - Solaredge optimizers setup error

$
0
0

I downloaded the HACS integration for the SolarEdge optimizers info from the SolarEdge portal. Then open the Custom Repositories option and pasted the link (GitHub - ProudElm/solaredgeoptimizers: Intergration to get optimizers information from the SolarEdge portal) selected Integration from the list and clicked on Add.
Now I get the error “Repository ‘proudelm/solaredgeoptimizers’ exists in the store.” and have no idea how to continue. What does the error mean and how do I proceed from here?

1 post - 1 participant

Read full topic

RESTful GET request not sending parameters correctly. How to debug?

$
0
0

Hi,

i try to get todoist running. Which it does actually.
But i created a couple of projects in todoist to manage my family.

Now, the todoist (powertodoist) documentation is about creating a template sensor using rest, another sensor using/parsing a curl response to retrieve tha labels, and a rest_command for updating.

That’s a okay, i guess.

Yet, i would have to duplicate the rest-sensor for every project i created in todoist.

While getting deeper into it, i learned, you could as well create a restful sensor type querying all projects at once (and labels included).

  - resource: 'https://api.todoist.com/sync/v9/sync'
    method: GET
    headers:
      Authorization: !secret todoist_api_token
    params:
      sync_token: '*'
      resource_types: '["projects","items","sections","labels"]'
    scan_interval: 10
    sensor:
      - name: label_colors
        unique_id: label_colors
        value_template: >
          {{ value_json['labels'] | length }}
        json_attributes:
          - labels
      - name: todoist_projects
        unique_id: todoist_projects
        json_attributes:
          - projects
      - name: todoist_items
        unique_id: todoist_items
        json_attributes:
          - items
      - name: todoist_sections
        unique_id: todoist_sections
        json_attributes:
          - sections

(I’ll sort details later)

however, while the REST request works fine when testing with postman,
it fails to execute in HomeAssistant.

Error returned is:

Data fetched from resource: {"error":"Invalid argument value","error_code":20,"error_extra":{"argument":"resource_types","event_id":"549d4ac7589a4774b39c6dc60803b2ca","expected":"Value error, Expecting value: line 1 column 1 (char 0)","retry_after":1280},"error_tag":"INVALID_ARGUMENT_VALUE","http_code":400}

I can’t figured out what’s wrong, since Home Assistant would not write the request into the logs, only rest responses (I wasn’t able to find out how to log posted requests)

I can only recreate the error with postman, when i’m editing the line “resource_types” like removing quotes etc.

I don’t know what Home Assinstant is doing with this parameter. Do i need to escape some characters or else?

best regards
Maik

1 post - 1 participant

Read full topic


Shelly Plus1 Entities Unavailable

$
0
0

Been using haas for a while, but still have a lot to learn. For instance, yesterday I added a Shelly Plus1 switch, with an Add-On connected to a couple of temperature sensors. When I first set it up, there was no problem: I created a card from the entities I wanted to control or watch, and all seemed to work.

Five minutes later, the card had banners for both sensors declaring “Entity not available” followed by the name of the sensor entity. When I look at the Entities page in Settings, one of those senors no longer appears, and clicking on the one that does displays a banner saying “This entity is unavailable”.

The switch and its sensors have no problem at all in the Shelly app, or by opening its IP address. Switch and sensors all work fine. It’s at the latest firmware update. But the card still says the sensors are unavailable.

I’m at something of a loss, and any help will be appreciated.

1 post - 1 participant

Read full topic

How do I control 4 radiators with 1 temp sensor?

$
0
0

Im returning our existing radiator valves (Tado X) as I want something I can run directly in Home Assistant using Zigbee without any cloud, crippled features, subscriptions etc.

In our livingroom, we have 4 radiators (with Tado X TRVs) and 1 wireless temperature sensor that regulates the 4 radiators individually so they end up giving the room the target temp I want. I’ve noticed that all 4 radiators are adjusted individually by Tado’s algorithm.

How do I do the same in Home Assistant with, say, Sonoff or Aqara TRVs and a temperature sensor?

2 posts - 2 participants

Read full topic

2-way audio with POE Reolink Doorbell

$
0
0

Hello everyone

I apologize, I know this topic has already been discussed several times.

I use the D340 POE doorbell from Reolink. I was able to successfully integrate with the Reolink and the Onvif integration in to HA. Unfortunately it does not work with the 2 way audio.

My configuration.yml:

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder

My go2rtc.yml:

streams:
  camera.reolink_doorbell_1:
  - rtsp://USER:PW@192.168.9.11/Preview_01_main
  - ffmpeg:192.168.9.11#audio=opus#audio=copy

My lovelace card:

type: custom:webrtc-camera
streams:
  - entity: camera.reolink_doorbell_1_profile000_mainstream
    mode: webrtc
    media: audio,video,microphone

I use NGINX as a reverse proxy and there I forward https://homeassistant.MY-DOMAIN to http://IP:8123.

It is strange that the option “video+audio+microphone” is not active under WebRTC Magic.

I am also a bit confused, the first stream comes from the go2rtc configuration and the second from the lovelace card.

I tested it on my notebook (Chrome and Edge browser) and also on my Google Pixel with the HA app. I can hear what someone says through the camera. But unfortunately my answer doesn’t come back.

Can anyone tell me what I am doing wrong?

Thanks and best regards
Buhli

1 post - 1 participant

Read full topic

Customizing Lovelace Dashboard per User – Is It Possible?

$
0
0

Hey everyone,

I’ve been tinkering with my Home Assistant setup and trying to figure out if there’s a way to customize the Lovelace dashboard for different users. Ideally, I want to show different views or cards based on who’s logged in. For example:

  • Show some advanced controls only when I’m logged in
  • Display a simplified view for my parents when they access the dashboard
  • Maybe even hide certain devices entirely from some users

I’ve looked into user-based dashboards a bit but still not fully sure if this is possible natively or if I need to use some workarounds (like custom cards or YAML tricks). I’m currently using mostly the UI editor but I don’t mind diving into YAML if needed.

Has anyone done something similar?
Would love to hear how others are managing user-specific UI or if there’s a best practice for this kind of setup.

Thanks in advance!

1 post - 1 participant

Read full topic

Opower APS broken

$
0
0

So I am relatively new to HA and have some experience with home automation for a bit now.

I’ve started to get some energy stuff together and I was using opower to import my grid usage from Arizona Public Services into the system but for the past couple months now it has continually given me the “setup failed; will retry. check the logs” message on the services page.

I can’t seem to find said logs nor can I find a place to reenter the login to the opower setup and get it going again. The password hasn’t been changed and I cant find the place to update it even if it was. It seems that after Feb 21st it just stopped, not sure if that means anything.

Are others getting this message?

Has anyone else been able to fix this message before?

1 post - 1 participant

Read full topic

Viewing all 109599 articles
Browse latest View live


Latest Images

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