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

Siemens logo mqtt temperature sensor configuration

$
0
0

hello I tried, also following the instructions of some posts, to configure a sensor that reads the temperature of an analog signal provided by the Logo via mqtt.
Unfortunately I can’t read anything even if I can read the data provided by the Logo via mqtt explorer.
Here the topic from mqtt explorer:

Logo_pub = {"state":{"reported":{"AI1":{"desc":"AM-word-1-1","value":[296]},"$logotime":1735591142}}}

Here my configuration yaml

mqtt:
  sensor:
    - name: "Temperatura AQ"
      state_topic: "temperatura acquario"
      unit_of_measurement: "°C"
      value_template: "{{ value_json['state']['reported']['AI1']['value'][0] }}"

When I put the value template on template editor this is the result


Maybe I lost some instruction?
Can anyone give me some instructions?
THX

1 post - 1 participant

Read full topic


Variable in shell script

$
0
0

I have three shell scripts where I want to post a variable to the script.

  device_power: > 
    curl --location --globoff --request PUT "http://{{ipAddress}}/api/v1/{{authToken}}/state" \
    --data '{"on": {"value": true}}'

  device_brightness: > 
    curl --location --globoff --request PUT "http://{{ipAddress}}/api/v1/{{authToken}}/state" \ 
    --data '{"brightness" : {"value":100, "duration":30}}'

  device_scene: > 
    curl --location --globoff --request PUT "http://{{ipAddress}}/api/v1/{{authToken}}/effects" \ 
    --data '{"select" : “Scene1”}’

For device_power this is ‘true’ or ‘false’, switching the device on/off, for device_brightness, this is a numeric value between 0 and 100, and for device_scene, this is a scene name.
How do I have to change the shell script so it can accept a variable and how do I post these variable is a yaml script

1 post - 1 participant

Read full topic

"Group" entities of different domains

$
0
0

I need to “group” 2 entities of different domains. One is a switch. and the other is a number… The number. entity will always be either 1 or 0 (on or off). Possible? I’m going to assume if this is possible it will require yaml and templating, so if anyone responding can provide VERY clear examples, I would appreciate it.

2 posts - 2 participants

Read full topic

Process to request a device be added to devices.zwave-js.io?

$
0
0

I have a number of Springs Window Fashions (Bali) z-wave blinds included into Home Assistant but am noticing that they are showing as the following within Z-Wave JS UI:

“hexId”: “0x026e 0x5252-0x5a42”,
“dbLink”: “Z-Wave JS Config DB Browser”,
“manufacturerId”: 622,
“productId”: 23106,
“productType”: 21074,
“productLabel”: “Unknown product 0x5a42”,
“productDescription”: “0x5252”,
“manufacturer”: “Springs Window Fashions”,
“firmwareVersion”: “14.7”,
“sdkVersion”: “6.82.0”,
“protocolVersion”: 3,
“zwavePlusVersion”: 1,

Im looking to understand if there is a process to submit this to the devs, bug/discussion on github?
Thanks!

1 post - 1 participant

Read full topic

Light automation using Hue motion sensor light value as trigger, failing

$
0
0

Good evening,

I googled already but failed and must admit that this is probably a pretty stupid problem.

My aim: turning on my outdoor Hue lights when it’s dark, leveraging the light sensor/entity of the Hue motion sensor. However it’s not triggering the automation.

Do you may see what is causing the issue? The entity value UoM should be lux. If I look up the motion sensor/entity I can always see the value which looks fine.

Many thanks and I apologize probably for raising a beginner problem.

My automation code:

alias: Licht Hauswand
description: Schaltet die Hue Außenleuchten bei Dunkelheit ein
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.bewegungsmelder_strasse_beleuchtungsstarke
    below: 50
    attribute: light_level
conditions: []
actions:
  - type: turn_on
    device_id: 8fc60ba599bb2c87eb106341e9dbed2e
    entity_id: 842d0c2298adc7200c9143e0b732071c
    domain: light
  - type: turn_on
    device_id: 8eeef62d2493ac7f6b3c8b7741902d1b
    entity_id: 5d5412d4a343869cc0ad133240492f2a
    domain: light
  - condition: numeric_state
    entity_id: sensor.bewegungsmelder_strasse_beleuchtungsstarke
    above: 50
    attribute: light_level
  - type: turn_off
    device_id: 8fc60ba599bb2c87eb106341e9dbed2e
    entity_id: 842d0c2298adc7200c9143e0b732071c
    domain: light
  - type: turn_off
    device_id: 8eeef62d2493ac7f6b3c8b7741902d1b
    entity_id: 5d5412d4a343869cc0ad133240492f2a
    domain: light
