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

Where are Insteon Device Overrides stored?

$
0
0

Another way looking at my insteon. I presume that my insteon device is on my PLM as it was working last time i had Indigo fired uo. I created the over ride , it says that it has success and the Insteon Integration give me an option to remove it with the correct device number… Where does HA store this information, I am running Home Assistant 2022.4.7. on a Linuix Guess on a Mac OS Host

1 post - 1 participant

Read full topic


Count items on the shopping list

$
0
0

Hi all,

Hoping I am overlooking something here, but I’ve checked through the developer area, but can’t find anything.
I wanting to know if there is a way to count the number of uncheck items on the Shopping List?

I have an automation that when at a Supermarket a notification is fired off to the person there if they want to check the shopping list, but ideally would like this only if there are actually items on the list, and do it as a prompt.

Thanks.

1 post - 1 participant

Read full topic

Template Cover not working. Need advice

$
0
0

I am needing help. I have a old garage door(dumb opener). I put a Ecolink tilt sensor on it so I can tell if it is open or closed. I then purchased a sonoff momentary relay to act as the wall push button and control the opener. I can open and close the door remotely, and see the status of the tilt sensor. But they are 2 different cards/buttons on my dashboard.

I would like to combine the 2 into one button. I followed the guide here but am not able to get it to work.

Here is the code I am using.

cover:
  - platform: template
    covers:
      garage_door:
        device_class: garage
        friendly_name: "Back Garage Door"
        position_template: "{{ states('binary_sensor.tilt_sensor_back_garage') }}"
        open_cover:
          - condition: state
            entity_id: binary_sensor.tilt_sensor_back_garage
            state: "off"
          - service: switch.turn_on
            target:
              entity_id: switch.sonoff_1001090342
        close_cover:
          - condition: state
            entity_id: binary_sensor.tilt_sensor_back_garage
            state: "on"
          - service: switch.turn_off
            target:
              entity_id: switch.sonoff_1001090342
        stop_cover:
          service: switch.turn_off
          target:
            entity_id: switch.sonoff_1001090342
        icon_template: >-
          {% if states('binary_sensor.tilt_sensor_back_garage')|float > 0 %}
            mdi:garage-open
          {% else %}
            mdi:garage
          {% endif %}

Here are the errors I get:

1st error:
Logger: homeassistant.helpers.template
Source: helpers/template.py:1286
First occurred: 9:40:14 AM (9 occurrences)
Last logged: 3:33:34 PM

Template warning: ‘float’ got invalid input ‘off’ when rendering template ‘{% if states(‘binary_sensor.tilt_sensor_back_garage’)|float > 0 %} mdi:garage-open {% else %} mdi:garage {% endif %}’ but no default was specified. Currently ‘float’ will return ‘0’, however this template will fail to render in Home Assistant core 2022.1
Template warning: ‘float’ got invalid input ‘on’ when rendering template ‘{% if states(‘binary_sensor.tilt_sensor_back_garage’)|float > 0 %} mdi:garage-open {% else %} mdi:garage {% endif %}’ but no default was specified. Currently ‘float’ will return ‘0’, however this template will fail to render in Home Assistant core 2022.1

Logger: homeassistant.components.template.cover
Source: components/template/cover.py:244
Integration: Template (documentation, issues)
First occurred: 9:33:16 AM (10 occurrences)
Last logged: 3:33:34 PM

2nd error:
could not convert string to float: ‘off’
could not convert string to float: ‘on’

Any help would be great.

Thanks

1 post - 1 participant

Read full topic

Changing light color in Aqara M1 Hub

$
0
0

I integrated an aqara M1 hub into home assistant using homekit controller. It show in integrations as one device and four entities. My question is how do I change the color of the light with a state change in another entity. I can change the color with a card on the desktop, but I would like to automate the change. My idea is to turn the light green when alarm panel is armed, and red when triggered. I do not even know where to begin.

1 post - 1 participant

Read full topic

Sense Home Energy Monitor Integration with Solar Option

$
0
0

I am very new to Home Assistant, so I apologize for the “newbie” question in advance.

