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

HomeWizard Device unreachable

$
0
0

Hi

I have Homewizard P1 and water meter and those are discovered by HA but not able to configure. Error is shown as
Device unreachable, make sure that you have entered the correct IP address and that the device is available in your network

Few addtional information -
Local API is enabled for all devices

  • Core - 2024.2.3
  • Supervisor - 2024.02.0
  • Operating System - 11.5
  • Frontend - 20240207.1

Also, both devices are on same network. I am able to run API from other tools like postman. I got the success ping from HA terminal too on devices IP

Please sugget

2 posts - 2 participants

Read full topic


Soft on/off toggles for lighting

$
0
0

Is there any way to set a transition for all lights, and have it work with on off toggles?

I’m using an entities card to control light switches. I figured out how to make it so if I hold in the main area of a switch it will activate a automation which performs a transition, however it would be nice if you could also hit the toggle switch on the right. Also I’m trying to figure out how to scale this without creating an automation for each switch. I have a feeling that there may be a way to use templates, but I haven’t become competent yet.

Does anyone have a solution for always applying a transition of say 1 second to turn on or off a light?

I’d like to be able to hit the toggle on the right, and have the light transition on or off.

3 posts - 2 participants

Read full topic

Merge 2 Thread Networks (Google Nest and Silicon Labs Multiprotocol)

$
0
0

Hello everyone,

I am completely new to this Thread/Matter protocols. I have SONOFF Zigbee 3.0 USB Dongle-E flashed with darkxst build firmware “MultiPAN RCP”.

HA got successfully configured both my zigbee network and the thread network both working on channel 25. Now when I see the Thread networks, I see my preferred network and also network from Google Nest. I wish to add the nest hubs to my HA network at channel 25 (The nest network is on channel 17).

Can anyone please help me out on how to do it? Thanks

1 post - 1 participant

Read full topic

Forecasted dew point alert based on NWS weather integration

$
0
0

I’m stuck!

I have been attempting to create something to parse through my National Weather Service weather integration (weather.kdsm_hourly) for a future forecasted dew point temperature that exceeds a defined threshold. Then if that threshold is forecasted to exceed the defined value to provide a notification with forecasted date and time.

I’ve tried a script without success. I’ve tried an automation without success. I’ve tried to created a sensor without success. I’ve searched for similar to no avail.

I may be confused about namespace() and/or weather.get_forecasts.

I would appreciate any ideas. THANKS!

weather.kdsm_hourly includes datetime and dew_point state attributes…

temperature: 48
temperature_unit: °F
humidity: 37
pressure: 29.93
pressure_unit: inHg
wind_bearing: 190
wind_speed: 14.99
wind_speed_unit: mph
visibility: 10
visibility_unit: mi
precipitation_unit: in
forecast:
  - detailed_description: ""
    datetime: "2024-02-24T14:00:00-06:00"
    precipitation_probability: 0
    condition: partlycloudy
    wind_bearing: 180
    temperature: 50
    dew_point: 27
    wind_speed: 14
    humidity: 41
  - detailed_description: ""
    datetime: "2024-02-24T15:00:00-06:00"
    precipitation_probability: 0
    condition: partlycloudy
    wind_bearing: 202.5
    temperature: 52
    dew_point: 27
    wind_speed: 14
    humidity: 38
  - detailed_description: ""
    datetime: "2024-02-24T16:00:00-06:00"
    precipitation_probability: 0
    condition: partlycloudy
    wind_bearing: 202.5
    temperature: 53
    dew_point: 28
    wind_speed: 15
    humidity: 38

I started with this script but cannot seem to figure out how to pass the forecasted datetime to pass to notify. The first template works.

