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

HVAC Working Overtime Sensor - Window or Door Left Open

$
0
0

I saw a Reddit post with a screenshot of an alert from a Nest Thermostat saying, “Your heating system failed to heat your home: Based on your local weather and recent heating system performance, your home should’ve become warmer while the heat was on {date/time} to {date/time}. Instead, the temperature decreased by 5 degrees F…Did you leave a window or door open?..”

I though this was a fantastic idea: to create a sensor that would detect if a window or door may be left open based on the observation that the thermostat was working overtime (cycling more than would be expected for the delta between the outdoor temperature and the indoor thermostat set point) rather than putting contact sensors on every door or window in the house.

Thinking how to build this sensor, I discovered it was possible to track how long the thermostat was heating today. I also discovered that it was possible to track the ratio of heating time to idle time with the history stats sensor platform. Thus, one could create a sensor to track the ratio of heating time over the last two hours.

To build an overtime sensor, one would need to know the typical heating time ratio relative to the delta temperature (the difference between the thermostat set point and the outdoor temperature) and compare this against the current heating time ratio to know when the window was open for the same delta temperature. It is normal for the thermostat to cycle more when the difference between the thermostat set point and the outdoor temperature is greater, but I want to know when this becomes abnormal.

Has anyone built something similar? Any ideas on how to log the normal behavior or calculate the abnormal behavior based on a trend?

I don’t think the correct solution is seeing when the current temperature remains lower than the thermostat set point for a protracted duration of time while heating. This would only detect when the furnace was not able to keep up with the thermal loss from an open window. Instead, I want to detect when the thermostat efficiency is markedly decreased, even if the furnace is able to reach the set point.

1 post - 1 participant

Read full topic


Google assistant integration 404 error

Send temperature via http request

$
0
0

Hi everyone,

I have several Shelly TRV at home.
Those TRV’s measured environment temperature can be overwritten (as it is infuenced by the radiator) via a simple http request.
You simply visit http://192.168.1.156/ext_t?temp=measured_temperature and write a number in place of “measured_temperature”.
I have tried to write an automation that sends this http request automatically every time the temperature of the sensor sensor.livingroom_average_temperature changes.
I have tried to achieve this by doing the following:

configuration.yaml

rest_command:
  send_temperature_request:
    url: http://192.168.1.156/ext_t?temp={{ temp }}

automations.yaml

automation:
  - alias: Send Temperature via HTTP Request
    trigger:
      - platform: state
        entity_id: sensor.livingroom_average_temperature
    action:
      - service: rest_command.send_temperature_request
        data_template:
          temp: "{{ states('sensor.livingroom_average_temperature') }}"

However it seems not to work as the service rest_command.send_temperature_request seems to not exist. I have obviously tried to reload the yaml configuration but the problem persists.

Could anyone give me some direction?

Many thanks!

1 post - 1 participant

Read full topic

Zigbee Frustration

$
0
0

Hi All
I have HA running on a small form factor PC running in a VM (VMWare).
It has a Sonoff 3.0 Dongle Plus that was working fine.
In preparation to getting a load of new devices installed and programming my controls for IR panels I moved the PC to a new location in the house (It had been doing nothing for about 3 weeks).
After putting everything on I noticed all my Zigbee devices were disabled, checked the dongle and the aerial fell off as soon as I touched it so figured that must be it. Ordered another dongle, this one refused to go into bootloader mode so I could upgrade the firmware, it gets picked up in device manager (In Ports rather than other devices though). I tried Python method to update firmware but did not work, I feel it was struggling to find the dongle even with the correct comm port number.
So, next I tried creating a new fresh VM, still not being seen in HA. Decided it must be faulty and ordered another one from a different supplier. This arrived but is doing the same thing and I am no further forward.
To get in bootloader I hold the boot button then put it in USB port holding the button, even after 20 seconds the LED does not turn white.

I am desperate to get this back up and running, any ideas where I am going wrong?

3 posts - 2 participants

Read full topic

Switch on/off Tapo Camera Privacy

$
0
0

Hi all,
I just added the Tapo integration via HACS to my Home Assistant and everything worked quite fine.
I am able to switch on/off the Privacy Mode of my new security camera (Tapo C225) manually, but I cant figure out how to change the state with an automation.

The Privacy setting is available as “switch.home_privacy” but I cant figure out how to trigger this in the action section in the automation screen. Can anyone help here?
(Does not show up as a device)

Thanks for any help!

3 posts - 2 participants

Read full topic

myStrom WiFi Switch

$
0
0

I have a MyStrom Wifi Switch that I also got integrated.
I can query the values via the rest interface and the following code.

switch:
  - platform: mystrom
    host: <IP-ADRESS>
    name: myStrom

