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

Automation to delete files from folder older than x days

$
0
0

@majkers wrote:

Hello,
I would like HA to record short video files when motion in my camera is detected. They will be stored somewhere in www folder let’s say www/camera_motion. I would like to automatically delete content of that folder when it is larger thant 500 MB. I know I might use folder sensor to know folder’s size but I don’t know how to delete files from it but only those which are older than x days. I assume I will need shell command or something. Can anyone please help me? Cheers

Posts: 1

Participants: 1

Read full topic


Fibaro HC3 integration

$
0
0

@pitp2 wrote:

Hi,

I use the Fibaro integration with an HC2 without any problem and thank you for this great integration.

Now I use the new HC3 from Fibaro but the integration doesn’t work anymore.

If you know or if the creator of the Fibaro integration reads me, I’ll appreciate his help and I could help to developp the new integration with HC3

Posts: 1

Participants: 1

Read full topic

Setup PIR sensor to Home Assistant (MQTT)

$
0
0

@amurka wrote:

Help connect the PIR sensor to Home assistant.
There is esp12 with tasmota firmware.
The PIR sensor is connected to the esp12 pin, in the tasmota settings it is defined as a “switch”. A relay is connected to the other esp12 pin (in the tasmota defined as “relay1”).
In esp12, the rule is configured - when the PIR sensor is triggered, turn on the relay, turn off when the movement ends.

Rule1 
on Switch1#state=1 do BackLog Power1 1; publish stat/%topic%/PIR1 ON endon
on Switch1#state=0 do BackLog Power1 0; Publish stat/%topic%/PIR1 OFF endon
Rule1 1

The Home assistant relay was found, displayed as switch.nodemcu_relay1, and controlled from the lovelace card.
I wanted to see the Home assistant state of the PIR sensor. I added in the configuration.yaml sensor:

binary_sensor:
  - platform: mqtt
    name: "PIR Sensor"
    state_topic: "stat/nodemcu/PIR1"
    availability_topic: "tele/nodemcu_125D7E/LWT"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    device_class: motion

The sensor appeared in the Home assistant, but its state is unavailable
What other settings need to be made so that this PIR sensor becomes active and can be used in automation?

Posts: 1

Participants: 1

Read full topic

Inital WLED questions (NodeMCU)

$
0
0

@c0revin wrote:

Hi guys,

just flashed a NodeMCU 3 with WLED 0.10.0 (firmware image for 4MB flash) and got it talking to MQTT. It seems to be publishing the “old school” topics as “g”, “c”, “v”, “status”. Actually I thought 0.10.0 already has the new MQTT topic structure as “color” and “switch”. Any comments on that?

Also there does not seem to be auto discovery support in WLED’s MQTT. Or am I overlooking something?

Posts: 1

Participants: 1

Read full topic

HACS at the bottom of all pages

Node-RED Function to get multiple arrays

$
0
0

@jimpower wrote:

I have a Node-RED flow that uses an API request for my cycle routes. It returns a huge array up to 2000 points each for elevation, speed & grade. I would like to pull these values out and plot them onto a ride graph. Is there a way of being able to do this with a loop function as the amount will differ per trip and I don’t fancy having to pull each one out individually.

Example

image

Path for first elevation payload.trip.track_points[0].e

Posts: 1

Participants: 1

Read full topic

Filling sensor from command line with multiple outputs

$
0
0

@jaymu wrote:

Hi everyone,

I’m trying to fill two sensors for reading the ink levels of my printer. I have a command I can run on a remote IP address. By using remote ssh, it’s possible to run this on my local Home Assistant docker with an automation. The output however is as follows:

Canon MG3600 series

Black:                                 100%
Color:                                 100%

Is there any way I can get the levels for black and color each into a separate sensor? I’ve been trying to get these numbers into a json or something, but I can’t seem to get my head wrapped around it.

I know there’s an ink custom component, but you need the ink application installed on your local HA installation and that’s not possible, becuase of the docker instance I’m using.

Any ideas how I can accomplish this?

Posts: 2

Participants: 2

Read full topic

HA is very unstable

$
0
0

@oliwa wrote:

I have been using HA on a Raspberry Pi for close to two years. It was solid as a rock for about 6 months where it turns out my memory card died. Ok, bought a new card, restored snapshot and everything was good for another 6 months. Not a big deal as this wasn’t a HA issue. Then early this year, February maybe, it stopped working again. Thought it was the memory card so I replaced it. Then it stopped working the next day so this wasn’t a memory card issue. Power cycled the Pi and it was fine for 3 days then it stopped working. Repeat this with varying durations. Then the Pi went 30 days with no issues so I thought there was a bug in one of the versions and it was fixed. Well yesterday morning it stopped working so I power cycled the Pi and then this morning the same thing. This is getting very annoying and I’d like to fix this.

By not working I mean I can’t access the web site nor ssh into the Pi.