check_forecast_dewpoint:
  alias: Check Forecast Dewpoint
  sequence:
  - condition: template
    value_template: >
      {% set ns = namespace(highdewpoint_exceedthreshold=false) %}
      {% for entry in state_attr('weather.kdsm_hourly', 'forecast') %}
        {% if entry.dew_point > 35 %}
          {% set ns.highdewpoint_exceedthreshold = true %}
          {% break %}
        {% endif %}
      {% endfor %}
      {{ ns.highdewpoint_exceedthreshold }}
  - condition: template
    value_template: '{{ ns.highdewpoint_exceedthreshold }}'
  - service: notify.rob_email
    data:
      message: 'Forecasted dewpoint at SOME DATETIME is forecasted to exceed the threshold of XX°F.'

Then I tried this automation…

#TEMPLATE SENSORS DEWPOINT
      highdewpoint_warning:
        friendly_name: "High Dew Point Warning"
        icon_template: "mdi:water-alert"
        value_template: >-
          {% if states('sensor.kdsm_dew_point') | float > 30 %}
              on
          {% else %}
              off
          {% endif %}
        attribute_templates:
          highdewpoint_date: >-
            {% set ns = namespace(highdewpoint_date=0) %}
            {% for entry in state_attr('weather.kdsm_hourly', 'forecast') %}
                {% if entry.dewpoint > 30 and ns.highdewpoint_date == 0 %}
                    {% set ns.highdewpoint_date = entry.datetime %}
                {% break %}
                {% endif %}
            {% endfor %}
            {{ns.highdewpoint_date}}

1 post - 1 participant

Read full topic

How select mop, sweep or mop and sweep for xiaomi vacuum?

$
0
0

Hi, I have a Xiaomi vacuum cleaner that, in addition to sweeping, can mop or sweep and mop at the same time. Is there any integration or card that allows you to select these cleaning modes?

1 post - 1 participant

Read full topic

Same aliases in each room (room awareness @ HA satellites)

$
0
0

Hi,
Now I’m still testing, but the plan is to have a Box-S3 voice satellite in each room, so that we are able to control things wih our voice.
Question is: how to set the same couple of aliases to entities in differnet rooms ?
Example 1:
I have electric window shutter (cover) in each room. I would like to say in my language ssomething equivalent to: “Close the shutters” and this should be applicable only in that specific room where the HA voice satellite is. But I would like to be able to say also something equivalent to: “Close the covers” (so a second alias for the same thing) and to work in the same way only in the room I’m speaking. But If I say: “Close the shutters in the bedroom” then it should work for the bedroom no matter the room I’m speaking in.
Example 2:
I have a ceiling light which I treat a little bit different, and it exists in every room. I would like the same aliases for ceailing lights to work in all rooms.

Any suggestion how to do this ?
Thanks

1 post - 1 participant

Read full topic

Temperature sensor not triggering in any given case

$
0
0

Hello everybody,

I ve been stuck with this for hours even if the use case is probably the simplest that exists.

I have not been able to turn ON switch when temperature is below 25. (Its always below 20)

  1. Tried different approaches, first try :
alias: firstTry
description: ""
trigger:
  - type: temperature
    platform: device
    device_id: ac5937feb5452bddd6522a9f719448d2
    entity_id: 3dd45aa1b936e8cdcfb15bab9d44edc6
    domain: sensor
    below: 25
condition: []
action:
  - type: turn_on
    device_id: e754ed54195e59e2657f480fc83c08db
    entity_id: c08ad0ca2dd1f1022a2a1d5e871aaaec
    domain: switch
mode: single

  1. second try :
alias: Allumer chuaffage
description: ""
trigger:
  - platform: numeric_state
    entity_id: sensor.capteur_temperature_temperature
    below: 25
condition: []
action:
  - type: turn_on
    device_id: e754ed54195e59e2657f480fc83c08db
    entity_id: c08ad0ca2dd1f1022a2a1d5e871aaaec
    domain: switch
mode: single

None of this worked …
PS: With a specific hour as a trigger, it DOES turn on correctly
Thank you for reading me ! :hand_with_index_finger_and_thumb_crossed: :two_hearts:

