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

Clock weather card - change size

$
0
0

Hi,

I’m using the clock weather card and i think it looks awesome! But since i upgraded my walltablet to a Samsung galaxy tab A9+ the clock weather card just looks to small.
Is there any way to change the size of the card? Or can i change just the size of the clock?

1 post - 1 participant

Read full topic


Block automations.yaml based on true/false condition

$
0
0

Hi

I would like to block all automations in automations.yaml file based on true/false condition.

Following code should block any actions, but it doesn’t.
condition:

  • condition: template
    value_template: ‘{{ not is_state(“sensor.price_below_threshold”, “true”) }}’

I checked that the condition returns correct state, but the automation still works after “true” state. Any further ideas why this is not the case?

alias: IVT control
description: Styra värmepumpen via Nordpool spotpris med relä
trigger:
  - platform: state
    entity_id:
      - sensor.nordpool_kwh_se3_sek_3_095_025
condition:
  - condition: template
    value_template: '{{ not is_state("sensor.price_below_threshold", "true") }}'

action:
  - choose:
      - conditions:
          - condition: numeric_state
            entity_id: sensor.electricity_price_4_levels_24h
            above: 3
        sequence:
          - service: light.turn_off
            target:
              entity_id: light.hue_smart_plug_1_3
            data: {}
          - service: switch.turn_on
            data: {}
            target:
              entity_id: switch.shelly1_244cab43e0e5
          - service: notify.notify
            data:
              message: "Nivå 4: dyrt"
              title: Expensive
      - conditions:
          - condition: numeric_state
            entity_id: sensor.electricity_price_4_levels_24h
            above: 2
        sequence:
          - service: light.turn_off
            target:
              entity_id: light.hue_smart_plug_1_3
            data: {}
          - service: switch.turn_off
            data: {}
            target:
              entity_id: switch.shelly1_244cab43e0e5
          - service: notify.notify
            data:
              message: "Nivå 3: normal"
              title: Normal
      - conditions:
          - condition: numeric_state
            entity_id: sensor.electricity_price_4_levels_24h
            above: 1
        sequence:
          - service: light.turn_off
            target:
              entity_id: light.hue_smart_plug_1_3
            data: {}
          - service: switch.turn_off
            data: {}
            target:
              entity_id: switch.shelly1_244cab43e0e5
          - service: notify.notify
            data:
              message: "Nivå 2: billigt"
              title: Cheap
      - conditions:
          - condition: numeric_state
            entity_id: sensor.electricity_price_4_levels_24h
            above: -1
        sequence:
          - service: light.turn_on
            target:
              entity_id: light.hue_smart_plug_1_3
            data: {}
          - service: switch.turn_off
            data: {}
            target:
              entity_id: switch.shelly1_244cab43e0e5
          - service: notify.notify
            data:
              message: "Nivå 0: Gratis"
              title: Burn it
    default:
      - service: light.turn_on
        target:
          entity_id: light.hue_white_lamp_1
        data: {}
      - service: switch.turn_off
        data: {}
        target:
          entity_id: switch.shelly1_244cab43e0e5
      - service: notify.notify
        data:
          message: "Nivå 1: väldigt billigt"
          title: Bäst
mode: restart

1 post - 1 participant

Read full topic

Google Home Entity's Removed With Update

$
0
0

Last night when I updated my raspberry pi 5 running ha core from 2024.12.4 to 2024.12.5 it removed everything from Google home except one smart plug. I am confused because I have 4 of the same Zigbee smart plug and I connect them to ha with the ha sky connect and use nabu casa for Google home. Can anyone fix this because it’s never happened before when updating.

1 post - 1 participant

Read full topic

Question about Custom Button Card

$
0
0

Hello, Yaml Novice and Home Assistant Novice Here. I am trying to make a custom button card to turn off and turn on my pc. I have to use 2 different entities (a toggle switch to turn on the pc, and a binary sensor that pings the pc to know if it is on or not), Not sure how the code should go.

