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

Accessing last sensor value / max sensor value for a specific day

$
0
0

Hello,
i have my daily rain sensor. It sums app and, as of the name, it resets at midnight.
I’d like to access yesterday’s (or other day’s) last/max value of the sensor to use it an automation that is running in another day (e.g.: water plants only if yesterday it poured less than x mm of rain)
i’d probably be able to do that creating an helpers / a template sensor, but i was just wondering if i can directly access the data (that HA has) without creating more “noise”…
thanks

5 posts - 3 participants

Read full topic


HASS Ampient lights,Hello guys check and tell me if its good

Services in notify.yaml broken with 2024.6

$
0
0

I have a number of services defined in the notify.yaml file to send texts and emails vial a Gmail account and application password. As of a couple of weeks ago every automation and script that calls one of these services errors out with a message like this:

The automation “Front doorbell detects motion” (automation.front_doorbell_detects_motion) has an action that calls an unknown service: notify.gmail_smtp_text

notify.gmail_smtp_text is defined in notify.yaml

1 post - 1 participant

Read full topic

Linefeed/Carriage Return in Horizontal stack card

$
0
0

Hey all,

I’ve got the following in the Secondary information of a Horizontal Stack Card:

Temperature: {{states(‘sensor.downstairs_nest_temperature’)}}
Humidity: {{states(‘sensor.downstairs_nest_humidity’)}}

This wants to display all on one line, and I would like them one on top of the other. Is there a way to force a Carriage Return/Linefeed between them?

Thanks!

1 post - 1 participant

Read full topic

Voice Assistant and Google Generative AI response character limit & remove * character

$
0
0

Hello

I know Voice and AI are in the early days of roll out but I’ve got a few questions and observations!

I’ve managed to set up Voice Assistant with Google Generative AI, it’s working nicely and noticed that you can all reach out and ask other questions such as tell me about “the first moon landing” but while using HA Assist via the Dashboard does two things:

  1. It cuts off the response after around 600 characters part way through answering.
    Any ideas if this can be changed to allow for longer responses in full or if the AI can suggest there is more. E.g. ‘do you want me to continue.’?
    Note: I’m aware you can say ‘continue’ and it will read more but while listening you might not know there is more to follow once the speech has finished.

  2. The response on a few questions seem to a have lots of Asterix in them which is fine if read but a bit annoying when it’s spoken out aloud by Voice Assistant.
    Also how to remove or reduce some of the Asterix from responses when using TTS Home Assistant Cloud?

Here’s a example, showing the cut off and Asterix.

Tell me about the first moon landing?

The first moon landing was a monumental event in human history, marking a significant leap in space exploration.
Here’s a breakdown of what happened:

  • The Mission: The mission was called Apollo 11, and it was launched by NASA on July 16, 1969, with the goal of landing astronauts on the moon and bringing them safely back to Earth.
  • The Crew: The crew consisted of Neil Armstrong, Buzz Aldrin, and Michael Collins. Neil Armstrong was the first human to set foot on the moon, followed by Buzz Aldrin. Michael Collins remained in lunar orbit while his crew mates landed.
  • The Landing: On July 20, 1969,

In the setting Voice Assistant>Text-to-speech is set to ‘Home Assistant Cloud’, this then speaks the 3 x * at the start of each sentence, then 2 x * after the sub head (e.g. * Crew: sounds like “Asterix, Asterix, Asterix, Crew, Asterix, Asterix”)

The response is better when set to ‘Google en com’, but the voice options are limited. Only speaking 2 x * at the start of each sentence. (e.g. * Crew: sounds like “Asterix, Asterix, Crew” )

Final thought, is the Google Generative AI integration even supposed to be able to answer wider questions?!?

Thanks

1 post - 1 participant

Read full topic

Can't access via http://homeassistant.local:8123/

$
0
0

I can access my instance perfectly through http://homeassistant:8123/ and my Nabu Casa cloud link, but for some reason http://homeassistant.local:8123/ doesn’t work anymore and I’d just like to figure out why?