I have HA running on a Raspberry Pi and have integrated many systems (I am a refugee from Insteon world). My Sense Home Energy Monitor (put in a few years ago) was detected and came in fine. But, this week I added the Sense Solar option. I have the Sense system working fine with Solar. I have one (1) Sense device in HA and 112 entities. On the “Devices” tab, I have “+8 Entities not shown” and most of those have to do with the Solar (e.g. sensor.daily_solar_powered_percentage, etc.).

My questiona are:

  • Do I have to do anything to get additional entities for solar to be available?
  • Should I just delete the Sense device and reconfigure the integration from scratch?

Under “Entities” these devices show as “Disabled” but again, being a newbie I am not sure how to enable them.

Any help is most appreciated!
DZ

1 post - 1 participant

Read full topic

Need help triggering an automation when a timestamp is X days old

$
0
0

Hello all,

I am trying to get a low-battery warning for my various Insteon Leak sensors, which talk to HA through MQTT. In addition to wet/dry, they each connect daily for a ‘heartbeat’. This shows up in HA as a timestamp entity. I pulled one battery out and sure enough, the timestamp of that sensor’s heartbeat still shows the last day it was successful. So, I need an automation that notifies me when any of those heartbeat sensors’ entities states gets to be more than 2 days ago. But it’s not formatted nicely, so I am stuck.

Right now, the State of the Entity i’m playing with says this “2022-04-22T22:48:32+00:00”.

Can anyone help me make an automation that constantly monitors those entities and fires whenever that timestamp strays further than 2 days from current time?

8 posts - 4 participants

Read full topic

Send MQTT payload from IoT Link to HA via Windows CMD

$
0
0

I’m using IoT Link to send HA status messages, ie. SessionUnlock, etc. The problem I’m running into is when I first boot into Windows, the VM hassio is installed on is not running yet, hence, HA is not active to receive the payload from IoT Link.

Best thing I can think of is to use Windows Task Manager to send an appropriate payload to HA in X mins. However, I cannot find any instruction on how to send it via BAT file, or similar. Suggestions on how to do that, or a completely different way of tackling this?

2 posts - 2 participants

Read full topic

ZHA fails to setup

$
0
0

I’ve had intermittent issues with ZHA using a ConBee II stick but it was working fine until I just updated Core from 2022.4.6 to 2022.4.7

After a restart, none of my Zigbee devices were available. Okay, did the usual - reboot host then shutdown host and reseated USB…nothing.

I had considered a move to Zigbee2MQTT last time this happened so I disabled ZHA, installed Zigbee2MQTT and, once I figured out the config, actually got that up and running. But I think I need ZHA up to be able to unpair devices so I uninstalled Zigbee2MQTT and have restarted HA multiple times and keep getting the same message in Configuration - Settings: Zigbee Failed to Setup

I tried one more thing - replacing the Zigbee.db file with one from January just in case but that didn’t help either.

Any suggestions on getting it to work?

Log:
Logger: homeassistant.config_entries
Source: components/zha/core/gateway.py:182
First occurred: 6:45:57 PM (1 occurrences)
Last logged: 6:45:57 PM