rest:
  - scan_interval: 1
    resource: <IP-ADRESS>
    method: GET
    sensor:
      - name: "myStrom power"
        value_template: '{{ value_json.power}}'
        unit_of_measurement: 'W'
        device_class: power
        state_class: measurement
      - name: "myStrom energy"
        value_template: '{{ value_json.Ws}}'
        unit_of_measurement: 'Ws'
        state_class: measurement
        device_class: power
      - name: "myStromPV temperature"
        value_template: '{{ value_json.temperature}}'
        unit_of_measurement: '°C'
        state_class: measurement

The problem is that I would like to have a variable in HomeAssitant that indicates the consumption in kWh. Unfortunately, the interface only gives the average consumption in Ws since the last query. Can someone write me a code that converts this.

Here is the link to the documentation of the interface myStrom

1 post - 1 participant

Read full topic

Continously increasing CPU Usage - how to find out why

$
0
0

I am observing a continously increasing CPU Usage of my HomeAssistant-System.

While it isn’t dramatic at the Moment, one could say as well that it increased by 100% within 6 Month :slight_smile:
And i really don’t know what causes that. So i want to find the culprit - but how can i do this?

I catch the CPU Usage (both % and load 5min) via the platform: systemmonitor . But i would need something more specific.

How can i tell which Addons, processes, Component increase in Usage?

2 posts - 2 participants

Read full topic

Sun positions and offsets in triggers

$
0
0

I’m still having issues about time platforms regarding sun.
there is sun and sensor.sun_xxx for sun related events.

My goal is to trigger an event one hour before solar noon.

The problem is how to implement and offset for noon because you can either time platform:

trigger:

  - platform: time
    at: sensor.sun_next_noon

Its there a way to add a delay in the at: line? f.e. sensor.sun_next_noon - 1200
Because it seems you have to convert sensor.sun:_next_noon to seconds, then use the offset and then back to string HH%MM%SS.

Platform: time, does not allow an offset, only a delay, but delay cannot be negative.

The alternative is to use sun platform:
trigger:

  - platform: sun
    event: sunset
    offset: "-04:00"

but events are only: sunrise, and sunset.

sun only has two events?

You look at the documentation of “sun”

and talks about dusk and dawn, but not noon.

There is this petition about integrating more states to sun, but its almost 4 years old:

1 post - 1 participant

Read full topic


Frigate + network storagedrive for data sometimes failes mounting

$
0
0

Hey guys,

I have frigate running as an addon which stores the recorded data on a networkdrive that is attached as /media/frigate/.
Works like a charm, most of the time.
Only just a couple of days ago the networkdrive failed to mount as /media/frigate which resulted in the addon storing the data locally on the main drive ha itself is on.
This again resulted in this drive filling up, its just too small to store cctv footage.

Anyone have an idea how I can prevent this in the future?

1 post - 1 participant

Read full topic

Zwave Add Hub Button

$
0
0

Why is there an ADD HUB button if you can only run 1 Z-Wave JS add-on? I would like to add a second zwave stick to remove some chatty sensors from my main stick. They are causing delays and sometimes stuff doesn’t work because of them.

1 post - 1 participant

Read full topic

SNMP Switch unable to get State

$
0
0

Hey,

I’ve been trying to set up a SNMP controlled relay using the snmp switch integration but, although I can control the relay I cannot get the state in the same switch.

So this is what I have for the switch:

switch:
  - platform: snmp
    name: 'Test Relay'
    version: "2c"
#    unique_id: 'test_relay_01'
    host: 192.168.1.180
    baseoid:   1.3.6.1.4.1.30586.46.0.8.0
    community: 'webrelay'
    payload_on: 1
    payload_off: 0
    command_payload_on: 1
    command_payload_off: 0
    vartype: OctetString

And this is how it shows
Screenshot 2023-10-11 202706
Again, the control works but not the state.

So I created a snmp sensor to check if I can get the state of the switch like this:

  - platform: snmp
    name: "Test Relay Status"
    host: 192.168.1.180
    version: "2c"
    community: 'webrelay'
    baseoid: 1.3.6.1.4.1.30586.46.0.8.0
    accept_errors: true

And this is what I get
image

So it seems to work, but how can I get the state in the snmp switch integration? Am I missing something?

HassOS + Core 2023.9.3

1 post - 1 participant

Read full topic

Merge Devices w/ Different Identifiers

$
0
0

So here is the problem description. I had an Airthings device that needed to be replaced (RMA). However, the new device of course has different identifiers such as serial number. HA has created new entities for this device, and retained the old entities with an error/warning message that the integration is not longer providing this device/entity. Now, I want to merge these devices… either a) add the new S/N as an identifier to the old entity or b) simply select both items in the entity list which are the same, and click a combine button… letting me decide which is the correct new entity. I noticed someone else had a similar issue depicted at Add ability to manually merge duplicate devices however, I do not know enough about the underpinnings of HA to start mucking with adding a custom identifier that is common to both devices and/or entities. So, definitely looking at some guidance, as I am sure many people have to RMA sensors and whatnot and want to see one single graph of lets say Radon level for the year… instead of 2 graphs (old device entity that is the dead unit, and new device entity that is the current unit).

1 post - 1 participant

Read full topic

