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

Camera Skipping - Tapo C120

$
0
0

Greetings, recently I added a C120 camera to Home Assistant, and though the video displays it skips all over the place - stops, stutters multiple seconds forward, stops, stutters, etc.

I’ve tried adding it through the HACS integration, RTSP, and ONVIF - all with the same result. If I open the RTSP stream in VLC it plays smoothly, as it does in the Tapo app. I have two other two Tapo cameras (the C110 and C320WS) that play smoothly in home assistant, currently via ONVIF which has been my preferred method.

Reading around it seems like others have used the C120 without issue, aside from some rectified firmware issues around ONVIF that have been resolved. Does anyone have any ideas why the feeds from this one particular camera seem to be an issue in Home Assistant only?

Running Home Assistant 2023.8.2, Frontend 20230802.0, on a Synology by way of docker.

1 post - 1 participant

Read full topic


MQTT and JSON.. I know again

$
0
0

Hello, I have googled by bits off and tried many mqtt configs. I’m trying to get some data from a mqtt json event displayed in a graph.

the mqtt configs are in a separate file

The main config file def.

mqtt:
  sensor: !include_dir_merge_list configurations/mqtt

and the file in the above directory

 - name: "Particale Sensor: 10"
   state_topic: "home/pi25/particle_sensor/status"
   unit_of_measurement: ""
   unique_id: "mqtt_particled_10"
   value_template: "{{ value_json.10 }}"
 - name: "Particale Sensor: 2.5"
   state_topic: "home/pi25/particle_sensor/status"
   unit_of_measurement: ""
   unique_id: "mqtt_particled_2_5"
   value_template: "{{ value_json.2.5 }}"

No errors in the log file.

the proof of the data

The output, or lack of it :slight_smile:
image

FYI
The data is also going off to mqtt->telegraf->influx->grafana all ok.

2 posts - 2 participants

Read full topic

How to setup Unraid HA docker container to use mDNS (mediaplayers)

$
0
0

I do run HA as a docker container under Unraid.
That works fine.
Normally the HA docker is running as Host.
I like to change that to a custom network.
I did add port 8123 to the container and it is running fine.
Except the use of the mediaplayers. I use some google home minis for TTS.
So it would be nice to be able to use that again.
I did read some where that I need to expose mDNS at port 5353 UTP.
I do not know what that means and how to do.
If I try to add that port to the HA container, HA is not starting giving error that 5353 is already occupied.
I did search Google without any luck
So can somebody help me to use the mediaplayesr again at a custom HA network?
Thanks

1 post - 1 participant

Read full topic

Connecting Zigbee devices over the internet

$
0
0

I would appreciate this group‘s collective wisdom and experience to figure out how to best connect my remote Zigbee devices:

Objective: Connect some simple water leak Zigbee sensors at my remote parents’ house with my local HA.

Problem: After extensive research, I’ve found various potential solutions, but each with a different flaw

Identified Options:

  1. Tasmota Zigbee hub at parents house + cloud MQTT broker: Suboptimal, as I already have my local broker and don’t want to send all local MQTT traffic over the cloud

  2. Second HA instance at parents house with client/host relationship to my HA instance: Seems like an overkill to have a second HA instance just for a few water leak sensors

  3. Tuya Zigbee hub at parents house + Tuya Cloud Integration on my HA: Tested and didn’t run very stable (status not updated reliably)

  4. Aqara Hub at my parents house + Aqara Cloud integration: Dependent on third party cloud, not sure how reliable

  5. VPN tunnel to my parents house: Requires permanent VPN connection and additional hardware, which seems like an overkill again

  6. Direct MQTT connection from my parents house to my local broker: From what I understood, not great from security perspective

  7. Anything else?

Thanks in advance for any advice you can share! How have you accomplished something similar?

3 posts - 2 participants

Read full topic

Media Player on Sonos stopped working

$
0
0

Hi Community,

I’ve stumbled on an issue that just can’t simply figure out. Running the latest version of HA, but recently encountered an issue with my Sonos speakers can’t play TTS alerts & local files. Looking into it, I discovered the Media Player no longer wants to play local files on any of my Sonos speakers, but plays them fine in the browser. I’ve tried playing with the developer tools to service call any media to be played on Sonos, and only streaming media i.e. Spotify is playing on my Sonos speakers.

Nothing is sticking out in the logs about potential issues, and I am able to play media files / run TTS locally in the browser without any issues.

