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

Hide title on picture-glance card

$
0
0

@dudester wrote:

Hi,
I an using picture-glance card to display level of my watertank, a minor annoyance is the title bar at the bottom, is there a way to hide this grey bar altogether?

title: Water Tank Status
type: picture-glance
entities:
  - sensor.watertank_card
entity: sensor.watertank_card
state_image:
  watertank_10: /local/watertank_10-490.png
  watertank_20: /local/watertank_20-490.png
  watertank_30: /local/watertank_30-490.png
  watertank_40: /local/watertank_40-490.png
  watertank_50: /local/watertank_50-490.png
  watertank_60: /local/watertank_60-490.png
  watertank_70: /local/watertank_70-490.png
  watertank_80: /local/watertank_80-490.png
  watertank_90: /local/watertank_90-490.png
  watertank_empty: /local/watertank_empty-490.png
  watertank_full: /local/watertank_full-490.png

Posts: 5

Participants: 2

Read full topic


HowDoI: Create a "Template" TRV and then instantiate for each physical TRV

$
0
0

@tillykeats wrote:

Hi

I downloaded HA today on a Pi3 with a bespoke MQTT client from here: https://github.com/gpbenton/engMQTTClient

Installing the MQTT Broker addon, I can read/set TRV with ID 8008. I have 10 other TRVs each with their unique ID but I dont want to have to create a config for each one.

Is there a cleaver config way to do this?
What I want to do is create a single “generic/template” for an Energenie eTRV and “instantiate” this for the 11 TRV physical devices in my home. I want to avoid having to duplicate all the effort to set up 11 TRVs when in fact I want all the same command and report topics (ref. that GitHub link above) - where the only aspect that will change is the eTRV ID. So somehow I’d need to pass the ID of the TRV , somehow.

MQTT Commands tree at /energenie/eTRV/Command/(command-as-below)/(device-id)

Command Payload Comment
Temperature 4-30 (Ascii) Set Target Temperature
Identify None Makes the MIH0013 flash
Exercise None Causes Valve to go up and down. Creates Diagnostic when finished.
Voltage None MIH0013 reports battery Voltage
Diagnostics None Causes MIH0013 to report diagnostics
ValveState “0”, “1” or “2” (ascii) 0=Set Valve Open 1=Closed 2=Normal Operation
PowerMode “0”, “1” 0=Low Power Mode off 1=On
ReportingInterval 300-3600 (ascii) Set the Reporting Interval (not tested)

MQTT States tree at /energenie/eTRV/Report/(report-command-as-below)/(device-id):

Report Payload Comment
Temperature Ascii string Measured Temperature in degrees Centigrade
TargetTemperature Ascii String Target Temperature set
Diagnostics 2 bytes byte 0 = low byte, 1 = high byte
Voltage Ascii String Reported Battery Voltage

So in other words, I want to define a single sensor “template” for a “template/generic” TRV , with (if possible) one set of topics I want to publish/subscribe to, ; and finally based on this , I want to create the 11 items to represent the physical TRVs in the home. I might need to rework how I do this but you get the idea?

p.s. I am a total newbie at this so please explain the solution - Ive read OH documents on Things and MQTT but clearly not capable of getting further with this.

Posts: 5

Participants: 2

Read full topic

Help with automation condition

$
0
0

@andreaconfa wrote:

I have this simple automation:

-  alias: Cancello Giulietta
   trigger:
       platform: state
       entity_id: device_tracker.giulietta
       to: "home"
   condition: 
   - condition: state
     entity_id: 'cover.garage_door'
     state: 'closed'
   action:
   - service: cover.open_cover
     entity_id: cover.garage_door

I need a condition like this: if X sensor is “not_home” or is “home” from 20 seconds

Thanks

Posts: 2

Participants: 2

Read full topic

Temporarely disable automation triggered by motion sensor

$
0
0

@pmdroz wrote:

Hi

I have a motion sensor that turn on the light in my living room. I add a condition on it to not turn on the light when it’s already at on. So if i watch a movie and put the brightness to 5% it will not turn it at 100%. Everything work fine (for me). Next day my kids come to tell me that they can’t close the light because they always turn on.