Versions :

  • Core 2024.2.3
  • Supervisor 2024.02.0
  • Operating System 11.5
  • Interface utilisateur 20240207.1

1 post - 1 participant

Read full topic

Battery-card: color icons on logic evaluation

$
0
0

It’d be rather cool to have a set of cells of a battery displayed like this:
https://akkula.fi/wp-content/uploads/2023/05/JK_BMS_APP.jpg - where the highest- and lowest-voltage cells are marked up differently to the others.

Some other dashboard card would also be fine. However I’ve not found a way to get one to color icons dependent on a value comparison against max and min. I can create sensors that track max & min simply enough.

Is this possible?

1 post - 1 participant

Read full topic


Custom:stack-in-card vs. vertical-stack-in-card

$
0
0

Hi all,

I need a horizontal stack without borders. If I use the vertical-stack-in-card, it looks good, but the custom-stack-in-card has borders. What is wrong? How can I remove the border, the line between the two cards in the second example? I also need this in a horizontal alignment.

vertical-stack-in-card:

type: custom:vertical-stack-in-card
title: My Card
cards:
  - type: custom:mushroom-template-card
    primary: '{{ ''online'' if states(entity) == ''on'' else ''offline'' }}'
    icon: '{{"mdi:wifi" if states(entity)=="on" else "mdi:wifi-off"}}'
    entity: binary_sensor.cupra_born_car_is_online
    multiline_secondary: false
    layout: vertical
    icon_color: '{{ ''green'' if states(entity) == ''on'' else ''red'' }}'
    fill_container: false

image

custom-stack-in-card:
image

type: custom:stack-in-card
mode: vertical
keep:
  border: false
cards:
  - type: custom:mushroom-template-card
    primary: '{{ ''online'' if states(entity) == ''on'' else ''offline'' }}'
    icon: '{{"mdi:wifi" if states(entity)=="on" else "mdi:wifi-off"}}'
    entity: binary_sensor.cupra_born_car_is_online
    multiline_secondary: false
    layout: vertical
    icon_color: '{{ ''green'' if states(entity) == ''on'' else ''red'' }}'
    fill_container: false
  - type: custom:mushroom-template-card
    primary: '{{ ''online'' if states(entity) == ''on'' else ''offline'' }}'
    icon: '{{"mdi:wifi" if states(entity)=="on" else "mdi:wifi-off"}}'
    entity: binary_sensor.cupra_born_car_is_online
    multiline_secondary: false
    layout: vertical
    icon_color: '{{ ''green'' if states(entity) == ''on'' else ''red'' }}'
    fill_container: false

1 post - 1 participant

Read full topic

Lovelace card for dual white led

$
0
0

I’m trying to think of a way to add controls for a dual white led connected to a shelly RGBW2 device. By default the rgbw2 supports an RGBW ledstrip or 4 single white led strips.

I’ve seen others work on this, but I think this only provides an interface to the RGBW2 device, not a card to interface with it.

I was thinking something along the lines of this picture as a card to control it.

Is it easy to create something like this?

1 post - 1 participant

Read full topic

Automation trigger for when state is 10 minutes equal to zero then greater than zero

$
0
0

Hi everyone,

I currently have an automation that’s triggered when a smart plug’s power moves above 0. I’m using the following template trigger to make this happen.

{{states('sensor.plug1_power') | float(0) > 0}}

What I’m now trying to do is add an additional clause to the automation so that is triggers when the smart plug’s power moves above 0, but only if the power value of the plug has been 0 for the previous 10 minutes.

Does anybody have any thoughts on how I might achieve this?

Many thanks in advance,

Matt

1 post - 1 participant

Read full topic

Light transition only works for off, but is configured for neither

$
0
0

So I’ve got a lamp, a Hue E27 bulb LTW001 that I’m turning on and off as part of an automation. I don’t think it matters what triggers the on/off state.