Any ideas?

1 post - 1 participant

Read full topic

How to turn light automation off via Alexa without NabuCasa

$
0
0

What I am trying to accomplish. I have a PIR by the door of my bedroom, and an mmWave sensor on the light fixture. I want to be able to turn the lights on and off automagically after sunset, until sunrise.

The goal is for me to be able to leave the room, and have lights go off right away, then when I return to the room lights go back on, up until I want to go to sleep or watch tv. My go to is Alexa, “turn off the light”.

Alexa does turn off the light, but the automation will turn lights back on shortly after when it detects presence in the room.

I have to add something to my automation to check if lights were turned off by automation, then turn them back on when presence detected, but if lights were turned off “manually” via Alexa, HA app, etc., then lights should remain off even if movement and presence detected.

I set up a boolean input, and my automation turns input to “on” when it turns the light off. I also set an automation to run at 8am to set the boolean back to “on”. What I can’t seem to figure out is how to set the boolean to “off” when I manually turn the lights off.

1 post - 1 participant

Read full topic

Wireguard , no output on log page

$
0
0

in my current version of home assistant 2024.6.3 and supervisor 2024.06.0, i have installed wire guard with the basic config, but when i start Wire guard , don’t see anything on the log page, even tried setting the logging to debug, but nothing shows up and the vpn does not connect. tcpdump on the router shows connection coming in , so is there anything i am missing here ?
the basic config is

host: xxxxxx.xxxx.org
addresses:

  • 172.27.66.1
    dns:

  • name: user
    addresses:

    • 172.27.66.2
      llowed_ips:
      client_allowed_ips:

1 post - 1 participant

Read full topic

Monitor log file of add-on for specific error message

$
0
0

I want to monitor the log-file of the tesla proxy add-on for specific error messages and report a message to my phone when this happens (for this topic, let’s ignore the part on sending a message).

What I’ve done so far:

  • i’ve found the way to browse the logs of add-ons by using :
    ha host logs --identifier addon_tesla_http_proxy
    (mind I’ve left out the full name of the identifier, don’t know if there’s security info there)
  • when grepping on this I get the error messages I’m looking for:
    ha host logs --identifier addon_tesla_http_proxy | grep 'Too Many Requests

I’ve tested this in a terminal using the 'advanced SSH & Web terminaladd-on and that works fine, without any errors (checked withecho$?` )

Now I think the way to get this integrated into HA is to use a command-line sensor

The YAML I use in the config file for that:

command_line:
  - sensor:
      name: Tesla_Proxy_Log_API_limit_Error_Monitor
      unique_id: tesla_proxy_api_limit_error
      command: '/usr/bin/ha host logs --identifier addon_tesla_http_proxy | grep ''Too Many Requests'''
      scan_interval: 60
      value_template: >
        {% if value == '' %}
          No Error
        {% else %}
          Error
        {% endif %}

This is the part where I need help… When executing this the HA log reports
Command failed (with return code 1): /usr/bin/ha host logs --identifier addon_tesla_http_proxy | grep 'Too Many Requests'

To debug this I’ve tried to replace ‘No Error’ with {{ value }} to get the actual output of the command, this results in ‘unkown’ as sensor value.

I hope someone has build something similar or can get me a hint on how to proceed debugging/fixing this

1 post - 1 participant

Read full topic


Is there any way to configure Mushroom-chip to be able to trigger Bubble popup?

$
0
0

Hi all,

I’m trying to figure out a way for a mushroom chip to trigger a bubble popup?
Have you managed to do that, anyone?

my code is:

custom_fields:
  shop:
    card:
      type: custom:mushroom-chips-card
      chips:
        - type: template
          icon: mdi:cart
          icon_color: black
          opacity: null
          double_tap_action:
            action: navigate
            navigation_path: '#shop'
          card_mod:
            style: |
              ha-card {
                --chip-icon-size: 21px;
                --chip-height: 25px;
                width: var(--chip-height) !important;
                justify-content: center;
                
                --chip-background: rgb(206, 227, 201, 0.8);
                border: none;
                --border-style: none;
                --box-shadow: none;


              }

Neither “double_tap_action” or “tap_action” work…

Thanks for any tips…

1 post - 1 participant

Read full topic

Dashboard Loads Empty Until Raw Configuration Editor Entered

$
0
0

Hi All,

I’m facing a problem that is basically making HA unusable for me. So far, no one has been able to answer on discord so coming here.