Is there a solution other than turning off the automation? Like a variable that i can refer in a condition. One solution that i thought was to turn off the automation for 2h when the ligth is close from the wall switch. I’m searching for an other idea

thanks

Posts: 2

Participants: 2

Read full topic

Horizontal Stack and Action Toggle not working

$
0
0

@Fonio wrote:

Hi Guys

I’m New in HA, so please forgive me for my stupidity.

I try to made a Horizontal Stack with many Entity Buttons, so i have created first scripts for every Button and if i add the Entity Button on the Dashboard it works with action: toggle.
If i create the Horizontal Stack and add the Buttons i can change anything but it remains on the default action : info.

So here is my config on the Horizontal Stack

type: horizontal-stack
title: Media Control
cards:
  - type: entity-button
    icon: 'mdi:television'
    entity: script.1577740137742
    action: toggle
  - type: entity-button
    icon: 'mdi:apple'
    entity: script.1577745278123
    tap_action: null
    action: toggle
  - type: entity-button
    tap_action: null
    action: toggle
    entity: script.1577745397782
    icon: 'mdi:power'

I have made the changes on the Editor of Lovelance UI and if i save and edit again it writes me on tap_action: null ( but i have write before tap_action: )(only, without none)
If i set tape_action: toggle, it works the toggle but the script was not executed.

Hope you can help me to understand what i made wrong:

i’m on the last release : 0.103.5

Thanks Fonio

Posts: 5

Participants: 3

Read full topic

Weather radar refresh using cast

$
0
0

@asdf_kid1 wrote:

I’m using a Google Nest Hub for a family friendly HA interface and trying to incorporate a weather radar loop based on a link to a HTTPS weather underground page. The two lovelace configuration options I’ve tried don’t work correctly, so looking for other ideas.

Config option 1: Picture element. This configuration renders perfectly on the Hub screen, but the image never refreshes, so is out of date.

lovelace config:

              - type: picture
                image: >-
                  https://radblast.wunderground.com/cgi-bin/radar/WUNIDS_map?station=066&brand=wui&num=10&delay=15&type=A0Q&frame=0&scale=0.1428&noclutter=0&showstorms=99&mapx=400&mapy=240&centerx=535.95&centery=378.0&transx=135.95&transy=121.0&showlabels=1&severe=0&rainsnow=0&lightning=1&smooth=1&rand=26287388&lat=0&lon=0&label=you

Config option 2: Camera and picture-entity. This renders perfectly in the lovelace web browser interface (Chrome) and the loop updates regularly. However, on the Hub it displays “preview of the weather radar camera” and no image is shown.

configuration.yaml:

camera:
  - platform: generic
    name: Weather Radar
    still_image_url: "https://radblast.wunderground.com/cgi-bin/radar/WUNIDS_map?station=066&brand=wui&num=1&delay=15&type=A0Q&frame=0&scale=1.000&noclutter=0&showstorms=0&mapx=400&mapy=240&centerx=400&centery=240&transx=0&transy=0&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0&rand=26295871&lat=0&lon=0&label=you"
    stream_source: "https://radblast.wunderground.com/cgi-bin/radar/WUNIDS_map?station=066&brand=wui&num=10&delay=15&type=A0Q&frame=0&scale=0.1428&noclutter=0&showstorms=99&mapx=400&mapy=240&centerx=535.95&centery=378.0&transx=135.95&transy=121.0&showlabels=1&severe=0&rainsnow=0&lightning=1&smooth=1&rand=26287388&lat=0&lon=0&label=you"

lovelace config:

              - type: picture-entity
                entity: camera.weather_radar
                camera_view: live
                show_name: false
                show_state: false
                aspect_ratio: 75%

Does anyone have other options or suggestions for getting the weather radar loop to display and refresh correctly on the google hub?

Posts: 1

Participants: 1

Read full topic

Enocean Temperature A5-04-01 wrong readings

$
0
0

@jottt wrote:

Hi,
I was trying to add a humidity & temperature sensor (A5-04-01) via enocean to HA, and stumbled over a few problems.

  1. The documentation is wrong.
    https://www.home-assistant.io/integrations/enocean/ states variables “range_max” and “range_min” while the sourcecode reveals they are named “range_from” and “range_to”.