I have not configured a transition either for turning on, not for turning off the lamp. Yet, the lamp manages to transition only when being turned off. When it turns on again, it does so instantly.

I dove into the configuration of the lamp device, and found some promising attributes that have to do with transitions, presumably done by the lamp independently from any controller, but they are all set to “None”, as far as I could find. So that might not be the culprit.

One thing to note, I don’t currently care whether it does a fancy transition or not. I just want it to do so consistently. So if I set a transition in an automation, it should do so, and if I disable transition in the same automation, it should not transition. How do I go about setting this right?

One last gripe that I have with this, is that transitions that can be set in an automation, have a resolution of 1 second. It doesn’t accept 0.5 seconds. I understand that this might have been done for those people who transition a lamp (or whatever else) over the course of hours. But surely, millisecond-resolution doesn’t prevent people from keying very long transition times, but second-resolution does prevent people from keying very short transitions. Can this be fixed please?

1 post - 1 participant

Read full topic

Rest sensor unknown does not update

$
0
0

I have an esp32 running a simple rest server. It returns this

{"temperature":73.95800018,"pressure":30.02012825,"humidity":33.10644531,"battery":4152}

My configuration.yaml


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

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

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

rest:
  - resource: "http://192.168.1.247/data.xml"
    scan_interval: 300
    sensor:
      - name: "Temperature"
        value_template: "{{ value_json[0].temperature }}"
        device_class: temperature
        state_class: measurement
      - name: "Pressure"
        value_template: "{{ value_json[0].pressure }}"
        device_class: pressure
        state_class: measurement
      - name: "Humidity"   
        value_template: "{{ value_json[0].humidity }}"
        device_class: humidity
        state_class: measurement
      - name: "Battery"   
        value_template: "{{ value_json[0].battery }}"
        device_class: battery
        state_class: measurement

Been trying for days to get the data into HA so this is a fresh bare HA install

I have tried changing the value_template(and everything else) a hundred different ways,
this is as simple and paired down as I can make it yet it is still somehow beyond me

2 posts - 2 participants

Read full topic

Help with the layout-card grid card hights

$
0
0

hey all i have been trying to set up my dashboard for some time now and have just installed layout-card which seems to work well but each card copies the height of the cards alongside it

bad image but as you can see of the 3 columns the middle has a lot of room below it and i was hoping i could push up the lone bottom middle card into the upper middle but the upper middle card is taking the whole space

image

i am just wondering if / how i could fit the cards to size, as the left and middle cards are bigger then the content of the cards itself, as they are copying the same size as the right

a closer example are these 3 cards

image

i would like the left and right to fit to the size of the content itself not just matching the middle which is the tallest one

any help is appreciated

1 post - 1 participant

Read full topic

Another Ip camera intergration - help

$
0
0

Hi,
i have a NVR6108-P8-V2 i am to believe that is is just a cheap made in china dvr camera system,
i have tried the following ,
search the forums!
using generic camera interrogation
using agent DVR, with adding the local address,

i am at a bit of a loss, can any one help point me in the right direction, i have a feeling that maybe there is somthing i need to turn on on my dvr.

Thanks

2 posts - 2 participants

Read full topic


One Sensor Alert for Water and Motion

$
0
0

I am looking at creating a custom alert which does all of my sensors, eg water, and motion. I have come up with the following, but when a sensor is triggered it is showing only the following:

[[[ return Motion - ${entity.attributes.friendly_name}; ]]] and not the actual name, apologies i am only really new to this, so figuring it all out.

The code is below:

type: custom:auto-entities
card:
  type: entities
  title: Active Sensors
