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

Force state update in core.restore_state file

$
0
0

I have this problem where the core.restore_state file wasn’t update as often as I think it should.
I set a state value for input_text entity, the state value showing up in developer tools > states and stored into HA database instantly, but it didn’t update the core.restore_state file almost 20 minutes later. It didn’t even update when I restart the HA (which I thought it will do a state dump upon HA shutdown routine)

Anyone know if there is a way to make the core.restore_state file update a bit more often ?

1 post - 1 participant

Read full topic


(Special ?) sensor

$
0
0

I use a binary sensor to monitor how many time my water pump is power on during the day.
it’s works with

   - platform: history_stats
     name: forage ON today
     entity_id: binary_sensor.forage
     state: 'on'
     type: time
     start: '{{ now().replace(hour=0, minute=0, second=0) }}'
    end: '{{ now() }}'

but i would like also to know my water consumption ; how many liters i use, my pump goes out 0.5L/sec
so i would like to multiply my previous ‘binary_sensor.forage’ by 0.5;
i don’t finding,
any help please ?
thx

1 post - 1 participant

Read full topic

Some Z-Wave devices undefined

$
0
0

Hi,
Today for some reason some of the Zwave Devices are being marked as Undefined - refer to screenshot - zwave|690x474

What happened is the following:
One of the devices became unresponsive, and in the configuration page of Zwave I pressed stop network, and then i was not able to start it again (start button unresponsive).
Restarted HA - same problem - all devices undefined
Restarted Server - same problem but some devices are working, others are undefined.

Can someone guide me on way forward to solve this problem?

1 post - 1 participant

Read full topic

Zigbee Problems

$
0
0

I am using a Conbee II via the Deconz integration with Hue light bulbs and dimmer switches and Xiaomi sensors running from Home Assistant supervised on a RPI 4.

Normally everything works fine but I live in an area that has quite a lot of power glitches. When the power comes back it takes quite a lot of time and manual effort to get the Zigbee devices operating correctly again. Some of the Hue bulbs start flashing and have to be power cycled again and some of the switches take a long time to come back on line.

Is this a feature of Zigbee or something that might be helped by moving from Deconz to ZHA.

Thanks for any help.

1 post - 1 participant

Read full topic

Where to find the newly paired device after successful pairing with Zigbee2MQTT?

$
0
0

Dear all friend. need help to locate my Zigbee device in HA-UI.
I am using Pi4, running Hass.os, and Iam using HA-UI for everything as I do not know how to use “sudo” command.

I have struggled for a week to learn how to,

  1. Flash CC2531 dongle
  2. Setup Mosquito MQTT addon through HA interface.
  3. Setup a user/password and confiqure MQTT correctly in HA interface.
  4. Setup Zigbee2MQTT addon through HA manual repository.
  5. Configure Zigbee2MQTT to make sure no error message in log file.
  6. Put a zigbee device (zigbee on/off relay,supported device) into pairing mode and get paired by Zigbee2MQTT.
  7. It shows interviewed, accepted and Device ID was created.

I got the above all successfully done and all log file did say so.
(Every step is very steep learning curve for me. )
Now the problem is,
a. I could not find the newly linked device.
b. How do I find and use it? (I just want to create a button to activate the new device).
c. Please let me now what is missing?

I will show all the log file below…
Device


Mosquitto Config
image
Mosquitto Log

Zigbee2MQTT Config

Zigbee2MQTT Log

Please note that the initial Device ID was (0x00124b001cd60775), but I manually use samba to access \share\Zigbee2MQTT\ devices.yaml to change it to a friendly name…“zigbee_switch”

All process seems correct, but the problem is I can’t find this switch in HA, please help.
If you need more information, please do request, I will provide ASAP…Thanks

2 posts - 2 participants

Read full topic

Custom wildcards for multiple similar sensors?

$
0
0

Hi everybody,

I have a bunch of sensors like this

  • sensor.arbeitszimmer_vibration_action (name: Arbeitszimmer/Vibration_action)
  • sensor.wohnzimmer_vibration_action (name: Wohnzimmer/Vibration_action)
  • sensor.garage_vibration_action (name: Garage/Vibration_action)

etc.

Is there a way to customize these so that sensor.*_vibration_action will turn into <room> Vibration? Somehow, the * part needs to be replaced with whatever comes right after sensor..