However the sensor gives me weird readings with default range and with recommended range setting (0 to 250) from the website.
Without Range, Temperature is stuck at 23 (should be more like 18-19)
With rangesetting, Temperature jumps from 11.2 to 21 (celsius) within minutes and back. both values are probably wrong.

Humidity seems to be stuck at 97% (normal room, winter). So there seems to be something wrong I guess.

Unfortunately I only have one such sensor, so I cannot guarantee that its working properly. However its new from the box at least.

Has anyone implemented Enocean successfully and especially has anyone success with this sensor? I find a few troubled persons, but most have more serious trouble than me. I mean…I got some value out of it at least. :slight_smile:

Thanks for your help!

Posts: 2

Participants: 2

Read full topic

Formatting regexp in a condition of an automation

$
0
0

@CodeFinder wrote:

Hi all,

I have the following automation:

- alias: Disable Pi-Hole
  trigger:
    platform: state
    entity_id: input_select.pihole_time
  condition: # valid if in the format 'HH:MM:SS'
    - condition: template
      value_template: "{{ states('input_select.pihole_time')|regex_match('^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$', ignorecase=FALSE) }}"
  action:
    service: pi_hole.disable
    data_template:
      duration: "{{ states('input_select.pihole_time') }}"

but I am getting the errors:

Error loading /config/configuration.yaml: while scanning a double-quoted scalar
  in "/config/automations.yaml", line 298, column 23
found unknown escape character 'd'
  in "/config/automations.yaml", line 298, column 92

Line 298 is the line with the regular expression. What’s wrong here? :see_no_evil: Please note that the expression works correctly in the template editor. Also tried double quotes with no luck. :confused:

Thanks!

Posts: 3

Participants: 3

Read full topic


NuHeat API getting 401-Unauthorized

$
0
0

@ben wrote:

Hi,

I’ve had the NuHeat component set up for about 6 months and no real issues.
Yesterday I noticed the thermostat was no longer showing in the UI and I have this log:

NuHeat APIrequest unauthorized [401]. Try to re-authenticate.

I’ve upgrade to the latest version of HA now (0.98 -> 0.103.5) but I get the same error.

-My configuration is correct
-My credentials are correct, I can log in and control my thermostat from a browser or my app
-I have other “Cloud Polling” logins setup that are functioning properly (MyQ Cover for example)
-I removed the component from configuration.yaml and restarted, then added it again and restarted.
-I changed my password and updated configuration.yaml and restarted. Still the same log entry at restart.

Any ideas? I’m completely baffled. Here’s my configuration:

nuheat:
  username: xxxxxxxxx@gmail.com
  password: xxxxxxxxx
  devices: 1234567

Posts: 1

Participants: 1

Read full topic

Integrations Not Finding Multiple Cameras Via Encoder On Single IP

$
0
0

@smokejensen69 wrote:

Short version – Integrations - Axis finds one camera and 3 associated binary sensors for motion on the IP address. The problem is that there are 4 cameras on that IP address as they are coming in via an Axis m7016 encoder. Home Assistant is only finding and setting up one camera. The system will not allow adding another integration for it because the IP is already in use.

core.config_entries file contains this (some values masked):

{
“connection_class”: “local_push”,
“data”: {
“device”: {
“host”: “192.168.1.77”,
“password”: “xxxxxxxxxx”,
“port”: 80,
“username”: “root”
},
“mac”: “ACCxxxxxx40”,
“model”: “M7016”,
“name”: “M7016 0”
},
“domain”: “axis”,
“entry_id”: “232xxxxxxxxxxxxxxxxxxxxxxxxxxx45e”,
“options”: {
“camera”: true,
“events”: true,
“trigger_time”: 0
},
“source”: “user”,
“system_options”: {
“disable_new_entities”: false
},
“title”: “M7016 - ACCxxxxxxx40”,
“version”: 1
}

Then the core.entity_registry file has this(again some values masked):

{
“config_entry_id”: “232xxxxxxxxxxxxxxxxxxxxxxxxxx45e”,
“device_id”: “ebxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf4”,
“disabled_by”: null,
“entity_id”: “camera.m7016_0”,
“name”: “Garage2”,
“platform”: “axis”,
“unique_id”: “ACCxxxxxxxxx40-camera”
}