Problem: My dashboard won’t load at all unless I go into “raw configuration editor” and then exit (no changes necessary, no saving). Once I do this, my dash loads fine, until I leave it and go back, at which point it fails again.

What I’ve Tried: I’ve gutted my dashboard down to almost nothing trying to diagnose and yet it persists. The entire configuration is being made in raw configuration editor. I’ve removed everything other than a single slider and yet, it continues.

My Code Now:

views:
  - theme: noctis
    icon: ''
    path: default_view
    title: HOME
    visible:
      - user: 12345678901234567000
    type: sidebar
    badges: []
    cards:
      - type: custom:slider-button-card
        entity: light.white_living_room
        slider:
          direction: left-right
          background: gradient
          use_state_color: true
          use_percentage_bg_opacity: true
          show_track: false
          toggle_on_click: false
          force_square: false
        show_name: true
        show_state: false
        compact: true
        icon:
          show: true
          use_state_color: false
          icon: mdi:fridge
          tap_action:
            action: navigate
            navigation_path: /lovelace/cuisine
          action_button:
            mode: custom
            icon: mdi:chevron-right
            show_spinner: false
            tap_action:
              action: navigate
              navigation_path: /lovelace/cuisine

Video Demonstrating Issue: XRecorder_17062024_125943.mp4 - Google Drive

1 post - 1 participant

Read full topic

Fetch MAC address from OpenWRT sensor attributes

$
0
0

I have setup openwrt via luci/ubus integration. It gives me entities for 2.4Ghz and 5Ghz Wifi radio for each of my AP’s.
Each of those entities have attributes with “MAC SIGNAL”.
I wanna

  1. get those attributes,
  2. match the MAC addresses to specific names of the devices
  3. list them in a list format with their individual signal strength. (maybe custom auto entities)

I have successfully used this to get the attributes

  - type: custom:auto-entities
    filter:
      template: |-
        {% set SENSOR = 'sensor.router_wireless_phy1_ap1_clients' -%}
        {%- for attr in states[SENSOR].attributes|select('search',':') -%}
          {{
            {
              'type': 'attribute',
              'entity': SENSOR,
              'attribute': attr,
              'name': attr
            }
          }},
        {%- endfor %}
    card:
      type: entities

But now i wanna match the mac address and replace it with device names.
Does anyone has an idea?

1 post - 1 participant

Read full topic

Roborock S7 Max Ultra Issues

$
0
0

I am having issues using the vacuum command with my roborock vacuum. I’m trying to create a setup where the vacuum, and the vacuum alone, runs twice before moving on to mop the tile.

service: vacuum.send_command
data:
  command: app_segment_clean
  params: 
    - 103 #Turbo Mode Vacuum
    - 200 #Mop disbaled
    - segments:
        - 16 #Room 1
        - 17 #Room 2
        - 19 #Room 3
      repeat: 2
target:
  entity_id: vacuum.s7_max_ultra

So far the command hasn’t worked. What do i need to do to fix it?

1 post - 1 participant

Read full topic

Unable to add Roomba integration. Fails to connect

$
0
0

I had my Roomba 960 working in HA as of a few weeks ago, but then it stopped connecting, so I decided to delete it and try starting fresh and now I can’t even get it configured!

I follow all the steps described, even retrieving my password using dorita980. But when I paste the password into the field, it thinks for a while and says “Failed to connect”

Any help with how to get it to take would be appreciated!

2 posts - 2 participants

Read full topic

Is there a way to get a list of entities exposed to the voice assistant

Turning automations off when manually turning light off, better solution?

$
0
0

So I’ve been trying to come up with a solution to stop auto lights when they are turned off manually (touch button on wall or via Alexa).

Most of the solutions seemed to get somewhat complicated playing with context, status.id, etc. I came up with a solution using two boolean helpers.

My 1st boolean helper is “autoOff” (automation turned the light off). My 2nd boolean helper is “AutomationRan” (an automation to turn off light ran).

First automation runs everyday at 8am. It turns “autoOff” to “on” (at some point the night before we would have manually turned light off, so “autoOff” would remain off unless something turns it back on)

I then have two automations to turn on lights. One is for the PIR by the door, and the other for the mmWave sensor on the ceiling. In order for these automations to run “autoOff” has to be “on”

I have one automation to turn off the lights. When there is no motion/presence, it first sets “automationran” to “on”. It then turns the light off, and finally sets “autoOff” to “on”.