Error setting up entry Zigbee for zha
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 335, in async_setup
result = await component.async_setup_entry(hass, self)
File “/usr/src/homeassistant/homeassistant/components/zha/init.py”, line 102, in async_setup_entry
await zha_gateway.async_initialize()
File “/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py”, line 182, in async_initialize
self.application_controller = await app_controller_cls.new(
File “/usr/local/lib/python3.9/site-packages/zigpy/application.py”, line 69, in new
await app.startup(auto_form)
File “/usr/local/lib/python3.9/site-packages/zigpy_deconz/zigbee/application.py”, line 81, in startup
await self.form_network()
File “/usr/local/lib/python3.9/site-packages/zigpy_deconz/zigbee/application.py”, line 199, in form_network
raise Exception(“Could not form network.”)
Exception: Could not form network.

1 post - 1 participant

Read full topic


Samba 9.6 Upgrade Killed Samba

$
0
0

Just upgraded to Samba 9.6, unfortunately. Now it no longer works.

Seeing this log file error:

interpret_interface: Can't find address for wlp1s0
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0

Nothing else changed on my configuration. Running Supervised on a NUC.

Config for Samba:

allow_hosts:
  - 10.0.0.0/8
  - 172.16.0.0/12
  - 192.168.0.0/16
  - fe80::/10
compatibility_mode: false
password: *pass*
username: *user*
veto_files:
  - ._*
  - .DS_Store
  - Thumbs.db
  - icon?
  - .Trashes
workgroup: MSHOME

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] samba.sh: executing... 
[18:02:25] INFO: Hostname: xxx-nuc
[18:02:25] INFO: Interfaces: wlp1s0 lo 
No builtin backend found, trying to load plugin
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
account_policy_get: tdb_fetch_uint32_t failed for type 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 10 (refuse machine password change), returning 0
Added user *user*.
[cont-init.d] samba.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
nmbd version 4.13.17 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Registered MSG_REQ_POOL_USAGE
smbd version 4.13.17 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
Processing section "[media]"
interpret_interface: Can't find address for wlp1s0
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
daemon_status: daemon 'nmbd' : No local IPv4 non-loopback interfaces available, waiting for interface ...
NOTE: NetBIOS name resolution is not supported for Internet Protocol Version 6 (IPv6).
interpret_interface: Can't find address for wlp1s0
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
INFO: Profiling support unavailable in this build.
Registered MSG_REQ_POOL_USAGE
No builtin backend found, trying to load plugin
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_POOL_USAGE
daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
waiting for connections
interpret_interface: Can't find address for wlp1s0
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0

1 post - 1 participant

Read full topic

Delay not working accurately

$
0
0

Hi,

I made automation based on zone and tracker device, when tracker_device leave the zone, automation wait 20min and make check if tracker_device still out of the zone then turn off AC,

The problem is delay not work as it should be, it’s delay random period of time instead of 15min !!


1 post - 1 participant

Read full topic

Energy skyrocketed after update

$
0
0

Hello, yesterday I updated from 2021.12.x to 2022.4.7. My energy dashboard has skyrocketed as shown below:


You can see where the update happened

For reference here is the day before that is “normal”:

I use Iotawatt, the numbers through their directly are normal. Not sure what to check within HA to try to find the problem/resolve it.

1 post - 1 participant

Read full topic

Can I change a binary sensor to report as open/closed as opposed to on/off?

$
0
0

Rather than showing me OFF, I would like it to say CLOSED.

Likewise ON, I want it to show OPEN. I could have sworn this ability was added a recent update but I cant find how to do it.

1 post - 1 participant

Read full topic

Tileboard - How to get started?

$
0
0

I installed Tileboard and can’t find the /www folder anywhere. All the documentation I can find says it’s under the config folder but it’s not there for me.

Using HASS OS.

2 posts - 2 participants

Read full topic

Starting a Script Sequence With A For Loop

$
0
0

I have a script to control the LED bar on Inovelli switches, dimmers, and combo fan / light dimmers. At the moment I have to call it separately for each type of device (switches, dimmers, the fan portion of the combo device, and the light portion of the combo device). Goal: re-write the script so it can determine the device type of each entity and can be called once with mixed entity types. Ultimately, I’d like to call the script with an area and use area_entities(). I can’t assume all entities are devices of the same model and the parameters in Z-Wave JS are different for each model.

Here’s a simplified version of the script:

mode: parallel
max: 10

fields:
  entity:
    name: Entity
    description: The light.* entity for the LED we're setting.  Can be a comma separated list.
    required: yes
    example: light.office, light.guest_room
    selector:
      entity:
        integration: zwave_js
        domain:
          - light
          - fan
        multiple: true

  model:
    name: Model
    description: What type of device is this?
    required: yes
    example: Dimmer
    selector: 
      select:
        options:
          - Dimmer
          - Switch
          - Combo_Light
          - Combo_Fan

  LEDcolor:
    name: LED Color (non-effect)
    description: Sets the color of the LED indicating brightness levels
    required: no
    example: Blue
    selector:
      select:
        options:
          - "Off"
          - Red
          - Green
          - Blue

  parameters:
    "dimmer_effect_bulk": 16
    "dimmer_effect_color": "LED Indicator: Effect Color"

    "switch_effect_bulk": 8
    "switch_effect_color": "LED Effect Color"

    "combo_light_effect_bulk": 24
    "combo_light_effect_color": "Light LED Effect Color"

    "combo_fan_effect_bulk": 25
    "combo_fan_effect_color": "Fan LED Effect Color"