I would expect I need another entry like the one above with a different device_id, entity_id, name, and unique_id. However, I do not know where the device_id is coming from?

Posts: 1

Participants: 1

Read full topic

Node routing through a battery-powered device?

$
0
0

@blich wrote:

I’ve started to notice major slowdowns in my Z-Wave network over the last couple of days. I have 37 devices (only 3 are battery-powered). For some reason, some of my devices are routing through a Schlage lock instead of the mains-powered switch right next to it.

Could this be slowing my network down?

Is there a way to mark a device (battery-powered) so it doesn’t route through them?

Posts: 1

Participants: 1

Read full topic

Data Template Issue

$
0
0

@flyingsubs wrote:

Hi I’m trying to dive into template and if logic but I can’t seem to get this right. Any suggestions?

Thanks!

 action:
    entity_id: climate.n3rd_st
    service: climate.set_temperature
    data_template: >
      {% if is_state("sensor.nest_hvac_action", "cooling") %}
       "temperature": "74"
      {% elif is_state("sensor.nest_hvac_action", "heating") %}
        "temperature": "66"
      {% else %}
        "temperature": "66"
      {% endif %}

Posts: 4

Participants: 2

Read full topic

JSON map in data_template

$
0
0

@erikbjork wrote:

I’m trying to control switches etc in HA by sending MQTT messages to HA. I have this automation rule:

- alias: Control switches via MQTT
  trigger:
    platform: mqtt
    topic: homeassistant/to-ha/cmd
  action:
    - service_template: "{{ trigger.payload_json['service'] }}"
      data_template: >
        {{ trigger.payload_json['data'] }}

The payload of my message is going to look like this:

{
  "service": "light.turn_off",
  "data": {
    "entity_id": "group.kitchen_lights"
  }
}

But this is not right. HA doesn’t like the configuration: expected a dictionary for dictionary value @ data['action'][0]['data_template']. Got None.

How do I turn that JSON map to a dictionary?

Posts: 6

Participants: 3

Read full topic

Newbie question about entities and sensors

$
0
0

@hosweho wrote:

Hi,
i’m new here… maybe somebody can explain me why entities of type “binary_sensor” (or other sensors), which are defined in configuration.yaml, are not displayed in the UI under “Configuration/Entities” ?

Only under “/developer-tools/state” i can see the sensors.

My config:

binary_sensor:
  - platform: template
    sensors:
      sun_up:
        entity_id:
          - sun.sun
        value_template: >-
          {{ is_state("sun.sun", "above_horizon") }}

sensor:
  - platform: yr
    name: MyTestSensor
    forecast: 24
    monitored_conditions:
      - temperature
      - symbol

Thx!

Posts: 4

Participants: 4

Read full topic

Dynamically varying sensor scan interval

$
0
0

@artmg wrote:

Hi I want a variable delay ping