Posts: 1

Participants: 1

Read full topic


Updating to 110 and the Config Check add-on

$
0
0

@klogg wrote:

UPDATE BEFORE POSTING:
I ran Config Check again and it went to the end (with no error found! - yay!) but the below comments about the version discrepancy and spelling mistakes are still valid.

It also doesn’t explain why it failed the first time although I notice that those two ‘missing’ files seem to appear and disappear ‘at random’ so maybe the add-on needs to account for this?

Anyway, I’m all good, I just thought this info might be interesting to someone?

(And yes, I could create an issue on GitHub, and will if these are genuine issues)


ORIGINAL POST:
So, I decided today was the day.
v110 seems to have had more problems than normal but at some stage I have to bite the bullet.

I ran the Config Check but it seems to fail because I have two missing files…

Note two extra things:

  • The spelling mistakes in the log, or does ‘stat’ mean something in Linux-speak?
cp: can't stat '/config/home-assistant_v2.db-wal': No such file or directory
cp: can't stat '/config/home-assistant_v2.db-shm': No such file or directory
  • The discrepancy between the installed version, 3.3.0 and version reported in the log 3.2.9)

image
starting version 3.2.9

Any idea what I should do?
Upgrade to 110 or not?


Full log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
starting version 3.2.9
[12:20:59] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[12:20:59] INFO: Setup udev devices

[12:20:59] INFO: Don't worry, this temporary installation is not overwriting your current one.
[12:20:59] INFO: Installing Home Assistant: latest...
[12:20:59] INFO: Please be patient, this might take a few minutes...
[12:21:21] INFO: Installed Home Assistant 0.110.3
[12:21:21] INFO: Making a copy of your configuration for checking...
cp: can't stat '/config/home-assistant_v2.db-wal': No such file or directory
cp: can't stat '/config/home-assistant_v2.db-shm': No such file or directory
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Posts: 1

Participants: 1

Read full topic

How to control volume on Windows machine from Home Assistant?

$
0
0

@bessarabov wrote:

I need to control system volume on Windows computer.

I have tried several things but nothing works.

IOTLink this software is working on windows machine. It sends data to mqtt server and listen to command via mqtt. It works fine, I can reboot windows computer from Home Assistant and I get a lot of metrics about Windows to Home Assistant (cpu, memory, disk, etc). In the docs there is information that is should send info about volume to mqtt and it that it is possible to change volume via mqtt commands, but in my case it does not work. There is no topics about volume in mqtt and publishing data to volume control topics does nothing.