sequence:

##################
# LED strip color
##################
  - choose:
    - conditions: >
        {{ LEDcolor != "no change" }}
      sequence:
        - service: zwave_js.set_config_parameter
          data:
            entity_id: '{{ entity }}'
            parameter: |
              {% set effect_param = model + '_ledcolor' %}
              {{ parameters[effect_param] }}
            value: |
              {{ color_set[LEDcolor] }}

I thought I could use a for() loop to handle each entity one at a time, like this:

sequence:

  {% for entity in area_entities('office') %}
    {% if is_device_attr(entity, 'manufacturer','Inovelli') %}
      {% set model = device_attr(device_id(entity),'model') %}

##################
# LED strip color
##################
        - choose:
          - conditions: >
              {{ LEDcolor != "no change" }}
            sequence:
              - service: zwave_js.set_config_parameter
                data:
                  entity_id: '{{ entity }}'
                  parameter: |
                    {% set effect_param = model + '_ledcolor' %}
                    {{ parameters[effect_param] }}
                  value: |
                    {{ color_set[LEDcolor] }}
      {% endif %}
  {% endfor %}

However, that results in an error pointing to the start of the for() loop.

Error loading /config/configuration.yaml: while scanning for the next token
found character ‘%’ that cannot start any token
in “/config/scripts/inovelli_led_zwavejs.yaml”, line 342, column 4

There must be a way to do this, but I can’t find the right documentation. I’m not a software engineer but if you type slowly I might understand.

1 post - 1 participant

Read full topic

Where to add user to the vboxuser group / USB passthrough /Ubuntu HA VM on Win10

$
0
0

I am following the instruction on how to get USB passthrough for my zwave stick from the win vm into HA. I keep seeing notes to add the user running virtual box to the vboxusers group. In windows there is no vboxuser group created. Im not sure where to check what groups exist on the HA box. When I open HA I get the Home Assistant CLI. I tried to run the command (sudo usermod -aG vboxusers <USERNAME>) on the HA CLI refrenced on these sites but Im getting unknown command. Can someone tell me what I am missing? Thanks in advance.

https://www.techrepublic.com/article/how-to-enable-usb-in-virtualbox/
https://www.gokickdirt.com/2019/11/02/the-adventure-of-moving-hassio-from-pi-to-virtualbox/

1 post - 1 participant

Read full topic


Locked out /cannot sign in with correct username and password (after unsuccessful update?) HAOS on VMM synology

$
0
0

This will be a long post.
I installed HAOS into a VM on the official synology VM manager package on my synology DS218+. I could import my config from an older install and happily play with HA several days ago.

I had kept my HA web interface open and this morning I tried to update (via the web interface in configuration) HA core (2022.04.6 to 04.7) and HAOS (6.0 to 7.6), apparently unsuccessfully. The HA restarted and now I am locked out of it, " Incorrect username or password".
It happens whether I access it through {VM_ip_adress}:8123 or homeassistant:8123 or homeassistant.local:8123 on firefox, my usual browser. My HAOS samba share is also impossible to sign in.
Here is what I tried:

  1. when firing up the HA console I first saw briefly a message such as “VFS failure” or something like that flashing by
  2. With this I tried to reset the password for all possible user names I could remember in the HA console (which I access through “connect” on the Synology VM Manager): I get an “unknown error, see supervisor” message on the console on the ha > prompt. .
  3. I tried auth cache in ha console and command executed successfully, no effect.
  4. I tried to clear cache+cookies on firefox
  5. I tried to access through Brave, my secondary browser (which I had not used before to access HA if I’m not mistaken)
  6. I tried to access the samba share files of HAOS (I work on win10), but the signing in is refused too
  7. I tried to ssh into {VM_IP_address} via an ubuntu console on my WindowsSystemLinux: connection refused. I haven’t tried all possible users name there through because I think it does not make sense.