I am using the [ping binary_sensor(https://www.home-assistant.io/integrations/ping/) but would like to be able to vary the interval. Most of the time it’s fine to check every 5 minutes (300) but when I perform certain actions I want to check as frequently as every second. I tried using a value_template in the scan interval

binary_sensor:
  - platform: ping
    name: variabletimedping
    host: 192.168.8.81
    scan_interval: 
      value_template: 60

but this gives the error

ERROR (MainThread) [homeassistant.config] 
Invalid config for [binary_sensor]: 
[value_template] is an invalid option for [binary_sensor]. 
Check: binary_sensor->scan_interval->value_template.

A similar question was asked here with no answer. This post seems to suggest that scan interval can have a value template under the command line platform. So I tried

sensor
  - platform: command_line
    name: "ping test 1"
    command: ping -c 5 192.168.8.81 &> /dev/null && echo 0 || echo 1
    scan_interval: 
      value_template: 60

But this also gives the error

[homeassistant.config] 
Invalid config for [sensor]: 
[value_template] is an invalid option for [sensor]. 
Check: sensor->scan_interval->value_template.

Could anybody suggest a way to have a ping run every second but just for a very limited time, to stop them swamping network traffic. How could I turn this on and off / enable or disable the sensor? Thanks

Posts: 4

Participants: 2

Read full topic


Compare debian version

$
0
0

@weado wrote:

Hello,

I have an automation, where I compare the debian version on my host and on the internet. If the version is different, I want to notify me.
It’s not difficult, but my automation doesn’t work. My debian version isn’t the same version with internet, but it’s never notify.
This is my automation :

- alias: Compare Debian Version
  initial_state: true
  trigger:
    platform: time
    at: "03:00:00"
  condition:
    condition: template
    value_template: "{{ states('sensor.current_debian_version.state') != states('sensor.installed_debian_version.state') }}"
  action:
    service: persistent_notification.create
    data:
      title: "Debian Version"
      message: "Please upgrade your Debian Version"

When I put my “value_template” in the template service in HA, the result is “True”.

Thank you

Posts: 4

Participants: 2

Read full topic

SSL with multiple domains

$
0
0

@Djiest wrote:

I have my HA running via DuckDNS & SSL, conform this tutorial https://www.home-assistant.io/addons/duckdns/

On first install, I only entered my DuckDNS domain

my-domain.duckdns.org

to the config.
Now I would like to add the possibility for subdomains, as described in the manuals

my-domain.duckdns.org, *.my-domain.duckdns.org

If I change my config, will new certificates be generated, or do I have to start the process all over again?

Regards

And to all: HAPPY NEW YEAR!

Posts: 1

Participants: 1

Read full topic

Traccar devices not showing

$
0
0

@toby200 wrote:

Hi,

I’m relatively new to home assistant, and trying to add traccar to track locations. I’ve had a traccar server running previously, which is on the same machine (a pi 4) as home assistant but otherwise totally separate.

Home assistant is run as a docker image under docker-compose using plain home assistant (no hassio). I’ve added the following to my configuration.yaml:

device_tracker:
  - platform: traccar
    host: !secret traccar_host
    username: !secret traccar_user
    password: !secret traccar_password
    event: ["all_events"]
    new_device_defaults:
      track_new_devices: true
      hide_if_away: false

traccar_host is set to my internal IP address (192.168.1.xxx).

On startup, the only relevant line I see in the logs is this:
2019-12-31 15:08:05 INFO (MainThread) [homeassistant.components.traccar.device_tracker] C onnection to Traccar restored

I’m not sure what to expect next - I don’t see any new devices or entities added, and if I listen for events I don’t see any traccar-based events generated. The devices show up and update fine in Traccar itself, so I know that part is ok. Where do I go from here?

Many thanks,
Toby

Posts: 15

Participants: 2

Read full topic

Errors configuring myq cover

$
0
0

@dhebard wrote:

Hi all! New to HA!

I am attempting to setup my Chamberlain garage door opener in HA. I have the MyQ app and all is working fine there. I have a functioning install of HA on a Rpi4, version 0.103.5.

Configuration.yaml file:

# MyQ Garage Door Opener
cover:
- platform: myq
username: !secret myq_username
password: !secret myq_password
type: chamberlain

I receive this error:
Tue Dec 31 2019 10:43:01 GMT-0500 (Eastern Standard Time)

Component error: username - Integration ‘username’ not found. Component error: password - Integration ‘password’ not found. Component error: type - Integration ‘type’ not found. Invalid config for [cover.myq]: required key not provided @ data[‘password’]. Got None required key not provided @ data[‘username’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/integrations/myq/

Any help is appreciated!

Posts: 7

Participants: 3

Read full topic

Camera onvif

$
0
0

@peter78 wrote:

hello to all guys I have a Chinese camera with RTSP enabled, from lovelace hassio’s cards I will give myself a screenshot of the camera but if I open it will be loading indefinitely, I state that from vlc it works via rtsp address and port 554
who helps me to solve the problem?

my configuration.yaml

camera:

  • platform: onvif
    host: 192.168.1.48
    username: admin
    password: !secret camera_g
    name: cameraG
    port: 5000

the error on registry

WARNING (MainThread) [homeassistant.components.onvif.camera] Couldn’t connect to camera ‘cameraG’, but will retry later. Error: None
WARNING (MainThread) [homeassistant.components.onvif.camera] Couldn’t get camera ‘cameraG’ date/time. Error: None

Posts: 1

Participants: 1

Read full topic

Viewing all 105697 articles
Browse latest View live


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