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

Apple iWatch button configurations

$
0
0

Hi,
I’ve recently got an iWatch and it’s great to see that there is a HA app. Is there a way to configure the icons on the screen? At the moment it just displays themes, not sure why these are the only ones.

1 post - 1 participant

Read full topic


Invalid config for [sensor]: required key not provided @ data['platform']. Got None

$
0
0

Hi
I’ve just started with HA and I just not get yet the trick to integrate Shelly sensors with mqtt an didn’t find any solution :frowning:

Perhaps anyone can give me a hint.


HA ist running on a RasPi 4 with 4GB, Version 0.115.0
I’ve installed Mosquitto Broker V 5.1 with following config

logins:
  - username: ****
    password: ****
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

On shelly-sensor (newest firmware), mqtt is activated


user and pass equal as in mqtt config
ip-adress equal RasPi’s ip-adress with HA installation.

Integration Mosquitto Broker is installed


for this code (as written in https://shelly-api-docs.shelly.cloud/#shelly-h-amp-t-mqtt) in the configuration.yaml, i get always the error as written in the topic, where F4466F is the identity of the shellyht-sensor.

sensor:
  - plattform: mqtt
    name: "shelly-ht-naturkeller-temp"
    state-topic: "shellies/shellyht-F4466F/sensor/temperature"
    unit_of_measurement: "°C"    
  - plattform: mqtt
    name: "shelly-ht-naturkeller-hum"
    state-topic: "shellies/shellyht-F4466F/sensor/humidtiy"
    unit_of_measurement: "%"
  - plattform: mqtt
    name: "shelly-ht-naturkeller-batt"
    state-topic: "shellies/shellyht-F4466F/sensor/battery"
    unit_of_measurement: "%"

Sorry about these beginners questions, I hope i get it as fast as possible :blush:

1 post - 1 participant

Read full topic

Bath exhaust fan automation - easiest approach

$
0
0

I’m finally taking the HA head-first dive in… the off-the-shelf products seem to have a lot of limitations.

This is the ideal situation - complete bath remodel…I have a blank canvas to work with. I’ve seen a number of Youtube videos automating a bath exhaust fan. Most seem to use DHT22 sensor and Wemos D1 mini wired for 5v…and I combine it with a Shelly 1 (as the relay). Any suggestions on the easiest approach, hardware, etc for a Noob (simpler the project + mimimal programing => increased likelihood of a second project!)?

Thanks

1 post - 1 participant

Read full topic

Downloading and extracting data from CSV file

$
0
0

I want to extract and display some data from a CSV file that needs to be downloaded from the internet.

https://api.melbournewater.com.au/rainfall-river-level/228357A/river-level/live.csv

I want to extract the lastest date/time and number in second field from the second line of the file, and also whether the water level is rising or falling by comparing to the next line.

Contents of the CSV file

Date/Time,Mean level (m)
“2020-09-22 09:06:00”,0.162
“2020-09-22 09:00:00”,0.162
“2020-09-22 08:54:00”,0.162
“2020-09-22 08:48:00”,0.162
“2020-09-22 08:42:00”,0.162
“2020-09-22 08:36:00”,0.162
“2020-09-22 08:30:00”,0.160
“2020-09-22 08:24:00”,0.160

1 post - 1 participant

Read full topic

Having to wait before I can push Custom Button again

$
0
0

I have emulated my Harmony Hub Remote into a Lovelace page, and when I am trying to navigate through my TV Guide using my arrow keys, I have to wait approx. 1 second between taps so the underlying script will trigger again. If i press too quickly, it appears as though 1 or 2 of those extra taps do not register as it seems to wait for the script to complete before the button becomes active again to press.

Is there any way i can get this to work so quick taps activate the script everytime. Below is the code for the button.

entity: script.1560755214060
hold_action:
  action: more-info
icon: 'mdi:arrow-up-bold'
icon_height: 53px
show_icon: true
show_name: false
size: 30%
tap_action:
  action: toggle
type: 'custom:button-card'

thanks in advance
Sean.

1 post - 1 participant

Read full topic

OpenZWave stuck on "network starting" all nodes "unavailable"

$
0
0

I’m at a bit of a loss here, I am running the latest HassOS with the beta OZW integration loaded. It was working for most devices until a couple of hours ago when everything just stopped. All ZWave devices in Hass show “unavailable” in the frontend. When I try to “configure” the integration, all the nodes show, but on the “network” tab it shows “Network Starting Initializing the Z-Wave controller” and nothing is working.

I checked the OZW Add-on, and everything looks normal there. I looked in MQTT and am seeing all the usual traffic. I don’t see any errors in the logs at all.

It’s like the OZW add-on is working properly, but the Integration refuses to fully connect to it.

I have tried:

  • restarting Hass (many many times)
  • restarting the add-on (several times)
  • reloading the integration (a couple of times)
  • rebooting the server (multiple times)
  • deleting the integration and re-adding it (twice)

Nothing is bringing this zwave network back to life.

Ideas??

1 post - 1 participant

Read full topic

Using Certain Pins on ESP8266

$
0
0

Good day,

Having a great time with a ESP8266 connected to 8 channels relay using Tasmota [Tasmota 8.5.0]. Relays connected to D5, D6 and D8 are not working.
Conected devices are not switched on and the relay itself does not click. Changed config in the Module parameters page to used other relays with these pins and they still do not work.

Have been reading around and those are the SPI pins, not sure of what there use is but I will search for information on how to use those pins in my nightly reading.

My questions will be:

  1. Can i use those pins to operate a 8 channel realy using Tasmota (or better use a 4 channel and call it a day)
  2. Is there a template that i can use for this to work
  3. Any work around or alternative firmware i can load that will give me similar control to TASMOTA (web page access, alexa, timer, mqtt).

Thanks in advance for your response and have a great evening.

1 post - 1 participant

Read full topic

Updating integration configuration yaml doesn't update integration

$
0
0

If I update an integration’s configuration in my yaml file, it doesn’t update the integration after restart. Is this expected behavior? How can we force the integration properties to be updated?

In my configuration.yaml, I enable the lutron_caseta integration:

lutron_caseta:
  - host: x.x.x.x
    keyfile: /config/lutron/caseta.key
    certfile: /config/lutron/caseta.crt
    ca_certs: /config/lutron/caseta-bridge.crt

I moved the ssl files to a different directory and updated the paths accordingly in my configuration. But when I updated, I then got a ca_certs file not found error and found it wasn’t using the updated path, but the old path.

Upon further inspection, there was an entry in the .storage/core.config_entries file for the lutron device that had the old paths. Deleting this entity and restarting seemed to fix the issue.

Why did the integration not get updated?

1 post - 1 participant

Read full topic


[HELP] floorplan elements won't show current switch status after HA restart

$
0
0

Hi All,

I can’t figure out what’s the problem. but only after I click on the switch will change the picture element and another click will change the status of the switch. Does anyone else have this issue with his floorplan view?

Thanks,

1 post - 1 participant

Read full topic

Zoneminder Camera doesn't display picture in UI, Sensor shows correct data

$
0
0

I’ve got HA and Zoneminder talking to each other successfully, but I can’t see any camera images. In Zoneminder, I have a single camera called “dome”. In HA, I see the following entities:

  • Binary sensor for Zoneminder
  • camera.dome
  • sensor.dome_events
  • sensor.dome_status

Both dome_events and dome_status have correct values, so I know I’m getting good data from Zoneminder, but all the various Picture cards in the HA UI that I’ve attached to the camera.dome entity just show a broken image and the text “Preview of the dome camera.”

I don’t see any errors in either the HA or Zoneminder logs, just success/status messages.

Should I be using a different kind of UI card to view the camera entity, or should this be working?

Config:

zoneminder:
  - host: 192.168.9.26
    path: /zm/
    path_zms: /zm/cgi-bin/nph-zms
    ssl: false
    username: <username>
    password: <password>

camera:
  - platform: zoneminder
  
sensor:
  - platform: zoneminder
    include_archived: false

1 post - 1 participant

Read full topic

Sonoff SNZB-02 Temperature/Humidity Sensor displays max values for temp, humidity, power

$
0
0

I have just received a Sonoff SNZB-02 and am trying to use it with HA using a EZSP on a HUSBZB-1 attached to a Raspberry Pi 4. I’m in North America (Canada).
While I was able to pair the Sonoff SNZB-02 temperature/humidity sensor, the temperature sensor remains at -40C, humidity sensor at 100%, and power sensor at 100%.

It seems that it is reading the maximum readings (or minimum in the case of the temperature) rather than the measured readings.

The Zigbee Device Signature is

{
  "node_descriptor": "<NodeDescriptor byte1=2 byte2=64 mac_capability_flags=128 manufacturer_code=0 maximum_buffer_size=80 maximum_incoming_transfer_size=160 server_mask=0 maximum_outgoing_transfer_size=160 descriptor_capability_field=0>",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0302",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0402",
        "0x0405"
      ],
      "out_clusters": [
        "0x0003"
      ]
    }
  },
  "manufacturer": "eWeLink",
  "model": "TH01",
  "class": "zigpy.device.Device"
}