This has been an issue for about 3 weeks now, but before that I was using http://homeassistant.local:8123/ for over a year. I’m not sure what changed that it’s all screwed up now. I just couldn’t access it anymore after a reset. I haven’t tried much except a bunch of restarts and reading other topics here.

I’m sorry if this post is repetitive but I have not been able to find my answer in the other topics.

thank you

1 post - 1 participant

Read full topic

Trigger based template sensor not working

$
0
0

I am at the end of my wits and I’m sure I’m making a super simple mistake somewhere… I’m trying to set up a trigger based template sensor to extract temperature forecast from a weather entity into its own sensor. I’ve followed the examples I could find but not matter what I do, I never see the sensor actually being created.

my config (in a separate templates.yaml file) looks like this:

- trigger:
    - platform: time_pattern
      hours: "/1"
  action:
    - service: weather.get_forecasts
      data:
        type: daily
      target:
        entity_id: weather.openweathermap
      response_variable: result
  sensor:
    - name: Temperature Forecast 
      unique_id: openweathermap_temperature_forecast
      state: "{{ result['weather.openweathermap'].forecast[0].temperature }}"
      unit_of_measurement: °C

- select:
...

In testing this, I’ve tried to create a script with that calls the service and then spits out the state template in a notification - worked exactly as expected. I even tried to completely remove the service call and just assign a static value to the sensor, then I tried using time instead of time_pattern… nothing ever produces a sensor. All my other template entities in the same file work as expected, there’s nothing I could find in logs that would help me in any way.

Am I missing something completely obvious?

1 post - 1 participant

Read full topic

GPS Tracks / Breadcrumbs displaying on a map?

$
0
0

Hey folks!

My Home Assistant installation is in an RV. I have another device on the network with a GPS dongle and it is sharing Latitude and Longitude values with Home Assistant via MQTT. Right now, I have an automation set up to change the Home Assistant “home” zone based on whatever that data shows.

One thing I would really like to do is have a separate dashboard with a map that shows tracks for everyone the RV has been. The device that has the GPS dongle is running VenusOS and I can use Victron’s VRM website to general a KML file from that data and, from there, I can generate a map. Very cool; but I’d love for this to be automated and up to date, with the ability to see everywhere I’ve been up to the current moment without having to go through those manual steps.

Has anyone done something similar, and have info to share? In digging through docs, reading, experimenting, and even messing around with ChatGPT I have figured out how to import a KML file into a GEOJSON file and then continue updating that GEOJSON file with coordinates received in the future. But I haven’t figured out how to take that GEOJSON data and make it something usable on a map card that I can see. But I’m certainly open to ingesting, storing, and retrieving the information some other way if someone has a better idea. But I do at least have that much solved.

Thanks!

1 post - 1 participant

Read full topic


Editing yaml

$
0
0

trying to use Home Assistant for the firs time. i am trying to install the Water furnace Integration but no success. instructions say add this (
waterfurnace:
username: YOUR_USERNAME
password: YOUR_PASSWORD) to the config yaml and i did but no success what am i missing?

6 posts - 3 participants

Read full topic

Anyone know why the scope of the response variable doesn't extend to the sensors?

$
0
0

Hi,

I’m trying to get weatherman data tag working - it’s a weather app for openepaper.

https://github.com/chunkysteveo/OpenEPaperLink-HA-Weatherman
The structure is such that I’ve put the code that is meant to go into the configuration.yaml file into templates.yaml and re-directed to that.

Within the templates.yaml, I have the following code:

- trigger:
    platform: time_pattern
    minutes: "/15"
    variables:
      forecast_entity: 'weather.home'
  action:
    - service: weather.get_forecasts
      target:
          entity_id: "{{forecast_entity}}"
      data:
          type: hourly
      response_variable: weather_home_hourly
    - service: weather.get_forecasts
      target:
          entity_id: "{{forecast_entity}}"
      data:
          type: daily
      response_variable: weather_home_daily  