Basic Stuff:
Entity 1 is the switch that turns the PC on and off (just a momentary switch)
switch.sonoff_1001297fb9

Entity 2 is the binary sensor
binary_sensor.barry_s_gaming_desktop_ethernet_ping

I would like to use the Icon mdi:power, and use grey for off, and green for on.

BBCode
type: custom:button-card
entity: binary_sensor.barry_s_gaming_desktop_ethernet_ping
name: Ready Player One
icon: mdi:power
tap_action:
entity: switch.sonoff_1001297fb9

1 post - 1 participant

Read full topic

How to use variables in automaton (Message malformed)?

$
0
0

I’m trying to reference the helper value, but every attempt results in “Message malformed: expected float for dictionary value @ data[‘below’]”

Here is my configuration:

alias: Maciek - Air Humidifier - On
description: ""
triggers:
  - trigger: time_pattern
    minutes: /5
conditions:
  - condition: and
    conditions:
      - condition: time
        after: "06:00:00"
        before: "22:00:00"
        weekday:
          - sun
          - sat
          - fri
          - thu
          - wed
          - tue
          - mon
      - type: is_humidity
        condition: device
        device_id: 1149c9f9af2156ac06eff73cd8dfc1f1
        entity_id: 1bc89ca09440bef6615f410d359924f3
        domain: sensor
        below: {{states.input_number.air_humidifier_on}}
actions:
  - action: switch.turn_on
    metadata: {}
    data: {}
    target:
      device_id: 6d55b00f96bde882735687565ac4db25
mode: single

I’ve tried following combination without success:

below: {{states.input_number.air_humidifier_on}}
below: {{states(input_number.air_humidifier_on)}}
below: {{states(input_number.air_humidifier_on)|float}}
below: {{states('input_number.air_humidifier_on')|float}}
below: '{{states("input_number.air_humidifier_on")|float}}'
below: states.input_number.air_humidifier_on

What is the correct syntax?

1 post - 1 participant

Read full topic

Trigger at fixed time except if after sunrise (node-red)

$
0
0

I am trying to create a light-flow in node-red where lights turn on at a specific time except if after the sunrise (which happens a couple of months of the year)

So far the only solution I have found is to use the inject-node for the fixed time and then check if the state of the entity sun.sun is below_horizon.

And while this works it feels like a hack.

Are there any other ways to check this that are more… nice?

1 post - 1 participant

Read full topic

Motion Status changed to just ON/OFF

$
0
0

Hello All,

A few ours ago i upgraded my Home Assistant Core from version 11.4 to the latest 12.5

Upgrade went smooth but after that all my binary sensors used for motion changed the text from “Detected/Gedetecteerd” and “Clear/Geen Beweging” to just ON/OFF ??

I’m looking all over the place but can’t find the right spot were i can change this.

1 post - 1 participant

Read full topic

How pass and read the `trigger.to_state` inside a script

$
0
0

Hi I need to pass to script trigger.to_state and trigger.from_state for be able to read it in the script. Currently, I am trying many variations, but none of them work. last of my code is:

alias: Temperature Changed
description: ""
triggers:
  - trigger: state
    entity_id:
      - climate.c686b3d1
      - climate.c67df6bd
      - climate.c686b579
      - climate.c686b3b8
    attribute: current_temperature
conditions: []
actions:
  - action: script.temperature_notification_2
    metadata: {}
    data:
      to_ac_state: "{{ trigger.to_state }} "
      from_ac_state: "{{ trigger.from_state }}"
      # I have default value for the levels and required: false,
      # but I can't run the script without the params, 
      # if someone know how resolve and this issue please help.
      high_temp_level: 26
      low_temp_level: 22
mode: parallel

and

alias: Gree Climat Temperature Notification
description: >-
  Temperature Notification for Gree Climate devices. The entities can be passed
  from automation as `trigger.to_state.entity_id` or
  `trigger.from_state.entity_id`