mode: single

1 post - 1 participant

Read full topic

Different Assistant answers with Voice vs text

$
0
0

I just got my Voice PE unit. Really impressive little box, and the setup process was slick.

I’m struggling with Assist results though, hoping someone can shed some light on this.

I have Assist working with an OpenAI conversation agent via the Extended OpenAI Conversation integration. I have this agent successfully using Google searches to answer questions (weather forecast, sports scores, etc…). That works well via the Assist window in the HA interface, using text queries.

I have the Voice PE setup to use the same Assistant (I only have one configured) with the OpenAI conversation agent. But, I can type the same question into the the web interface and speak it to the Voice PE and I get different results. The text interface will answer correctly, the Voice PE says that the search results didn’t include the information.

I can’t figure out why the results would be different to the same question just based on how it’s submitted. Does anyone have any suggestions for me?

Setup:
1 Assistant configured in HA -Conversation Agent: OpenAI via Extended Open AI Conversation integration

  • Speech to text: Faster-whisper
  • Text to speech: Piper

Extended Open AI Conversation:

  • OpenAI - gpt-40-mini model
  • Configured for Google search via example on the integration Github page
  • Use tools enabled

1 post - 1 participant

Read full topic

please help with trigger.entity_id in conditions

$
0
0

Hello everybody,

I have an automation, that should notify me on occuring errors on my vacuum bots. I have plenty of coding skills especially .net, but yaml and jinja is still relatively new for me.

alias: Benachrichtigung Staubsauger
description: ""
triggers:
  - trigger: state
    entity_id:
      - sensor.ufo_fehler
      - sensor.ouzo_fehler
    from: "0"
    not_to:
      - unavailable
      - unknown
conditions: []
actions:
  - choose:
      - conditions:
          - condition: state
            entity_id: trigger.entity_id
            state: "103"
        sequence:
          - metadata: {}
            data:
              title: Saugroboter braucht Hilfe!
              message: >-
                Hallo Heike, {% if trigger.to_state.entity_id ==
                "sensor.ouzo_fehler" %} Ouzo {% else %} Yiko {% endif %} muss
                gerettet werden!"
            action: notify.mobile_app_sm_m225fv
      - conditions:
          - condition: state
            entity_id: trigger.entity_id
            state: "301"
        sequence:
          - metadata: {}
            data:
              title: Saugroboter braucht Hilfe!
              message: >-
                Hallo Heike, {% if trigger.to_state.entity_id ==
                "sensor.ouzo_fehler" %} Ouzo {% else %} Yiko {% endif %} hat
                Durst!"
            action: notify.mobile_app_sm_m225fv
      - conditions:
          - condition: state
            entity_id: trigger.entity_id
            state: "302"
        sequence:
          - metadata: {}
            data:
              title: Saugroboter braucht Hilfe!
              message: >-
                Hallo Heike, {% if trigger.to_state.entity_id ==
                "sensor.ouzo_fehler" %} Ouzo {% else %} Yiko {% endif %} hat
                Pipi gemacht!"
            action: notify.mobile_app_sm_m225fv
    default:
      - metadata: {}
        data:
          title: Saugroboter ist krank!
          message: >-
            Hallo Heike, mit {% if trigger.to_state.entity_id ==
            "sensor.ouzo_fehler" %} Ouzo {% else %} Yiko {% endif %} stimmt
            irgendwas nicht!"
        action: notify.mobile_app_sm_m225fv
mode: single

Something with the condition is not working how I imagine it would, because all I get is the default path of the choose block.

The trace for the latest trigger looks like this:

this:
  entity_id: automation.benachrichtigung_ufo
  state: 'on'
  attributes:
    id: '1713989481918'
    last_triggered: '2024-12-27T11:32:12.106134+00:00'
    mode: single
    current: 0
    friendly_name: Benachrichtigung Staubsauger
  last_changed: '2024-12-30T00:38:55.862851+00:00'
  last_reported: '2024-12-30T00:38:55.862851+00:00'
  last_updated: '2024-12-30T00:38:55.862851+00:00'
  context:
    id: 01JGAG0T3PH4KZBMR5D7B9VW0G
    parent_id: null
    user_id: null
trigger:
  id: '0'
  idx: '0'
  alias: null
  platform: state
  entity_id: sensor.ufo_fehler
  from_state:
    entity_id: sensor.ufo_fehler
    state: '0'
    attributes:
      description: 'NoError: Robot is operational'
      friendly_name: Yiko Fehler
    last_changed: '2024-12-30T00:38:36.668072+00:00'
    last_reported: '2024-12-30T00:38:36.668072+00:00'
    last_updated: '2024-12-30T00:38:36.668072+00:00'
    context:
      id: 01JGAG07BWMRXJ66N8MBNMPMVW
      parent_id: null
      user_id: null
  to_state:
    entity_id: sensor.ufo_fehler
    state: '302'
    attributes:
      description: WasteWaterBox full
      friendly_name: Yiko Fehler
    last_changed: '2024-12-30T12:11:34.359721+00:00'
    last_reported: '2024-12-30T12:11:34.359721+00:00'
    last_updated: '2024-12-30T12:11:34.359721+00:00'
    context:
      id: 01JGBQN2JQEM533X2MNAD6NWT3
      parent_id: null
      user_id: null
  for: null
  attribute: null
  description: state of sensor.ufo_fehler

Thanks in advance for pointing me in the correct direction!

1 post - 1 participant

Read full topic

Integration Not Showing Up - Entities Do Show Up as Disabled by Config Entry

$
0
0

Hello,

I am having issues with getting my Reolink 811a camera brought into HA. I’m using HAOS in a virtual machine with Proxmox as a host. Frigate runs on a different virtual machine and restreams the video. All of that seems to be working, but I don’t have control of the camera outside of the video feed. I’m referring to the floodlight, mic, speaker etc.

Prior to ever using Frigate, I added the Reolink integration to HA, and could control these functions, but for some reason now all of the entities come up showing:
Cannot change status. Disabled by Config entry.

Also, the integration itself doesn’t show up on the integrations page. I’ve tried to add it again, and it says that it’s already been added. I’m guessing at some point I must have disabled it to limit connections to the camera, but I don’t know how to get it back as I don’t see it under integrations.

Any help would be greatly appreciated.

1 post - 1 participant

Read full topic


Best way to Create This Card

$
0
0

I would like to create a card in HA that mimics this card. The card will turn on the light, show it’s status and also show the power consumption. I understand how to create the 2 cards individually but I don’t understand how to show all on one card.


The attached photo shows examples of 3 different devices.

1 post - 1 participant

Read full topic

Entity media_player.plex_plex_for_alexa_alexa shows 'unavailable'

$
0
0

There is obviously something, well, a lot of things, I don’t know about using the ‘media_player.plex_plex_for_alexa_alexa’ entity. I have added it to the custom:mini-media-player card but the card shows ‘unavailable.’ Now, if I start Plex playback on Alexa via voice command, the current track is shown along with the album art and a pulldown labeled an ‘Browse’ which does in fact allow browsing of the media server.
I thought that perhaps the Alexa Plex skill needed to be started somehow but simply calling up the Plex skill on Alexa without playing a track does not change the HA card indicated status.
I did see on my Plex server that HA issue "unable to connect to “Home Assistant” securely. Perhaps this is the problem? Obviously HA is able to connect to my Plex server given the ability to browse when Alexa Plex is actually playing. It also seems that the ‘unavailable’ status also appears when Plex is pulling up the next track, i.e. between tracks. Since my HA is not actually hosting a server, perhaps the connection error I see on my Plex server is irrelevant.

2 posts - 2 participants

Read full topic

Setting the height of energy cards

$
0
0

Hello,

is it possible to change the height of the energy cards?

I still have space at the bottom and would like to fill it with the card…

Thanks and greetings

1 post - 1 participant

Read full topic

Adjusting TTS Volume for Sonos Announcements?

$
0
0

Hi,