I already use customize_glob for some sensors, but those are not room specific; for example, all sensor.*_watt sensors have friendly_name: Power, but in this case, I’d like to include the individual room name.

Thank you for your ideas :slight_smile:

1 post - 1 participant

Read full topic

Errori nell'avvio e spegnimento

$
0
0

Buongiorno a tutti, ho installato home assistant su raspberry con il file hassos_rpi3-4.11.img.gz seguendo la procedura su sito, procedendo con la configurazione ho installato i vari add-on non ancora configurati…all’avvio nel log si rilevano diversi errori, sotto elencati… ma quello che da più problemi è che spesso è come se si spegnesse da solo… fra gli errori vedo un timeout on ma non riesco a capire come disattivarlo.

Waiting on integrations to complete setup: hacs
12:25:56 – bootstrap.py (WARNING)
Retrying in 19 minutes

12:25:24 – Meteorologisk institutt (Met.no) (ERROR)
https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned

12:25:24 – main.py (ERROR)
Setup of device_tracker platform mobile_app is taking over 10 seconds.

12:25:24 – Tracciatore dispositivo (WARNING)
Setup of weather platform met is taking over 10 seconds.

12:25:24 – Weather (WARNING)
Setup of hassio is taking over 10 seconds.

12:25:24 – main.py (WARNING) - il messaggio si è verificato per la prima volta alle 12:24:56 e compare 2 volte

Timeout on /homeassistant/options request

12:24:56 – Hass.io (ERROR)

2 posts - 2 participants

Read full topic

Jasco Zwave Dimmer switch doesn't reply to zwave commands until I manually press it

$
0
0

I have about 10 Zwave switches (Jasco, mix of Honeywell and GE). They’ve been working fine. Recently, like in the last month, my guest bedroom light switch does not respond to HA zwave commands until I manually actuate it. Then it responds to HA commands as normal. Not seeing anything weird in the HA logs, not sure what to look for in the OZW logs.

More details on symptoms:
I have a motion sensor in the guest bedroom linked to the problematic dimmer switch and a ceiling fan via Node Red. When I enter the bedroom, the ceiling fan turns on as expected, but the light doesn’t. Node Red confirms that it send the ‘turn_on’ command. I’ve used Lovelace and the Dev Tools to attempt to turn on the switch, no joy. Only when I manually press the switch rocker does the light turn on, and then it responds as expected to HA commands for the next indeterminate amount of time. I haven’t figured out how long of inaction it takes for the switch to ‘lose connectivity’.

Any thoughts?

1 post - 1 participant

Read full topic


Niko smart socket with sniffer

$
0
0

Hello,

Did anybody try to integrate the Niko Zigbee socket with Zigbee sniffer? Like the cc2531? And does it relay other Zigbee device’s message? (Incl. 3rd party device)

1 post - 1 participant

Read full topic

Json_attributes not functioning properly with command_line sensor integration

$
0
0

Hi there,

Because there’s no integration for the Voltcraft SEM6000 power switch/measurement device, I’m trying to implement an Expect script I found at htt ps://github.com/Heckie75/voltcraft-sem-6000) which is able to output JSON data. I’m using the command_line integration as a sensor.

As the device outputs multiple values (voltage/ampere/watts/powerfactor among others), I thought it would be wise to use the json_attributes, just like the documentation linked above describes:

The example shows how you can retrieve multiple values with one sensor (where the additional are attributes) by using value_json and json_attributes .

This is my current configuration:

sensor:
  - platform: command_line
    name: koelkast
    json_attributes:
      - voltage
      - ampere
      - watts
      - power_factor
      - total
    command: '/usr/local/bin/sem-6000.exp AB:CD:12:34:56:78 1234 --status --json'
    command_timeout: 30
    value_template: '{{ value_json.status }}'  

The output of the sem-6000.exp script is as followed:

homeassistant@raspberrypi:~ $ sem-6000.exp 2C:AB:33:01:11:D7 1590 --status --json
{
  "device" : null,
  "status" : {
    "power" : 1,
    "voltage" : 228,
    "ampere" : 0.013,
    "watts" : 0.59,
    "frequency" : 50,
    "power_factor" : 0.20,
    "total" : 0.0
  },
  "settings" : null,
  "schedulers" : null,
  "countdown" : null,
  "randommode" : null,
  "data_per_hour" : [
  ],
  "data_per_day" : [
  ],
  "data_per_month" : [
  ]
}
homeassistant@raspberrypi:~ $