sequence:
  - variables:
      # HERE: I can't read the state as object, what is wrong?
      test_1: "{{ to_ac_state.state }}"
      test_2: "{{ to_ac_state.friendly_name }}"
      name: "{{ state_attr(to_ac_state,'friendly_name') }}"
      temp: "{{ state_attr(to_ac_state,'current_temperature') }}"
      from_temp: "{{ state_attr(from_ac_state,'current_temperature') }}"
  - if:
      - condition: template
        value_template: >-
          {% if temp > high_temp_level %} true 
          {% elif temp < low_temp_level %} true 
          {% elif from_temp > high_temp_level %} true 
          {% elif from_temp < low_temp_level %} true 
          {% else %} false 
          {% endif %}
    then:
      - variables:
          temp_level: >-
            {% if temp > high_temp_level %} High 
            {% elif temp < low_temp_level%} Low 
            {% else %}
            {% endif %}
          change_direction: >-
            {% if from_temp < temp %} increased to 
            {% elif from_temp > temp %} decreased to 
            {% else %} is 
            {% endif %}
      - data:
          title: 🌡️ {{ temp_level }} Temp.
          message: >-
            {{ name }}: Temperature {{ change_direction }} {{ temp }}°C {{ from_temp }}
        action: notify.evgen
fields:
  to_ac_state:
    selector:
      object: {}
    name: To AC State
    description: Climat entity
    required: true
  from_ac_state:
    selector:
      object: {}
    name: From AC State
    description: Climat entity
    required: true
  high_temp_level:
    selector:
      number:
        min: 1
        max: 100
    name: High temp level
    description: abowe this value temp is high
    default: 26
  low_temp_level:
    selector:
      number:
        min: 1
        max: 100
    name: Low temp level
    description: below this value temp is low
    default: 22
icon: mdi:air-conditioner

In trace the script ,I can see, I receive the data as

to_ac_state: >-
  {'hvac_modes': [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>,
  <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT:
  'heat'>, <HVACMode.OFF: 'off'>], 'min_temp': 8, 'max_temp': 30,
  'target_temp_step': 1, 'fan_modes': ['auto', 'low', 'medium low', 'medium',
  'medium high', 'high'], 'preset_modes': ['eco', 'away', 'boost', 'none',
  'sleep'], 'swing_modes': ['off', 'vertical', 'horizontal', 'both'],
  'current_temperature': 28, 'temperature': 26, 'fan_mode': 'low',
  'preset_mode': 'none', 'swing_mode': 'off', 'friendly_name': 'Cabinet AC',
  'supported_features':
  <ClimateEntityFeature.TARGET_TEMPERATURE|FAN_MODE|PRESET_MODE|SWING_MODE|TURN_OFF|TURN_ON:
  441>}

and results for first variables is:

test_1: ''
test_2: ''
name: null
temp: null
from_temp: null

1 post - 1 participant

Read full topic


Add Ring Contact Sensor v1 to ZWave JS

$
0
0

I moved into a home with several Ring contact sensors v1 and I would like to ad them to my HA instance. I found the instructions to reset the devices but nothing to put them in “pairing” mode. I have an Aeotec Z-Stick Gen5 and a Z-Stick 7. I have tried a bunch of different button press combinations but they wont join the zwave network. I would appreciate any help from someone who has done this. Thank you. Using Zwave js for the gen5 and zwave js ui for the gen7, because some of my devices seem to perform better on one stick or the other. Thank you in advance.

1 post - 1 participant

Read full topic

Hue devices and Zigbee2MQTT

$
0
0

First post here and my first expericence with HA.
I have HAOS installation with Sonoff Plus zigbee3 with mosquitto and zigbee2mqtt.
I did have some start erros in log but followed tutorials and now startup is error free.
Received soem devices today and went to pair. Phillips hue dimmer switch V2. I hit the reset button and the amber light light flashes to say in pair mode, I then when to zigbee2mqtt and the timer starts. At this point I am not seeing my device.