The clusters available are

Basic (Endpoint id: 1, Id: 0x0000, Type: in)
Identify (Endpoint id: 1, Id: 0x0003, Type: in)
Identify (Endpoint id: 1, Id: 0x0003, Type: out)
PowerConfiguration (Endpoint id: 1, Id: 0x0001, Type: in)
RelativeHumidity (Endpoint id: 1, Id: 0x0405, Type: in)
TemperatureMeasurement (Endpoint id: 1, Id: 0x0402, Type: in)

The TemperatureMeasurement cluster attributes are

max_measured_value (id: 0x0002)
measured_value (id: 0x0000)
min_measured_value (id: 0x0001)
tolerance (id: 0x0003)

The RelativeHumidity cluster attributes are

max_measured_value (id: 0x0002)
measured_value (id: 0x0000)
min_measured_value (id: 0x0001)
tolerance (id: 0x0003)

But none of them pull up a value when using Get Zigbee Attribute.

It seems others have been able to use SNZB-02 with ZHA.
Is there anything that needs to be done to get the correct temperature, humidity, and power measurements?

Other Zigbee devices including the temperature component of SmartThings multipurpose sensors work.

I have had numerous other Zigbee devices running including GE Link, Cree, Ecosmart bulbs, ETI zigbee light fixture, SmartThings (Samjun) multipurpose sensors, SmartThings (Samjin) water leak sensors, a SmartThings (Samjin) motion sensor, Lutron Connected Remotes, Tradfri remote (on/off), and Tradfri outlet, and (with this same shipment) a Sonoff SNZB-04 door/window sensor.