I then have a final automation. This one runs EACH time the light state changes to “off”. It checks status of “automationran”. If automation ran is “on”, it just turns automationran to “off”. if “automationran” is “off”, it changes “autooff” to “off”.

Could some of you with much more knowledge and experience let me know what are the pros and cons of my solution? It seems so simple that someone else should have figured it out before me, but didn’t really see anyone else come up with this approach.

1 post - 1 participant

Read full topic


2nd Nest thermostat gets "something went wrong"

$
0
0

I added my first Nest thermostat via the matter QR code on the Nest Screen. I can control the temp and successfully added working automations.

Upon adding the second Nest Thermostat, i perform the same process Nest Display–>Settings–> matter
HA–>devices & Settings–> devices–>add devices–>add matter–>No its new–>Scan code.

I get to the “generating matter credentials” and then “something went wrong” screen.

I have it set up via google home. Updated the firmware. Nest screen has 1 linked matter account, which I assume is google home. But HA doesn’t base the second nest device.

Advice?

1 post - 1 participant

Read full topic

Restriction-card

$
0
0

I recently installed the custom:restriction-card, but I can’t configure it. I want it to ask me for a pin to turn a light on or off.

Sin título-1

In the image it is locked but I don’t know where or how to put the code so that it asks me for the password (pin)

The Code is

type: custom:hui-entities-card
restrictions:
confirm:
exemptions: null
pin:
code: 1919
entities:

  • card:
    entity: light.luz_rincon
    restrictions:
    block: true
    type: custom:restriction-card
    row: true
  • entity: light.wiz_rgbw_tunable_ea5938

thanks in advance!

3 posts - 2 participants

Read full topic

Help deleting camera entity

$
0
0

Good evening,
hope someone can help me with this…

I’m trying to delete a camera entity “camera.mobotix_2” but can’t find a way to do it.

If I press the gearwheel on the entity I get “This entity (‘camera.mobotix_2’) does not have a unique ID” and pressing the three dots “Related” but no “Delete” button.

With the selection mode I should be able to delete it but I can’t select it because it is greyed out.

Strange think is that I don’t have the “Camera” integration, so nothing to do on the integration section.

I also tried to search for the entity on the
“config/.storage/core.device_registry”
and
“/config/.storage/core.entity_registry”
and
“/config/.storage/core.config_entries”
files but I can’t find the entity there.

Any ideas?

2 posts - 1 participant

Read full topic

Dashboard on tablet & RPi w/ touchscreen: fits OK and yet scrollable -> why?

$
0
0

I’m using 2 similar dashboards on a tablet and a RPi with 7" touchscreen.
On the tablet with the companion app, I have the Android topbar (time, battery load) permanently visible.
The dashboard fits the screen, even with blank space but the dashboard can be moved vertically.
No scrollbars are shown.

On the RPi with raspbian and chromium, there is a scrollbar, the dashboard fits here as well

Is this something that can be fixed/changed so there is no scrollbar and the dashboard is fixated?

2 posts - 2 participants

Read full topic

Entity IDs for autoconfigured sensors

$
0
0

I am using scripts to create some MQTT sensors via autoconfiguration. For example (one of several sensors for the garage thermometer device):

alias: Set up garage thermometer
sequence:
  - service: mqtt.publish
    data:
      topic: homeassistant/sensor/garage_thermometer/temperature/config
      retain: true
      payload: |
        {
          "name": "Garage Thermometer Temperature",
          "state_topic": "rtl_433/freyr/devices/Ecowitt-WH53/3/219/temperature_C",
          "unique_id": "garage_thermometer_temperature",
          "device_class": "temperature",
          "state_class": "measurement",
          "unit_of_measurement": "°C",
          "value_template": {% raw %}"{{ value | float | round(1) }}"{% endraw %},
          "device": {
             "name": "Garage Thermometer",
             "model": "WH53",
             "manufacturer": "Ecowitt",
             "identifiers": ["Ecowitt-WH53-219"],
             "via_device": "rtl_433"
          }
        }

This works fine, except for one thing: the resulting entity ID is “garage_thermometer_garage_thermometer_temperature”, while I was expecting it to be the same as the unique_id.

What do I need to change to get the outcome I was expecting? Can someone explain (or point to an explanation) of how the entity_id is determined.

4 posts - 2 participants

Read full topic

Viewing all 105530 articles
Browse latest View live


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