I’m currently working on setting up some automations with TTS via my Sonos speakers. Everything is working fine, but what I want to achieve is to have the spoken TTS text announced at a specific volume level. When it comes to MP3 files, this works well: the music continues to play in the background, but the music file is played at a set volume. However, I haven’t found a good way to implement this for TTS announcements.

Could anyone help me find a solution for controlling the TTS volume independently, similar to how an MP3 file is handled?

Thanks in advance!

1 post - 1 participant

Read full topic

Esphome anemo meter windsensor

$
0
0

hi ,
i made a esphome device to get the windspeed ,
i use a binary sensor to get pulses any time the wind blows in the windcups

i got a lot of ON OFF variations

how can i disable the logbook for only this entity ?


2 posts - 2 participants

Read full topic

Switch makes me crazy: not recognized

$
0
0

Hi guys,
Really happy to join this community. I have set up a HA first on PI3 and now on NUC using KVM. Everything works fine. I want to set up a PSA controller, here also all good.
Except one thing which makes me cray : switch are simply not recognized.

I even try a very simple configuration.yaml:

default_config:

switch:
  - platform: command_line
    switches:
      test_switch:
        command_on: "echo 'on' > /tmp/test_switch.txt"
        command_off: "echo 'off' > /tmp/test_switch.txt"
        command_state: "cat /tmp/test_switch.txt"
        value_template: '{{ value == "on" }}'
        friendly_name: "Test Switch"

I then restart HA (system restart) and when I look for switch.test_switch in Developer Tools → States…nothing!

Any help is more than welcome.
Thanks

2 posts - 2 participants

Read full topic

Change climate hvac mode

$
0
0

Hi, I’m new here.
I have a device that is designed to operate only on heating with TUYA integration.
As it is identified as Heat/Cool, I want to change it to Heat.
How do I do this?
Thank you very much!

1 post - 1 participant

Read full topic


How to add/commission a Matter device, for real?

$
0
0

There is this thread that extensively describes ways to add Matter devices.

Using HA inside a VM devices cannot be added directly because the host is connected through WiFi, (client) WiFi cannot be bridged, and commissioning (using non-routable packets) fails (completely silently, no error given).

Using HA on a hardware device the device is in the correct network but it has no Bluetooth, and even if it had it is not in range. Then a companion application needs to be used.

On an old phone with half-broken ancient firmware the Play store does not work for whatever reason. Freedroid has HA application. It detects the HA in the network correctly. However, Freedroid only has the ‘Lite’ application, and that cannot add devices.

So is there any realistic way to add Matter devices?

To add insult to an injury an ‘offline’ protocol needs the Play store. That does not sound offline at all.

1 post - 1 participant

Read full topic

Proximity Presence with iPhone 12 Error "Cannot be processed as a number"

$
0
0

Running automation to turn on/off alarm when leaving or approaching Home Zone.

This was working fine as set alarm on leaving and turned off on arriving. But now has the home nearest error. See below.

Don’t understand as distant is numeric in my mind.

I have reset the HA OS ( restored to backup that was working) , restarted all iPhones…re-installed Companion app, made sure that Always ALLOW LOCATION, maximum accuracy…

Below is my configuration and the automation code (set up in HA UI)

Error:
"In ‘numeric_state’ condition: entity sensor.home_nearest_device state ‘XXiphone’ cannot be processed as a number.

Current system on x64 running HA OS

  • Core2024.12.5
  • Supervisor2024.12.0
  • Operating System14.1
  • Frontend20241127.8

Autiomation Code:
Preformatted text` alias: Alarm Step 1 Proximity Toggle - Leave Armed. Arrived Disarrm`
description: >-
Proximity test to see if Owners are leaving or entering the Home Zone. Sets
ALARM State to ARMED AWAY or DISARMED. Sets up next automation If triggeredwhile away alarm will sound and a notification will be sent