Any pointers would be appreciated. Any guidance on validating the setup would also be appreciated.

1 post - 1 participant

Read full topic

Automation turn on and off for specific time help

$
0
0

Hi all,
I am trying to implement the following automation but something isn’t working as I need.

I need the switch.bath_radiator when I manually turn it on to stay on for 3 minutes and the turn off.
After that I need for the next 2 hours to turn on for 1 minute and turn off for 15 minutes in a loop. When the 2 hours passed I need to turn off.

I am trying to make it work, with the automation editor and chatgpt help but I can’t.
This is what I have right now. The first part is working ok but not the second part

- id: Radiator first cycle
  alias: Radiator first cycle
  triggers:
  - trigger: state
    entity_id:
    - switch.bath_radiator
    to: 'on'
    for:
      hours: 0
      minutes: 3
      seconds: 0
  conditions:
  - condition: state
    entity_id: input_boolean.bath_radiator_loop_started
    state: 'off'
  actions:
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: switch.bath_radiator
  - action: input_boolean.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: input_boolean.bath_radiator_loop_started
  mode: single
  
  
- id: Radiator loop cycle
  alias: Radiator loop cycle
  description: ''
  triggers:
  - trigger: state
    entity_id:
    - input_boolean.bath_radiator_loop_started
    to: 'on'
  conditions: []
  actions:
  - repeat:
      until:
      - condition: template
        value_template: >
          {{ (as_timestamp(now()) - as_timestamp(states.input_boolean.bath_radiator_loop_started.last_changed)) >= 7200 }}
      sequence:
      - action: switch.turn_on
        metadata: {}
        data: {}
        target:
          entity_id: switch.bath_radiator
      - delay:
          hours: 0
          minutes: 1
          seconds: 0
      - action: switch.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: switch.bath_radiator
      - delay:
          hours: 0
          minutes: 15
          seconds: 0
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: switch.bath_radiator
  - action: input_boolean.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: input_boolean.bath_radiator_loop_started
  mode: single

Can someone help?

1 post - 1 participant

Read full topic

Schedy: Expression in allow_manual_changes (or fix for Shelly TRVs)

$
0
0

Hi, how would a get the value for allow_manual_changes from a HA helper?

Things that do not work:

allow_manual_changes: {{ is_state("input_boolean.heating_allowchanges", "on") }}

Templating does not seem to bee supported and the editor won’t even let me save it.

allow_manual_changes: "False if allow_changes() else True"

Schedy won’t initialize because that is not a bool and does not get evaluated like in the value / x.

allow_manual_changes: is_on("input_boolean.heating_allowchanges")
allow_manual_changes: "is_on('input_boolean.heating_allowchanges')"
allow_manual_changes: |
    is_on("input_boolean.heating_allowchanges")

won’t get evaluated either.

Background: My Shelly TRVs have started to behave erratically and report back old values after getting a command from HA which then results in setting the new temperature after the rescheduling_delay. When manually setting the temperature, I want this delay; in most cases, I do not.
If someone has a fix for the TRVs I’d be even happier :slight_smile:

Kind regards, Jörg

1 post - 1 participant

Read full topic

HAOS Update 14.1 1 Breaks VM

$
0
0

I am running HA HasOS 1.0 Core 2024 12.5 on a Virtual Machine on MacOS. When I when I update to 14.1. I a no longer able to boot with the attached error messages
Screenshot 2024-12-21 at 9.19.59 AM. I am able to recover using previous snap shot

1 post - 1 participant

Read full topic

Matter Question

$
0
0

Hey everyone!

I am getting started with Matter. I have had the Matter integration (BETA) for some time but have never added any devices… until today, today is that day…

When in my desktop browser I click add entry the following appears:

Should I be looking for the “Official Matter Server Supervisor Add-On”?