- sensor:
    - name: Weatherman Data Tag
      state: "{{ now().isoformat() }}"
      attributes:
          moon_phase: >
            {% set cond_moon = states('sensor.moon_phase') %}
            {% if cond_moon == 'new_moon' %}
...

          wm_cond_0: >
            {% set cond0 = weather_home_hourly['weather.home']['forecast'][0].condition %}
            {% if cond0 == 'partlycloudy' %}{% set cond0 = 'partly-cloudy' %}{% endif %}
            {% if cond0 == 'clear-night' %}{% set cond0 = 'night' %}{% endif %}
            {% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
            {% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
            {% set cond0_time = as_timestamp(weather_home_hourly['weather.home']['forecast'][0].datetime) %}
            {% if states('sun.sun') == 'above_horizon' and cond0_time > next_setting %}
                {% if cond0 == 'sunny' %} night {% elif cond0 == 'partly-cloudy' %} night-partly-cloudy {% else %} {{ cond0 }} {% endif %}
            {% elif states('sun.sun') == 'below_horizon' and cond0_time < next_rising %}
                {% if cond0 == 'sunny' %} night {% elif cond0 == 'partly-cloudy' %} night-partly-cloudy {% else %} {{ cond0 }} {% endif %}    
            {% else %}
                {{ cond0 }}
            {% endif %}

The issue is that the response variables are null when they hit the sensor: fields

I suspect it is some formatting issue - within configuration.yaml, I have the following

template: !include templates.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensors.yaml
shell_command: !include shell.yaml
rest_command: !include rest.yaml
emulated_hue: !include emulated_hue.yaml
recorder: !include recorder.yaml

is there some way I can fix this?

2 posts - 2 participants

Read full topic

Light State Change With Shell Commands

$
0
0

I’m trying to create a light that requires communicating to the Samsung SmartThings API. I’ve made a script that can turn it off, on and get the status. This all works except when you turn it on or off, the state doesn’t get updated until the binary_sensor scan_interval is triggered. This means the light toggle button can sometimes toggle back and forth while the binary sensor determines the state of the light. I’m thinking if the state of the light can be updated when it’s turned off or on rather than relying on the sensor would make more sense. However, I’m not able to figure out if that’s possible or if there is a better solution.

relevant configuration.yaml section:

shell_command:
    oven_on: bash /config/scripts/samsung_oven_light.sh on
    oven_off: bash /config/scripts/samsung_oven_light.sh off
    oven_status: bash /config/scripts/samsung_oven_light.sh status

light:
  - platform: template
    lights:
      oven_light:
        unique_id: samsung_oven_light
        friendly_name: "Oven Light"
        value_template: "{{ is_state('binary_sensor.oven_light_state', 'on')}}"
        turn_on:
          service: shell_command.oven_on
        turn_off:
          service: shell_command.oven_off
        icon_template:
            mdi:lightbulb

command_line:
  binary_sensor:
    command: "bash /config/scripts/samsung_oven_light.sh status"
    command_timeout: 10
    name: "Oven Light State Sensor"
    payload_on: "high"
    payload_off: "off"
    unique_id: oven_light_state
    scan_interval: 5
    device_class: light

1 post - 1 participant

Read full topic

Z-Wave network lost nodes after upgrade; downgrade did not restore

$
0
0

About an hour ago, I upgraded from Z-Wave JS UI 3.8.4 to 3.8.5. Immediately afterwards, I noticed that none of my devices allowed me to control them any more. Suspecing a bad upgrade, I downgraded to 3.8.4 but it still didn’t restore access. I did a hard power down of my Proxmox host which holds my HAOS image and brought it online, but this is the best it gets to now. Any ideas?

1 post - 1 participant

Read full topic

Chromecast control from home assistant without internet?

$
0
0

I am using Node Red and the cast v2 node to initiate music play on a samsung sound bar. Works fine when the internet is connected, but for some reason, the Samsung sound bar and a Nest Audio device are unavailable when the internet is out.

Is this normal behaviour? Any way around this? Can i use any method to get my local jellyfin music playing on my local chromecast devices without it connecting to the internet first?

Thanks for any help and ideas

2 posts - 2 participants

Read full topic

RPi4 Stuck in U-Boot Loop

$
0
0

Hi guys,

During hurricane Beryl, the power in our house went off/on about 5-6 times before finally going out for over a day. After the power came back on, I noticed that HASS wasn’t working, and I couldn’t connect. I went to my Orbi router to make sure the IP hadn’t changed (didn’t get a chance to make it static), and noticed that it was not connected.

Connected the RPi4 to my monitor and noticed that it was in a “U-Boot Loop” (that’s why I’m calling it) where it looks like it wants to boot up, but doesn’t and just starts again over and over. I’ve been using this setup for a couple of years, with no issues up until now

Looking for some suggestions here if you guys can help, much appreciated!

7 posts - 2 participants

Read full topic

Can’t remote access with Duckdns all of the sudden

$
0
0

Hi all, I previously set up remote access with Duckdns over 3 years ago and everything was fine. Then all of the sudden when I traveled recently, I realized I could not access it remotely.

I can still access using localIP:8123

But times out when I use https://mydomain.duckdns.org

DuckDns add on is up to date and my account on Duckdns.org seems to be all in order.

I also recently changed my router to Eero and did the port forwarding to 8123 but don’t know how to verify if it is working correctly.

Also my configuration.yaml file shows this ::

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

http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem

Is this correct or is there something missing ?

Anybody can help me with debugging this issue ?

6 posts - 2 participants

Read full topic


How does Aqara P1 sensor occupancy function work?

$
0
0

I have looked at the Apara site and YT; maybe I missed something. I do not understand how occupancy works.

I have HA Green and the blue SkyConnect module for my Zigbee. I am using it to connect my Aqara P1 motion sensors because the Aqara Hub M2 will not pickup LUX in HA; only motion is what I see using the hub in HA.

With the SkyConnect, I now see:

Motion (always been there)
LUX
Occupancy

The last two are new to me. What I do not understand with occupancy…

  1. In HA, those options are shown under Zigbee. Occupancy times out at an unknown time before it shows “clear.” What is that time? it does not follow the motion timeout setting

  2. Can it be changed? The only time I can change it is the delay in motion detection.

Newbie at this but I would like to use occupancy in my kitchen:
If kitchen lights come on after midnight
If Aqara kitchen P1 sees no occupancy (detection), clear, then turn off the lights

Again, I do know the delay in occupancy. Will it keep checking until it becomes “clear” to turn off the lights if still in the kitchen or a 1-time check?

1 post - 1 participant

Read full topic

Cod.m ZigBee Coordinator - LAN - Z2M

$
0
0

Hi,

does anyone have the above running under HA? i want to replace SonoffDongle 3 with z2m.

Is it possible to run 2 coordinators at the same time? Will the mqtt entities be retained after a coordinator switch?
The coordinator runs as zstack not es ezsp, how to change it

cod.mSupport is not very helpful and only sends me links to the videos
The error before I have undone everything

zh:ezsp:ezsp: Connection attempt 2 error: Error: connect ECONNREFUSED 172.30.32.1:9999

no idea where the 127.30.32.1:9999 came from

LOG:

[CODE][13:17:06] INFO: Preparing to start…

[13:17:07] INFO: Socat not enabled

[13:17:09] INFO: Starting Zigbee2MQTT…

Starting Zigbee2MQTT without watchdog.

[2024-07-09 13:17:17] info: z2m: Logging to console, file (filename: log.log)

[2024-07-09 13:17:17] info: z2m: Starting Zigbee2MQTT version 1.39.0 (commit #unknown)

[2024-07-09 13:17:17] info: z2m: Starting zigbee-herdsman (0.50.1)

[2024-07-09 13:17:17] warning: zh:ezsp: Deprecated driver ‘ezsp’ currently in use, ‘ember’ will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see Improved Ember (EZSP) driver (experimental) · Koenkk/zigbee2mqtt · Discussion #21462 · GitHub

[2024-07-09 13:17:18] error: zh:ezsp:ezsp: Connection attempt 1 error: Error: connect ECONNREFUSED 172.30.32.1:9999

at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)

[2024-07-09 13:17:23] error: zh:ezsp:ezsp: Connection attempt 2 error: Error: connect ECONNREFUSED 172.30.32.1:9999

at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)

[2024-07-09 13:17:33] error: zh:ezsp:ezsp: Connection attempt 3 error: Error: connect ECONNREFUSED 172.30.32.1:9999

at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)[/CODE]