By using value_template: '{{ value_json.status }}' I expected HA would select only the JSON dictionary under the key status. And I expected json_attributes would extract the keys used in that option from the status dictionary.

Unfortunately, I’m getting an entity sensor.fridge with the value {'power': 1, 'voltage': 227, 'ampere': 0.013, 'watts': 0.635, 'frequency': 50, 'power_factor': 0.22, 'total': 0.0} and the only state attributes the entity contains is friendly_name.

So it seems value_template works, but json_attributes does not work :slightly_frowning_face: There are also no other entities like sensor.fridge_watts to be found in the Developer Tools.

I’ve tried to add some extra debug logging to the source file, especially between lines 103 and 128. According to this logging, it seems self._attributes is empty after the mapping.

So my theory is: the value_template is applied after HA tries to map the json_attributes over the initial value. But that doesn’t make sense, especially when the example from the documentation shows a similar example as what I’m trying, right?

My question to you all: is my theory remotely correct? Does anyone have experience with this json_attributes and the command_line sensor integration? And does anyone know what I’m doing wrong? I thought it would be rather simple…

My HA version is 0.112.3 and runs on a Raspberry Pi in a venv.

1 post - 1 participant

Read full topic

How to trigger automation by mqtt message?

$
0
0

Hi all, few months ago I bought cheap IP cameras which can forward messages to “alarm server” on port 15002. Today I found a perl-script that simulate alarm server and can forward messages to mqtt.
Now I’d like to create some automation based on received message.
Is it possible to trigger automation based on mqtt messages?

2 posts - 2 participants

Read full topic

Pairing LG WebOS Not Working

$
0
0

Hey guys, complete noob here.

I recently installed HA using a virtual python environment on and old Mac Mini I have at home. Miraculously I got it working (very non technical).

I have two LG TV’s and I though well let’s get them connected. After going crazy understanding where the configuration.yaml file is and how to access it via Terminal, I added this:

webostv:
  host: 192.168.86.42
  mac: MYMACADDY
  name: Kids Room TV
  turn_on_action:
    service: persistent_notification.create
    data:
      message: "Turn on action"
  customize:
    sources:
      - livetv
      - youtube
      - makotv
      - netflix

media_player:

notify:

Initially I didn’t add the MAC Address but lurking in some threads apparently needs to be added (I should mention that my TV is not wired, is all WIFI)

After adding the code above (my configuration.yaml file was empty initially) I saved it, re-started HA and according to the instructions I should have a Notification in HA from where the pairing starts.

Here’s is where I’m stuck. I can’t for the life of me get this notification to start the pairing process.

My LG TV:

  • Has LG Connected Apps, ON.
  • Is on the same WIFI as everything else.
  • Is not LAN wired.
  • Mobile TV is ON

Also maybe worth mentioning that I also didn’t have a webostv.conf file. I manually using nano, created an empty file with the same name (read something along this lines in another thread).

Being non-technical I can’t for the life of me get passed this.

Help?

1 post - 1 participant

Read full topic

Need help with template light

$
0
0

Hi, hoping someone can help. I’m in the process of converting my old Lutron RadioRA lights into HA via the RS232 interface. I can send the appropriate commands to turn the lights on/off via Lovelace, but I’m having trouble setting the state of the light if the light is turned on directly from the switch. If a light is turned on manually, the RadioRA system sends a string of characters over the RS232 interface that looks like

LMP,00000010000010000001000101100000

where each 0|1 indicates the state of the 32 lights defined in the system. So I tried to define a sensor for the seventh light as follows:

in sensor.yaml:

- platform: serial
  serial_port: /dev/ttyUSB1

and then I have the following configuration in lights.yaml:

stairwell_floor_lights:
      friendly_name: "Stairwell Floor Lights"
      value_template: "{{ 'on' if states('sensor.serial_sensor')[10] == '1' else 'off' }}"
      turn_on:
        service: shell_command.lutron_switch_control
        data_template:
          light: "stairwellFloorLight"
          command: "on"
      turn_off:
        service: shell_command.lutron_switch_control
        data_template:
          light: "stairwellFloorLight"
          command: "off"