mode: single
triggers:

  • entity_id:
    • zone.home
      to: “0”
      id: Leaving
      trigger: state
  • entity_id:
    • sensor.home_nearest_device
      id: Leaving
      above: 200
      trigger: numeric_state
  • entity_id:
    • sensor.home_nearest_device
      below: 200
      id: Approaching
      trigger: numeric_state
  • entity_id:
    • zone.home
      above: 0
      id: Approaching
      trigger: numeric_state
      conditions:
      actions:
  • choose:
    • conditions:
      • condition: trigger
        id:
        • Leaving
          sequence:
      • action: alarm_control_panel.alarm_arm_away
        metadata: {}
        data: {}
        target:
        entity_id: alarm_control_panel.home_alarm
      • action: notify.mobile_app_XXiphone
        data:
        message: Good Bye. Home Alarm Arm away
    • conditions:
      • condition: and
        conditions:
        • condition: trigger
          id:
          • Approaching
        • condition: state
          entity_id: alarm_control_panel.home_alarm
          state: armed_away
          sequence:
      • action: alarm_control_panel.alarm_disarm
        metadata: {}
        data:
        code: “XXXX”
        target:
        entity_id: alarm_control_panel.home_alarm
      • action: notify.mobile_app_ssiphone15p
        data:
        message: Welcome Home. Alarm Disarmed
      • action: notify.XXXXX
        metadata: {}
        data:
        message: Twilo Test
        target: 1XXXXXXXX

1 post - 1 participant

Read full topic

Simply add 3 sensor values

$
0
0

Hello. I have tried for hours and days to try to do this simple task. All I want to do is add the values of 3 sensors that are in mqtt.yaml. I have 3 Solar Controllers and I want to add up their PV Yield for the day… I can get the PV yield for each controller from mqtt, but I can’t figure out how to add them. Thank you for any help. I have tried to make a template but don’t know where to put it or I’m just doing something wrong. I need help with making the sensor or template or platform. I’ve found several examples and don’t know the terminology. I also need to know where to put it. Does it go in mqtt.yaml or configuration.yaml? Once you help me get it figured out this time I should be having fun making lots of others. Thanks again.

This is them from mqtt.yaml:

line 1 in mqtt.yaml is sensor:

    # 277 Controller PV Yeild
  • name: “Shed Front PV Yeild”
    unique_id: “Cerbo2_277_PV_Yeild”
    device_class: power
    state_topic: “victron2/N/c0619ab2a9f9/solarcharger/277/History/Daily/0/Yield”
    value_template: ‘{{ (value_json.value|float(0))|round(2) }}’
    unit_of_measurement: “kWh”
    icon: mdi:solar-power

    278 Controller PV Yeild

  • name: “Shed Roof PV Yeild”
    unique_id: “Cerbo2_278_PV_Yeild”
    device_class: power
    state_topic: “victron2/N/c0619ab2a9f9/solarcharger/278/History/Daily/0/Yield”
    value_template: ‘{{ (value_json.value|float(0))|round(2) }}’
    unit_of_measurement: “kWh”
    icon: mdi:solar-power

    288 Controller PV Yeild

  • name: “Shed Ground PV Yeild”
    unique_id: “Cerbo2_288_PV_Yeild”
    device_class: power
    state_topic: “victron2/N/c0619ab2a9f9/solarcharger/288/History/Daily/0/Yield”
    value_template: ‘{{ (value_json.value|float(0))|round(2) }}’
    unit_of_measurement: “kWh”
    icon: mdi:solar-power

4 posts - 4 participants

Read full topic

Aqara Tm1 Light

$
0
0

Has anyone figured out how to address the color of the ring portion of the Aqara T1M Light when attached directly to HA via Zigbee (not via HomeKit)?

Here’s what my current setup looks like:

But when scripting any automation I don’t see a way to address the color directly. Thoughts? I’m wondering if I’m going to have to get an Aqara hub to address things but hopefully someone smarter than me has figured this out.

Thanks in advance.

1 post - 1 participant

Read full topic

Looking for a way to implement a regex on the input_text with an option to randomize the numbers

$
0
0

Hey !

I’m using the input_text to set up a door lock using a custom publish via MQTT
looking for two things and could not find anything online that worked on my setup.

  1. A way to limit the number of characters and only allow numbers in the input text (it’s possible to setup a maximum number of digits in the input_text, but it allows the user to type whatever it wants, and will not update the entity, I was looking for a way to limit the input in the input procedure)

  2. a way to generate a random password with 6 digits (only numbers)

2 posts - 2 participants

Read full topic

Viewing all 106199 articles
Browse latest View live


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