I am totally lost, starting to loose my patience with HA, and would appreciate help!

1 post - 1 participant

Read full topic

Create button that will Run A/C at set temp and time

$
0
0

I was wondering if someone could help me create an automation that will turn my A/c on a specific temp and run for 3:30 hours @1am after i click a button in lovelace. then the button will reset to off at 5am

alias: Run A/C tonight
description: ''
mode: restart
trigger:
  - platform: state
    entity_id: input_button.run_a_c_tonight
    from: 'off'
    to: 'on'
condition: []
action:
  - service: climate.set_temperature
    data:
      temperature: 64
      hvac_mode: cool
    target:
      entity_id: climate.kitchen

That is my code but i want to trigger the button in lovelave and then have it run at a set time.

1 post - 1 participant

Read full topic

How to add template for button-card?

$
0
0

Hi, I’m still new in HA.

Recently, I wanna customise my HA dashboard, refer to some idea in the community.

the below code I want to add to my dashboard, then I click 3 dots and select raw configuration editor.

Once I’ve pasted, the error "missing template: light " come out.

            - entity: light.table
              type: custom:button-card
              style:
                left: 84.3%
                top: 25.7%
              template:
                - light

I think I should copy the “light” template codes as well, but I don’t know where I should paste to. The code author put the templates in “button_card_templates.yaml” which links to “ui-lovelace.yaml”.
I’m usiing UI mode not yaml mode. Anyone could tell me where I should paste this code to ?

Thanks, sorry to my English.

1 post - 1 participant

Read full topic

Zigbee Moes Smart Switches

$
0
0

Hello,

I do apologize if this might have been asked. I have been trying to find answers for quite some time and did not find anything specific to my issue. I am fairly new to HA and have been enjoying using it. I have around 21 Moes Zigbee Smart Switches around my home, gang number differs from 1 gang to 3 gang. I have been using it with a Tuya gateway which works fine but I am trying to move them over to either ZHA or Zigbee2MQTT. I can discover them fine within both ZHA and Zigbee2MQTT and they are detected as light, I did override the device type in configuration.yaml and it shows now as a switch. Here’s my problem, if I have a 2gang switch, toggling one through ZHA toggles all the other switches. If I toggle on a switch, all the other lights turn on within that switch.. I am not sure if there is a configuration I need to change. Any help is appreciated. Thanks everyone.

1 post - 1 participant

Read full topic

How can I convert reed sensor impulses to cubic meters and kWh for my gasmeter?

$
0
0

I have a vzlogger instance running that posts my gas meters impulses to HA. I am somehow lost now how to convert these impulses to m3 and kwh and how to use the values also as utility meter for the energy dashboard.

pi@rpi-vzlogger:~ $ cat /var/log/vzlogger.log | grep chn2
[Apr 28 07:29:56][chn2] New channel initialized (uuid=...f68014 api=volkszaehler id=Impulse)
[Apr 28 07:30:07][chn2] Adding reading to queue (value=1.00 ts=1651123807015)
[Apr 28 07:31:51][chn2] Adding reading to queue (value=1.00 ts=1651123911626)
[Apr 28 07:32:51][chn2] New channel initialized (uuid=...f68014 api=volkszaehler id=Impulse)
[Apr 28 07:33:01][chn2] Adding reading to queue (value=1.00 ts=1651123981001)
[Apr 28 07:34:12][chn2] Adding reading to queue (value=1.00 ts=1651124052494)
[Apr 28 07:35:24][chn2] Adding reading to queue (value=1.00 ts=1651124123924)

mqtt.yaml:

- platform: mqtt
  name: "Gas Meter"
  state_topic: "vzlogger/data/chn2/raw"

Thanks for helping :slight_smile:

1 post - 1 participant

Read full topic

Viewing all 99638 articles
Browse latest View live


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