Config/Yaml

[CODE]data_path: /config/zigbee2mqtt

socat:

enabled: false

master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777

slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5

options: “-d -d”

log: false

mqtt:

base_topic: zigbee2mqtt

user: mqtt

password: mqttxxxx

server: mqtt://192.168.1.155:1883

serial:

port: tcp://192.168.1.150:6638

baudrate: 115200

advanced:

transmit_power: 20[/CODE]

2 posts - 2 participants

Read full topic

Question: Looking for ideas for a CO2 gas bottle timer

$
0
0

Hey guys
Not sure if this is the right topic to ask my question, so apologies if it ain’t.
Basically, because I did not find anything similiar already existing, I would like to ask for ideas to the following task:

I have set up a Mosqito trap from Biogents which is using CO2 from a 10kg gas bottle as an attractant. It works very nice but unfortunately CO2 is not really cheap.
That being said I currently have no possibility to take control about CO2 output being on or off. For example on nightime there is a timeframe about 6 hours where mosquitos are not active and for that timeframe I would like to disable the CO2 output.

The mosquito trap seller does indeed provide this CO2 timer device, but there is no possibility to take control over it via Home Assistant.
Any ideas from the HA community for a Home Assistant compatible CO2 timer solution?
I don’t think this would be too complicated but I have no experience in the hardware (e.g. valve and stuff) I need. Maybe there do already exist for example ZigBee solutions I am not aware of?
Even DIY solutions (e.g. ESP Home) are welcome!