Here are the add-ons I currently have:

Any wisdom, insight or help would be greatly appreciated!

Thanks,
Paul.

1 post - 1 participant

Read full topic

Problem with sentence recognition in German

$
0
0

I have a problem with sentence recognition in German. I am trying to turn on a device (type: switch) in a specific area. When I use English, everything works fine. However, when I use German, the wrong sentence_template is used as soon as I include an area.

Example sentence in German: “Schalte die Kamera im Garten an” (English: Turn on the camera in the garden)
The entity I want to trigger has an alias “Kamera”

intent:
  name: HassTurnOn
slots:
  area: Garten
  domain: scene
details:
  area:
    name: area
    value: Garten
    text: Garten
  domain:
    name: domain
    value: scene
    text: ''
targets: {}
match: false
sentence_template: '[<szene> ]<name> <area>[ (<aktivieren>|<ausfuehren>|<an>)]'
unmatched_slots:
  name: 'Schalte die Kamera '
source: builtin

Can I change this to not use a scene intent?

1 post - 1 participant

Read full topic


Can’t connect remotely via the iPhone app but I can via safari?

$
0
0

When I try and connect to home assistant via the app I get an error

The address I use is a duck dns address.
When I type this in the browser I can connect without problem, so why does it not work in the app?

1 post - 1 participant

Read full topic

Read XY Color from Switch

$
0
0

I bought an RGB touch switch that doesn’t support Zigbee.
I combine it with a XIAO ESP32C6 that calculates the XY color code based on the PWM signal from the switch.
The XY signal is sent to HA via Zigbee

Code:

esp_zb_zcl_color_move_to_color_cmd_t cmd_color;
  cmd_color.color_x = refer_x;
  cmd_color.color_y = refer_y;
  cmd_color.transition_time = 0;
  cmd_color.address_mode = ESP_ZB_APS_ADDR_MODE_DST_ADDR_ENDP_NOT_PRESENT;
  cmd_color.zcl_basic_cmd.src_endpoint = 10;
  esp_zb_lock_acquire(portMAX_DELAY);
  esp_zb_zcl_color_move_to_color_cmd_req(&cmd_color);
  esp_zb_lock_release();

my question is:
how can I use this switch to control other LED controllers that are already connected to HA via Zigbee?

1 post - 1 participant

Read full topic

Netadmo smart ac controller

$
0
0

Hi,

Is there any way to properly add Netadmo smart AC controllers to HA?

It seems the default netadmo intergation does not manage them as yet, is it?

Thank you very much

1 post - 1 participant

Read full topic

Camera Detection of FedEx Truck or Unique Object?

$
0
0

What’s up everyone!?
I’m super pissed at FedEx right now and I’m not going to get into it LOL
But I just thought it would be awesome if home assistant had the ability to leverage my Reolink camera(s) to detect unique motion of a specific object, in this case the FedEx truck, and then notify me.
Is there a way to train home assistant with an integration and AI to accomplish this?

1 post - 1 participant

Read full topic

Help with Template sensor (Time into Percentage)

$
0
0

Hey :wave:

Thanks for stopping by! I need help with a template sensor. I have a ESP32 Box3 S3 with custom firmware from BigBobbas. With that you get a sensor which shows you the time left on a timer, you made with voice assistant. And because I like to make a visual timer with WLED I need a template sensor that converts the Time into percentage.

The sensor is always at 0:00:00 by standard. When you set a timer by voice, it changes to the desired timer countdown. E.g. a 12 minute timer is shown as 0:12:00 and counting down.

I tried to modify the version for Alexa timers, but this one has no state attributes. So I’m struggling a bit.

Maybe on of you can help!

Bonus question: is it possible to get the time left also on a Awtrix LED matrix clock? This thing is not in use and would be a great addition :slight_smile:

Thanks and cheers!

1 post - 1 participant

Read full topic

Viewing all 105889 articles
Browse latest View live


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