Win10As) this software is also working on windows machine and is working with mqtt server. But I wasn’t able to make it work with my mqtt server. “Test connection” works, but no data appear in mqtt (there is an open issue with this problem at GitHub https://github.com/KjetilSv/Win10As/issues/27 )

eventghost I haven’t found how to setup this soft to work with mqtt.

Maybe you have a working solution or some recommendations how can I control volume on Windows machine from HA.

Posts: 1

Participants: 1

Read full topic

Sonoff bridge with Tasmota how to use a fob

$
0
0

@samtwilliams wrote:

Hi All,

I have a few 433 fobs that I want to use to control things on home assistant via 433 to my bridge.

The issue I have is that the fobs learn codes by duplicating via listening (like most on the market)

Is there a way to program these to a code of my choice?

I understand that sonoff bridge can transmit codes but again you have to learn one first?

Anyone have any thoughts how I can achieve this?

Posts: 1

Participants: 1

Read full topic

Hooked up Open Zwave - Lost Nearly all Functionality

$
0
0

@bigverm23 wrote:

Ok so I configured the new openzwave integration, which was seemingly easy enough.

But didnt realize I was basically going to lose full configuration control over my devices.

Example, I have an Aeotec multisensor 6, and besides it detecting motion and immediately clearing motion after 5 seconds, it doesnt seem to report any updates for lux or anything else…am I missing something or is this all the beta is capable of currently?

Posts: 1

Participants: 1

Read full topic

Modbus and slave connections

$
0
0

@ZkiiFreak wrote:

Hi
I’ve got a TCP Modbus sensor configured which goes to my ventilation system.
The integration works fine at start up of HA. After a while it starts throwing warnings “Updating modbus sensor took longer than the scheduled update interval”.
I deducted to issue to the fact that when I connected to my ventilation system from my laptop using qModMaster the issue arose. Makes kind of sense that you can only have one connection at a time. BUT, when I disconnect from the ventilation system from the laptop and shut down qModMaster the warning in HA remains multiple times after that fact. Actually it never seems to stop. (Only stops and works fine when I reboot HA docker container)

Where’s the culprit? In HA’s implementation or the ventilation units implementation?

Hope someone can shed some light on the subject.
Thanks in advance

Posts: 1

Participants: 1

Read full topic

MQTT Devices Double Named

$
0
0

@JamesDenby wrote:

I have recently noticed that all my MQTT switches (Sonoff S31 with Tasmota) now have double names. For example, within Lovelace a switch was named Guest_1. After the 110 upgrade the name that is shown is Guest_1 Guest_1. I can change them all with custom friendly names, but they were working fine before.

Has anyone else noticed this or is this just me? Any advice or guidance on how to correct this is appreciated

Posts: 1

Participants: 1

Read full topic

Help requested Life360 device conflict

$
0
0

@twofieros wrote:

I’m new to home assistant. I’ve done a fresh install added all my devices, mobile app, etc. When I install life360 I get a uniqueID error will all the phones. I’ve deleted the home assistant mobile app, deleted the mobile app integration, deleted life360 integration, deleted all known devices, restarted the HA server, reloaded the life 360 integration and I still have the uniqueID error. I’m unable to edit or rename anything flagged with the error. How can I either totally remove my mobile device from HA or how can I change the name of the devices created through life360? I’ve searched for 4 days trying to figure this out and just cannot do it. I hope someone here can point me in the right direction.

Posts: 1

Participants: 1

Read full topic


Zigbee2Mqtt - Ikea blinds

$
0
0

@Josh_Bruce wrote:

Afternoon all. Sorry I know this probably isn’t the right forum for this post, but thought someone on here may know the answer.

I am trying to pair my Ikea smart blinds to a Zigbee sniffer. I am reading the guidelines here:

Can anyone confirm if they have done this before as I am a little confused. If I put blinds into pairing mode holding both buttons will it then loose connection to the repeater and button? I dont want this to happen as I dont have the ikea gateway. Once in pairing mode, will it automatically connect to Zigbee sniffer?

Thanks

Posts: 1

Participants: 1

Read full topic

Automation: Checking the temperature at one hour and sending a telegram msg

$
0
0

@malpaso68 wrote:

Hello,
Can you help me? I am doing something wrong.
I try to check the temperature (sensor aqara) at one hour, and if the result is less than 20 degrees, it should send a msg telegram (test).

It currently sends the message at the scheduled time, regardless of whether it is above or below 20 degrees.

- id: temp_dormitorio
  alias: Comprobar Temperatura DORMITORIO
  description: Si la temperatura del dormitorio es inferior a 20 grados, envía msg
    por Telegram
  trigger:
   - platform: numeric_state
     entity_id: sensor.temperature_thpdormitorio
     below: 20
   - platform: time
     at: '14:23:00'
  condition: []
  action:
   - service: telegram_bot.send_message
     data:
       message: Prueba

Posts: 2

Participants: 2

Read full topic

Change group assignment deconz

$
0
0

@andyjacobs wrote:

I’ve got an outlet that I’d like to move from one group to another in deConz but I can’t work out how to do it. Is it possible or am I going to have to remove it and re-add it?

Posts: 1

Participants: 1

Read full topic

ESPHome sensors and misbehaving battery level icons

$
0
0

@klogg wrote:

I have an ESPHome sensor set exactly as the docs show in the picture at the bottom of this post but my icon does not represent the battery level.

image
I have tried customize

homeassistant:
  customize:
    sensor.hall_battery_level:
      device_class: battery

but because ESPHome adds an icon attribute it overrides the device_class.

Any ideas anyone on how to rectify this or is it some kind of error in ESPHome?


ESPHome docs implying that it should work

Posts: 2

Participants: 2

Read full topic

Command line JSON to sensor

$
0
0

@larskuffer wrote:

Hi,
so I’m trying to add several sensors that I’m pulling out with a command.

so far I’m trying to add a sensor in the configuration.yaml file like this:

sensor:
  - platform: command_line
    command: "ssh root@192.168.1.213 'python /root/bacnet.py'"
    scan_interval: 300
    name: regulux

Here’s my result from the command:

{
    "a001allgemein_f01uberspannungsschutz": {
        "id": "Lamp_16845036",
        "name": "F01 u\u0308berspannungsschutz",
        "type": "O",
        "unit": "",
        "value": "2"
    },
    "a001allgemein_intiwgemessenetaupunktt": {
        "id": "16845098",
        "name": "INT IW gemessene Taupunkt T\u00b0",
        "type": "P",
        "unit": "\u00b0C",
        "value": "28.5"
    },
    "a001allgemein_quittierenaktiv": {
        "id": "Lamp_16844948",
        "name": "Quittieren aktiv",
        "type": "O",
        "unit": "",
        "value": "0"
    },
    "hk01nord_west_wand_b01iwvorlauft": {
        "id": "16846027",
        "name": "B01 IW Vorlauf T\u00b0",
        "type": "P",
        "unit": "\u00b0C",
        "value": "22.2"
    }
}

Is there a way to add all those sensors at once without having to add them one by one?

thanks for any help
Lars

Posts: 2

Participants: 2

Read full topic

Viewing all 106253 articles
Browse latest View live


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