1 post - 1 participant

Read full topic

How to display time that updates live? (see my code please)

$
0
0

I want to display the current time in a picture element card. I made a template sensor but it only displays correctly when HA loads, but it does not update every minute, so the time always says the same thing until I restart/reload. Either one of the following formats will display this (which I was very happy to figure out):

Monday, September 21 • 11:12 PM

But how do I get it to be “live” and up to the minute?

- platform: template
  sensors:
    local_timea:
      value_template: "{{ as_timestamp(now()) | timestamp_custom('%A, %B %-d • %-I:%M %p') }}" 
# OR
- platform: template
  sensors:
    local_timeb:
      value_template: "{{ now().strftime('%A, %B %-d • %-I:%M %p') }}"
      

And this is how I implement it in the Picture Elements card:

    cards:
      - type: picture-elements
        elements:
          - entity: sensor.local_timeb
            style:
              color: "#bfbdbf"
              font-family: Saira
              font-weight: 400
              font-size: 18px
              text-align: left
              pointer-events: none #to make this unclickable
              left: 50%
              top: 10%
            type: state-label

3 posts - 3 participants

Read full topic

Google Assistant Door and Window Status

$
0
0

I’ve found a way to integrate my door and window sensors so that I can query the status of a sensor with Google Assistant.

You can create a template cover for each door and window sensor, then export the covers to Google Assistant.

In your configuration.yaml file:

Create cover templates:

cover:
  - platform: template
    covers:
      kitchen_window:
        device_class: window
        friendly_name: "Kitchen Window"
        value_template: "{{ is_state('binary_sensor.kitchen_window_sensor', 'on') }}"
        open_cover:
        close_cover:
      front_door:
        device_class: door
        friendly_name: "Front Door"
        value_template: "{{ is_state('binary_sensor.front_door_sensor', 'on') }}"
        open_cover:
        close_cover:

Make sure that cover is exposed, or expose your individual door and window cover templates

google_assistant:
  # your other google assistant yaml code here
  exposed_domains:
    # your other domains here
    - cover

Then restart Home Assistant to get your templates and google assistant exposed domains loaded, then re-sync Google Assistant (“OK Google, re-sync my devices”).