Thank you very much in advance!

1 post - 1 participant

Read full topic

Graph sensors don't work

$
0
0

Hi, I have Home Assistant OS in virtual machines. I noticed, maybe after an update, that my sensors no longer show the history with the graph! (The same if I “show more”)
In configuration.yaml I have:
sensor: !include_dir_merge_list sensors/

The sensors folder contains several files. The sensors described in the files are correctly recognized, the configuration is correct and does not give syntax errors.

I have no space problems (24% used).
I show you some exemples:
image

image

image

The values written in the upper right corner are correct and update! But the graph is wrong.
I don’t remember if the problem started when I split the sensor.yaml file into multiple files and used a folder (which I included in configuration.yaml) or with an update.

Thank you

2 posts - 2 participants

Read full topic

Home Assistant has stopped recording Histories

$
0
0

Good morning,

I’ve found that Home Assistant has stopped recording the history of all devices after 3rd July. I noticed at first that my Energy Dashboard was not retaining any data, then watched as History graphs show no history but started to record data while I was observing them. If then navigate away from the dashboard and then return there is no data recorded.

I’m attempting to restore a backup from last week, prior to updating to 2024.7 but has anyone else encountered this?

I’m running a Home Assistant Yellow with an SSD. The SSD is working, that’s where the backups are stored, so I’m not sure what’s happened. I’ve not changed anything in Home Assistant, other than updating to 2024.7.

Thanks,

Tom

3 posts - 2 participants

Read full topic

Viewing all 106686 articles
Browse latest View live


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