filter:
  include:
    - entity_id: >-
        /binary_sensor\.(uvc_g4_doorbell_camera_motion|uvc_g4_pro_camera_driveway_motion|uvc_g4_pro_camera_side_motion|unifi_g4_camera_motion|garage_hue_motion_sensor_motion|dining_room_g3_dome_camera_motion)/
      state: 'on'
      options:
        name: |
          [[[ return `Motion - ${entity.attributes.friendly_name}`; ]]]
        icon: mdi:motion-sensor
    - entity_id: >-
        /binary_sensor\.(aquarium_water_sensor_moisture|water_sensor_aquarium_floor_moisture)/
      state: 'on'
      options:
        name: |
          [[[ return `Water Leak - ${entity.attributes.friendly_name}`; ]]]
        icon: mdi:water-alert

If there is a nicer way to present too would be appreciated. Thanks in advance!

1 post - 1 participant

Read full topic

I’m trying to create a mqtt thermostat

$
0
0

Hello I need Help with mqtt topics and payload for a auto discovered mqtt thermostat.
I currently have a thermostat with 4 sensors one for each room “main bedroom, sons bedroom, living room and kitchen”,
I’m stuck with my thermostat, I cant use a climate card with my current set up HA is displaying the sensors and switch separately,
I am currently working in building individual thermostats but on the mean time I’m trying to simulate one with node red and posting the topics and payloads to my mqtt broker,
so that I can create the proper mqtt topics,
at the moment my climate entity displays the current temperature and I can turn the mode between heat and off locally on the entity or remotely via node red and mqtt client,
1st issue is the rotary dial on the entity updates the mqtt broker but it wont reacts to remote updates, also wend I move it past ambient temperature nothing happens I assume I need a switch entity linked to the thermostat.
I can`t find that type of entity on the mqtt climate integration,
that’s my second issue, how do I add a switch to my thermostat?

A climate entity should have a mode select “off,heat , cool, fan” to select how you what the device should do,
and a power setting to actually “in my case” turn the heat on and off around the set point.

the mqtt integration is a bit useless in respect to mqtt topics and payloads,
it addresses HA side of the things “YAMEL” but says next to nothing about the required mqtt topic tree itself.
for example for discovery its needed a config topic in my case I am using the topic (“homeassistant/climate/LivingRoomThermostat/config”) with the following parameters

 {
    "unique_id": "LivingRoomThermostat170224",
    "name": "LivingRoomThermostat",
    "device_class": "climate",
    "modes": ["off", "heat"],
    "precision": 0.1,
    "mode_command_topic": "homeassistant/climate/LivingRoomThermostat/mode/set",
    "mode_state_topic": "homeassistant/climate/LivingRoomThermostat/status/mode",
    "temperature_command_topic": "homeassistant/climate/LivingRoomThermostat/temperature/set",
    "current_temperature_topic": "homeassistant/climate/LivingRoomThermostat/status/sensor",
    "state_topic": "homeassistant/climate/LivingRoomThermostat/status",
    "availability_topic": "homeassistant/climate/LivingRoomThermostat/status/LWT",
    "payload_available": "Online",
    "payload_not_available": "Offline",
    "power_command_topic": "homeassistant/climate/LivingRoomThermostat/power/set",
    "power_state_topic": "homeassistant/climate/LivingRoomThermostat/status/power",
    "payload_on": "ON",
    "payload_off": "OFF"
}

I need the correct mqtt topics to enable a climate switch to be auto discovered by HA on my thermostat, entity (“homeassistant/climate/LivingRoomThermostat/”).

these are the topics I created in node red so far, I can add the JSON flow if anyone is interested.

1 post - 1 participant

Read full topic

Can Home Assistant "Assist" be the first to initiate conversation?

$
0
0

Dear HA Community,
Does anyone know, if there is any way to make HA “Assist” initiating the conversation?
One of the scenarios I am thinking of could be:
When I enter the bathroom, Assist asks: “Shall I play the music or the latest news?”, then it is waiting for my reply for 15 seconds and takes appropriate action if it receives reply.
Any hint is welcome, many thanks!

2 posts - 2 participants

Read full topic

How to toggle WLED on/off?

$
0
0

I want to have a button that can toggle power to my WLED strip, which seems like a basic function but I can’t work out how to do it.

My WLED controller with 2 presets. #1 has the entire strip as a single segment and #2 has it as multiple segments.

image

It seems that when the strip is a single segment I need to use the entity light.wled to toggle power. However when using the segmented preset, I need to use light.wled_main to toggle the entire strip (light.wled just turns off the first segment in this case). Is this a bug?

Does the integration not support a general on/off switch? Is there a custom component that can save me? Or do I need to manually interact with the API of the controller?

1 post - 1 participant

Read full topic

Devices and Areas

$
0
0

So, I was looking to report on all devices in an area. This led me to looking for a list of areas and devices. Then, listing of devices not in an area.

I am not sure all of this is in one place. So, I thought I’d post it here.

All of these are using tables in Markdown Cards. But, could certainly be used in other ways. You can decide your best method to use them.

They are all setup to sort by area/device name entered by user (or name if not entered) or device name entered by user (or name if not entered)/area depending on the layout.

First, all areas and a list of devices in that area:

|Area|Devices
|:---|---:
{%- set ns = namespace(areas = [], devices=[], area_name = '') -%}
{%- for area in areas() | sort %}
  {%- set ns.area_name = area_name(area) -%}
  {%- set ns.devices = [] -%}
  {%- for device in area_devices(area) %}
    {%- set ns.devices = ns.devices + [{'device_name': device_attr(device, 'name_by_user') if device_attr(device, 'name_by_user') != none else device_attr(device, 'name')}] -%}
  {%- endfor %}
  {%- set ns.areas = ns.areas + [{'area_name': area_name(area),
                                  'devices': ns.devices}] -%}
{%- endfor -%}
{%- for area in ns.areas | sort(attribute='area_name') -%}
  {%- if area.devices | length == 0 %}
| {{ area.area_name }} | None
  {%- else -%}
    {%- set ns.area_name = area.area_name -%}
    {%- for device in area.devices | sort(attribute='device_name') %}
| {{ ns.area_name }} | {{ device.device_name }}
      {%- set ns.area_name = '' -%}
    {%- endfor -%}
  {%- endif -%}
{%- endfor -%}

This shows:
image

Second is a list of devices and the areas they are in.

|Device|Area
|:---|:---
{%- set ns = namespace(devices = []) -%}
{%- for entity in states | map(attribute='entity_id') %}
  {%- if device_id(entity) %}
    {%- set ns.devices = ns.devices + [{'id': device_id(entity),
                                        'name': device_attr(entity, 'name_by_user') if device_attr(entity, 'name_by_user') != none else device_attr(entity, 'name'),
                                        'area': area_name(device_attr(entity, 'area_id'))}] -%}
  {%- endif -%}
{%- endfor -%}
{%- for device in ns.devices | unique(attribute='id') | sort(attribute='name') %}
  | {{ device.name }} | {{ device.area }}
{%- endfor -%}

This shows:

Finally, a list of devices NOT in an area.

|Device|Area
|:---|:---
{%- set ns = namespace(devices = []) -%}
{%- for entity in states | map(attribute='entity_id') %}
  {%- if device_id(entity) %}
    {%- set ns.devices = ns.devices + [{'id': device_id(entity),
                                      'name': device_attr(entity, 'name_by_user') if device_attr(entity, 'name_by_user') != none else device_attr(entity, 'name'),
                                      'area': area_name(device_attr(entity, 'area_id'))}] -%}
  {%- endif -%}
{%- endfor -%}
{%- for device in ns.devices | selectattr('area', 'eq', none) | unique(attribute='id') | sort(attribute='name') %}
  | {{ device.name }} | {{ device.area }}
{%- endfor -%}

This shows:
image

I think I have provided all of what I have built. Please let me know if something is wrong or can be optimised.

1 post - 1 participant

Read full topic

Viewing all 112741 articles
Browse latest View live


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