Make sure you have the new devices in Google home and move them to appropriate rooms. Windows look like blinds, and doors look like… boxes with a lens on them (maybe garage door opener like MyQ Garage)

Once done, you can ask google “OK Google, is the kitchen window open?” and it will tell you if the window is open or closed, or “OK Google, are any windows open?” to give you the status of multiple windows, etc.

This can be used in routines, such as your bedtime routine including the command “are any windows open?” etc.

1 post - 1 participant

Read full topic

Learning yaml: multi-level conditions logic question

$
0
0

Hey! Trying to go back from Node Red and learn some automation yaml. The automation below works and triggers a morning routine script based on motion, time of day, workday (yes/no) and if the room is already in use.

There are two paths, one for workday (turns on if time is after 05:00:00) and weekend (turns on if time is after 07:00:00).

How can I optimize this logic and reduce the line of code using more advanced conditions (AND/OR)? The output sequence is the same for both paths. So I’m guessing some form of first level condition checking for the time and workday logic, and then another lower level condition check for the rest? I’m pretty stuck here how this should be spliced in yaml.

Any help on this is most welcome!

- alias: 'Trigger morning light in kitchen'
  trigger:
    platform: state
    entity_id: binary_sensor.kok_rorelse
  action:
    - choose:
      # Normal working day
      - conditions:
        - condition: state
          entity_id: binary_sensor.kok_rorelse
          state: 'on'
        - condition: time
          after: '05:00:00'
          before: '09:00:00'
        - condition: state
          entity_id: 'binary_sensor.workday_sensor'
          state: 'on'
        - condition: state
          entity_id: light.room_kok
          state: 'off'
        sequence:
          - service: script.turn_on
            entity_id: script.turn_on_morning_kitchen_mode
      # Weekend/Holiday
      - conditions:
        - condition: state
          entity_id: binary_sensor.kok_rorelse
          state: 'on'
        - condition: time
          after: '07:00:00'
          before: '09:00:00'
        - condition: state
          entity_id: 'binary_sensor.workday_sensor'
          state: 'off'
        - condition: state
          entity_id: light.room_kok
          state: 'off'
        sequence:
          - service: script.turn_on
            entity_id: script.turn_on_morning_kitchen_mode

1 post - 1 participant

Read full topic

Tradfi and 0.115

$
0
0

after upgrading to 0.115, i have problems with tradfri. I manage to integrate it but subsequently all modules go offline. installation on hassio

1 post - 1 participant

Read full topic


Where else is state restored from

$
0
0

I’ve got a problem I’m trying to figure out and I’m stumped. I have an input_number (actually a couple) that get updated once a day via automation. One of them is calculating the daily covid-19 cases by taking the number confirmed from the Coronavirus sensor and subtracting the prev day which is also stored in an input_number.

On Sat, there was a problem with the data from the sensor and it ended up messing up the state of my daily cases. The value was actually the total number confirmed. This has caused havoc with my graph on my lovelace page. So I went into the db and I fixed all the values. They are all correct now and I’ve restarted HA as well as rebooting the whole pi it runs on. I’ve checked and double checked the database and everything looks fine in both the states and events tables, but the graph is still messed up and I can’t figure out where it keeps getting the wrong number.

For instance, this graph uses an entity called input_number.covid19_daily_cases
Here’s a link to an image of the graph as it looks now:
Graph Image

The issue happened at just before midnight on 09/19/2020. The db dates are in UTC, so that is around 09/20/2020 06:55AM.

Here is the db output for the states table during that time frame:

mysql> select state_id,state,entity_id,old_state_id,event_id,created from states where created > '2020-09-19 00:00:00' and created < '2020-09-22 00:00:00' and entity_id = 'input_number.covid19_daily_cases' order by created desc;
+----------+---------+----------------------------------+--------------+----------+---------------------+
| state_id | state   | entity_id                        | old_state_id | event_id | created             |
+----------+---------+----------------------------------+--------------+----------+---------------------+
|  8032759 | 39844.0 | input_number.covid19_daily_cases |         NULL |  8299470 | 2020-09-21 12:42:35 |
|  8024192 | 39844.0 | input_number.covid19_daily_cases |      7988787 |  8290578 | 2020-09-21 06:55:00 |
|  7988787 | 37081.0 | input_number.covid19_daily_cases |         NULL |  8251505 | 2020-09-20 13:26:20 |
|  7979787 | 37081.0 | input_number.covid19_daily_cases |      7977702 |  8242154 | 2020-09-20 06:55:00 |
|  7977702 | 53431   | input_number.covid19_daily_cases |         NULL |  8239864 | 2020-09-20 06:08:18 |
|  7972241 | 53431   | input_number.covid19_daily_cases |         NULL |  8233977 | 2020-09-20 03:19:05 |
|  7959159 | 53431   | input_number.covid19_daily_cases |         NULL |  8220290 | 2020-09-19 20:56:35 |
|  7958036 | 53431   | input_number.covid19_daily_cases |         NULL |  8218818 | 2020-09-19 20:46:12 |
|  7946094 | 53431   | input_number.covid19_daily_cases |         NULL |  8206403 | 2020-09-19 14:32:56 |
+----------+---------+----------------------------------+--------------+----------+---------------------+
9 rows in set (0.01 sec)