If I omit the value_template, the state gets reflected correctly in Lovelace if I turn the light on|off from Lovelace. With the value_template, the state always gets set to off.

Any suggestions? Thanks.

1 post - 1 participant

Read full topic

Todoist Webhooks?

$
0
0

Is it possible to send webhooks from Todoist for example if an item was created or marked as complete to Home Assistant? Right now I’m doing this with IFTTT, but its not really reliable or delayed.

1 post - 1 participant

Read full topic

Lovelace Graph not updating

$
0
0

Hi,
i have in lovelace a graph card of a power sensor setted up with a refresh interval of 1 second.
The problem that i have is that the graph doesn’t update until i press F5, see photos attacched

Without update page:
1

After page update:
2

Alredy tried different browsers
Can anyone help me?

1 post - 1 participant

Read full topic


MQTT Sensor Connectivity not showing up

$
0
0

I have defined several sensors on MQTT (temperature and humidity) they show up and work well under devices section in HA. Now I just added a ‘Connectivity’ sensor, but it doesn’t show under HA. If I change the device class to something else, then the device will show, hence I think I need something more for the connectivity sensor.

{
  "dev_cla":"connectivity", 
  "name":"rho2_status", 
  "uniq_id":"rho2_status", 
  "dev":{"ids":"rho2","name":"rho2","mdl":"PLATFORMIO_D1_MINI","mf":"espressif"}, 
  "avty_t":"homeassistant/availability/rho2", 
  "~":"homeassistant/sensor/connectivity/rho2", 
  "stat_t":"~/out", 
  "val_tpl":"{{value_json.value}}"
}

What I’m missing so that the connectivity sensor show up on devices ??

1 post - 1 participant

Read full topic

Filtering from a sensor that outputs a list

$
0
0

Im using a custom integration for monitoring grocy states in home assistant. The sensor “sensor.grocy_stock” gives me a list which looks like this:

items
- _product_id: 3
  _available_amount: 31
  _best_before_date: '2999-12-31T00:00:00+00:00'
  _name: Citerizin
  _barcodes:
    - '-06716142'
  _product_group_id: 3
- _product_id: 8
  _available_amount: 1
  _best_before_date: '2020-07-15T00:00:00+00:00'
  _name: Eistee
  _barcodes:
    - ''

Is there a way that I can filter this list to display for only 1 product and its amount into a lovelace card? The perfect way would be creating a sensor for each product so that I can easily use it for automations, but im not too familar with templating that complicated stuff.

1 post - 1 participant

Read full topic

Lutron RA2 Select core integration

$
0
0

Im having issues with the core Caseta integration in HA, I’m running 111.4 due to the issues with sensors in 112.5.
The issue i have is that the integration is not detecting my Pico remote or my lights, scenes and sensors (Occupancy) are detected just fine. I’m in the UK so the light dimmers are the Lutron inline type.

The Castea-Pro third party integration works fine but i would rather stick with the core functions if possible.

1 post - 1 participant

Read full topic

Statistics, how to calculate from midnight until now

$
0
0

Hi all,

I collect my data from my router via SNMP in octets and use a value_template to convert to Gb. The SNMP data is total amount since last reboot of router (meaning the octets value increases every 10 seconds as per my SNMP configuration)

I’m trying to use the Statistics sensor to show total amount of data down- and uploaded since last midnight. I can’t figure out how to specify this, only max_age which is a fixed amount of time backwards…

Any suggestions?

1 post - 1 participant

Read full topic

Counter increment/decrement by *

$
0
0

Hiya All,

Is there a way to call the counters increment/decrement service and give it a by how many it should increase/decrease?
I’m trying to create something to help motivate me do my household tasks.
So I have a counter setup called chorepoints. Now I want chorepoints to be earned on completion of tasks. The smart washer reporting a completed washing cycle for example. Or a manual button card for non smart tasks.
However, the counter only increments by either 1 or a fixed value with the step config option and that’s not really what i’m after because loading the washing machine should not be the same amount of points as cleaning the kitchen. Also the rewards i have planned for redemption with the points, like getting take-out or a netflix binging day, should also have differing costs.

1 post - 1 participant

Read full topic

Viewing all 105842 articles
Browse latest View live


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