Custom door ringtone... with a twist

$
0
0

OMG i love HA so much. Installed conventional door bell at 16V, new smart doorbell at 8V… No ring… Play media instead… just working fine. Thank you Home Assistant!

But i’m looking for a twist:
Ring doorbell (play media on Mini and Hub) but lower volume after 15 seconds… How can i configure such a thing?

Thanks for helping!
Sander

1 post - 1 participant

Read full topic

Advice for Homekit, Homebridge and Home Assistant

$
0
0

I wasn’t certain where the best place for this was - if this topic should be moved please let me know.

I’ve been dabbling with Home Assistant for awhile now but mostly just in a testing/dev kind of style. I’m ready to start making some things more permanent.

My goals include wanting the most flexibility to use just about any device - whether it is HomeKit native, or something else. I generally want to use the Home app on our iOS devices for basic control, but I want to leverage HA’s more robust automation, reporting, monitoring, etc. As an example - I’d use HA to monitor our energy usage/reporting - that wouldn’t need to be in the Home app.

But, I’d like to be able to turn a tv on/off from the Home app as well as my Denon receiver, etc. Right now, the Denon is controllable by HA but not by the Home app - so, I have to switch between the two apps (and the same is true for volume, source selection, etc.). Our TVs are LGs.

Based on my reading and studying this seems like a great use case to use HA as the aggregator behind the scenes and then use the Home App as the UI for most basic control situations.

What I’m unsure of at this point is what the best steps are since at the moment, I have a home and things set up in the Home app, and I have some things set up in Home Assistant. I’m also using Homebridge to control my garage door openers (older non-smart models with Security+ coding and I’m using the MyQ gateways and such to make them ‘smart.’) Given the latest issues with the MyQ integration in HA I want to get away from that type of cloud dependence and migrate to local control.

I have most of the typical devices - Ecobee, Apple TVs, Hue lights, etc.

So, I’m looking for thoughts/ideas/suggestions on how to start, or maybe restart? Do I blow away my Homekit Home setup as it is today, and dump Homebridge as well, and use the Homekit integrations in HA to consume all the devices and then expose them to the Home app and such?

I’ve done a lot of reading and video watching, but I’m just quite sure how to start.

1 post - 1 participant

Read full topic

Installing docker engine on HAOS?

$
0
0

Hi.

I’ve been trying to search for docs on how to install docker on HAOS which is running Alpine.

I wasn’t able to do so.

Is it possible?

1 post - 1 participant

Read full topic


We couldn't find any editable automations

$
0
0

Hi guys!

All of my automations disappeared from the User Interface for some reason. They are all in the automations.yaml file but dont show up in GUI and cant be edited there.

I tried removing everything from the automations.yaml file and created a new automation, same thing, its not shown in the list, but added to the yaml file.

Any idea whats wrong there?

2 posts - 2 participants

Read full topic

Off-Low-High HomeKit Light Workaround

$
0
0

Hey all,

I’m brand new to Home Assistant so I apologize in advance for any ignorance on my part. I’m looking for some direction on if what I’d like to do is possible. I have all my Cafe appliances added into Home Assistant. My exhaust hood has a light entity on it has a Off-Low-High settings. I’m trying to figure out if there is a way of getting that type of configuration into HomeKit. As far as I can tell Homekit doesn’t support that light type natively so wondering if there’s any workarounds either with using a dimmer light somehow or I also thought if I could possibly trick it into classifying it as a fan with with Low-High settings. Open to any ideas or suggestions.

1 post - 1 participant

Read full topic

How to access filesystem videos

$
0
0

So my reolink doorbell 2k cam is working fine in HA. and using the OEM app i setup the cam to record 60 seconds of video triggered by motion, to a samaba share. When motion is detected, i can watch the videos fine - when im on the local home network from any device

i have nginx running and can access HA remotely. how can i configure HA so that i can watch the videos.

the videos are stored at

//sambaserver/[year]/[month]/[day]/reolink-HHMM

so eg…

//sambaserver/2023/10/11/reolink-0800.mp4

1 post - 1 participant

Read full topic

How do I capture state information about a device?

$
0
0

So say I want to grab the current state of a device, make it simple let’s say a smart bulb, I want to get the current state of it, brightness, color, on/off, whatever, and put those parameters into variables so I can clone them to another smart bulb. How would I do that?

I was doing that sort of thing a lot in WebCoRE before it bit it. Now I want to do that same sort of thing in Home Assistant and now that I am starting to finally write automatons in HA I am lost as to how to do that in this platform. Took me a while to figure it out in WebCoRE, now it’s a whole new starting point.

1 post - 1 participant

Read full topic

Do shelly.click events work with Shelly Plus switches?

$
0
0

It’s all in the title. I’ve been using shelly.click events with Shelly 2.5 switches, but it seems like I need to go the url/webhook route for new Plus switches. Or I’m probably missing something.

Cheers, Richard

1 post - 1 participant

Read full topic

Viewing all 113610 articles
Browse latest View live


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