Here is the events table:

mysql> select event_id,event_type,event_data,created from events where event_id in (8299470,8290578,8290578,8242154,8239864,8233977,8220290,8218818,8206403) order by created desc;
+----------+---------------+------------+---------------------+
| event_id | event_type    | event_data | created             |
+----------+---------------+------------+---------------------+
|  8299470 | state_changed | {}         | 2020-09-21 12:42:35 |
|  8290578 | state_changed | {}         | 2020-09-21 06:55:00 |
|  8242154 | state_changed | {}         | 2020-09-20 06:55:00 |
|  8239864 | state_changed | {}         | 2020-09-20 06:08:18 |
|  8233977 | state_changed | {}         | 2020-09-20 03:19:05 |
|  8220290 | state_changed | {}         | 2020-09-19 20:56:35 |
|  8218818 | state_changed | {}         | 2020-09-19 20:46:12 |
|  8206403 | state_changed | {}         | 2020-09-19 14:32:56 |
+----------+---------------+------------+---------------------+
8 rows in set (0.01 sec)

I’ve even done a search for that particular value, like 6764970% (to get both 6764970 and 6764970.0) and it’s just where it should be.

So what am I missing? Where else could it be storing that value? I’ve cleared the browser cache and reloaded the page several times. I’ve rebooted HA multiple times, then checked the db to make sure everything is still correct and it is.

1 post - 1 participant

Read full topic

Bug/annoyance in new Template Editor

$
0
0

First off I love the new functional Template Editor so don’t take this the wrong way but there is a bug/annoyance which might have been overlooked.

Go to the editor and start typing e.g.

{{ states('sensor.

pause while the editor does it’s magic and updates giving:

…and then check your log. You’ll find that error is also logged there. Type slowly or use the editor a lot and you can get tons of errors.

Couldn’t errors from the template editor be supressed in the log?

2 posts - 2 participants

Read full topic

Template syntax help with referencing

$
0
0

I’m trying to obtain the value of media_series_title attribute of the media_player.sky_q entity in a template but I haven’t got a clue how to write this in a template.

I want to use the template to trigger a script if the value contains a specific string.

I got as far as the below but I don’t know the correct syntax to include the media_series_title attribute so would welcome any advice.

{% if ‘xxxxxx’ in media_player.sky_q %}

2 posts - 2 participants

Read full topic

Template sensor deprecated entity_id

$
0
0

Hi, I have template sensors that used entity_id so that they would NOT update with every state change from the value_template, like this:

sensor:
  - platform: template
    sensors:
      p1_energy_low:
        friendly_name: P1 Energy Low
        entity_id: [] # empty; so never automatically updated
        value_template: "{{ states('sensor.energy_consumption_tarif_1') }}"
        unit_of_measurement: kWh

With the template entity_id feature it was possible to have an automation trigger an update for this sensor whenever I want, but unfortunately that doesn’t work anymore now.

Now that entity_id is deprecated in 0.115 I need a new way to have a sensor that only updates the sensor.energy_consumption_tarif_1 state at some interval, and NOT every time sensor.energy_consumption_tarif_1 changes.

Does anyone know a way to achieve this without the deprecated entity_id attribute?

3 posts - 2 participants

Read full topic

Spotify without premium... Is it possible on HA?

$
0
0

Is there a way to have a normal (no premium) Spotify on HA?
Regardless of commercials or any other inconveniences…

1 post - 1 participant

Read full topic

Viewing all 109599 articles
Browse latest View live


Latest Images

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