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

Text with template in lovelace

$
0
0

@flemmingss wrote:

Easy question.
Is there any way I can write text with template in lovelace cards?

Example:
The temperature is {{ sensor.temp }}°C and the humidity is {{ sensor.hum }}%.
Will be:
The temperature is 25°C and the humidity is 20%.

Preferred within a entity card

Posts: 8

Participants: 2

Read full topic


Script Fail ''NoneType' object has no attribute 'is_on''

$
0
0

@cherryghost wrote:

Hi, I have simple automation that triggers my Nest to a certain temp for an hour when my daughters room is under 18 degrees. Was working last week, dont know why its started failing now. The script fails without automation triggered or forced.

My script:
‘1548859227197’:
alias: ‘Nest: 1 Hour Boost test’
sequence:

  • data:
    temperature: ‘22’
    service: climate.set_temperature
  • delay: 01:00:00
  • data:
    temperature: ‘16’
    service: climate.set_temperature

Automation:

  • id: ‘1573080097272’
    alias: XXs Room Trigger
    description: Trigger 1hr heating if temp below 18
    trigger:
    • below: ‘18’
      entity_id: sensor.temperature_158d000224cd36
      platform: numeric_state
      condition: []
      action:
    • service: script.1548859227197

Log entry
2019-11-13 12:53:58 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1824194960] ‘NoneType’ object has no attribute ‘is_on’
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 133, in handle_call_service
connection.context(msg),
File “/usr/src/homeassistant/homeassistant/core.py”, line 1233, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File “/usr/src/homeassistant/homeassistant/core.py”, line 1258, in _execute_service
await handler.func(service_call)
File “/usr/src/homeassistant/homeassistant/components/script/init.py”, line 139, in service_handler
if script.is_on:
AttributeError: ‘NoneType’ object has no attribute ‘is_on’

On latest Hass version. Any help appreciated

Posts: 2

Participants: 1

Read full topic

Problems with Homematic Thermostats (loosing connection?)

$
0
0

@HorizonKane wrote:

Hi all,

I have a weired problem. I had this problem before but so few times that I didn’t mind about it. I am automating my radiators using Node RED now and during testing, th eproblem occured quite often, maybe just because I alter the thermostats more often…

Sometimes my thermostats just stop working with HA completely. No matter where I adjust them, it is just ignored. In the logs I find this:

HMGeneric.setValue: SET_TEMPERATURE on OEQ2421xxx Exception: <Fault -1: 'Failure'>
13:55 components/homematic/climate.py (ERROR) - message first occurred at 13:32 and shows up 8 times
HMGeneric.setValue: SET_TEMPERATURE on OEQ18xxx:4 Exception: <Fault -1: 'Failure'>
13:55 components/homematic/climate.py (ERROR) - message first occurred at 13:32 and shows up 8 times
HMGeneric.setValue: SET_TEMPERATURE on OEQ2xxx4 Exception: <Fault -1: 'Failure'>
13:55 components/homematic/climate.py (ERROR) - message first occurred at 13:32 and shows up 8 times
HMGeneric.setValue: SET_TEMPERATURE on OEQ24xxx Exception: <Fault -1: 'Failure'>
13:55 components/homematic/climate.py (ERROR) - message first occurred at 13:32 and shows up 9 times
HMGeneric.setValue: SET_TEMPERATURE on OEQ1xxxx Exception: <Fault -1: 'Failure'>
13:55 components/homematic/climate.py (ERROR) - message first occurred at 13:32 and shows up 6 times
HMGeneric.setValue: SET_TEMPERATURE on OEQ18xxx Exception: <Fault -1: 'Failure'>
13:55 components/homematic/climate.py (ERROR) - message first occurred at 13:32 and shows up 6 times
HMGeneric.setValue: SET_TEMPERATURE on OEQ24xxxx Exception: <Fault -1: 'Failure'>
13:53 components/homematic/climate.py (ERROR)

The only way to mitigate the issue is to restart my whole Hass.io instance. And with that I mean to reboot Hass.io NOT restarting the Home Assistant service.

Any idea?

Posts: 3

Participants: 1

Read full topic

Entity card - deleting entities problem / strange behavior

$
0
0

@LogisticaLux wrote:

Hi guys,

If I want to delete some entities in a entity card (a click on the cross on the right of the entity in the list), than I can delete 1 or 2 entities, but to delete more, I have to close the card and to reopen it again.

Has anybody else recognized this behavior?

I am using the actual version of hassio.

Posts: 4

Participants: 2

Read full topic

What should i put the configuration for entity button?

$
0
0

@KCYeoh wrote:

Hi, I’m integrating the Xiaomi IR controller to hassio and i want to create custom button for sending IR commands. But I don’t know where should (which yaml) i put the all the entity button configuration. Should i put them in configuration.yaml?

Thanks in advance.

Posts: 4

Participants: 3

Read full topic

NZBGet config not working

$
0
0

@Andy wrote:

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Posts: 1

Participants: 1

Read full topic

Telegram send video file (Ring)

$
0
0

@jeroen.nijssen wrote:

Hello,

i’m trying to let ha. send a video to my telegram channel but i’m always greeted with an error:


Can't send file with kwargs: {'message': 'Last Ring Video', 'file': 'test.mp4'}

2:41 PM components/telegram_bot/__init__.py (ERROR)

'test.mp4' are not secure to load data from!

2:41 PM components/telegram_bot/__init__.py (WARNING

this is my config:

- id: ring_video_download
  alias: Ring Video Download
  hide_entity: true
  trigger:
  - entity_id: binary_sensor.ring_front_door_motion
    from: 'off'
    to: 'on'
    platform: state
  condition: []
  action:
  - service: downloader.download_file
    data_template:
      url: '{{ states.camera.front_door.attributes.video_url }}'
      filename: test.mp4
      overwrite: true
  - service: notify.oneplus
    data:
      message: Last Ring Video
      data:
        video:
        - file: test.mp4

i also added this to my configuration:

  download_dir: /share
python_script:

  whitelist_external_dirs:
    - /share

can anyone spot an error ?!?

Posts: 1

Participants: 1

Read full topic

Simple automation created in the UI driving me crazy

$
0
0

@garrettshannon wrote:

I’m new to using the automation editor in the UI but I love the simplicity; just can’t figure out what I’m doing wrong. Here’s what I’m trying to do: When the door goes from locked to unlocked wait 30 seconds and then lock the door.

I can successfully manually trigger the automation through the UI by clicking the info button and selecting “TRIGGER”. I can call the lock.lock service successfully in developer tools. But the automation won’t ever trigger by itself. What am I missing?

Trigger Type: State
Entity: lock.frontdoor_lock
From: locked
To: unlocked
For: 00:30

no conditions are set

Actions
Action Type: Call Service
Service: lock.lock
Service data: entity_id: lock.frontdoor_lock

Back in the version .7 to .8 range I had coded the same automation manually and I think this was my code. Note* the entity_id is correct in both examples. I have since changed it from lock.lock_front_door_lock to lock.frontdoor_lock

- id: '1550159043759'
  alias: Auto Lock Front Door
  trigger:
  - entity_id: lock.lock_front_door_lock
    for: 00:02:00
    from: locked
    platform: state
    to: unlocked
  condition: []
  action:
  - data:
      entity_id: lock.lock_front_door_lock
    service: lock.lock

Posts: 2

Participants: 2

Read full topic


Is there a way to share / publish a sensor /. graph as a web part or something externally that could be embedded?

$
0
0

@BlinkyLights wrote:

I would like to publish a single sensor, preferably as a graph in an external public page, is there any modules to do this a nice way?

Basically want to just embed a graph in another web page based system.

Posts: 1

Participants: 1

Read full topic

Way to disable notification badge?

$
0
0

@Stooovie wrote:

Is there a way to disable the notification badge? HA continuously re-discovers my Yeelight bulbs as Homekit devices (Not only at restarts) and I’m unable to get rid of this. Thanks.

Posts: 1

Participants: 1

Read full topic

Does ZHA support Multicast?

Automation Triggers

$
0
0

@ChaoticUnreal wrote:

So I just rewriting some of my automations to trigger off the outside temp instead of the season and was wondering if there is a better way to handle updating a single variable in multiple files (without creating a input_variable if possible)

Basically all my thermostat automations are a variation on this

id: Thermostat AC up at night
alias: Thermostat AC up at night
initial_state: 'on'
trigger:
  - platform: time
    at: "23:00:00"
condition:
  - condition: numeric_state
    entity_id: 'sensor.dark_sky_temperature_high_0d'
    above: 85
action:
  - service: climate.set_temperature
    data:
      entity_id: 2gig_technologies_ct101_thermostat_iris_cooling_1
      temperature: 75

and I’d like to be able to just have the two temps be pulled from a central location instead of having to update 5-10 different files to adjust the trigger point / set points.

Side note I’m not even 100% sure this works since I just changed it from checking the season (summer/winter) and to using the high/low temp for the day but I’m not at my actual server to test it. so comments on that would be helpful.

Also I do not want to use Node Red so please don’t suggest it.

Posts: 4

Participants: 4

Read full topic

Error with proximity

$
0
0

@jriker1 wrote:

I am trying to run some automations I found on a blog that is supposed to be working but whenever both devices report as away or are arriving I get errors in the logs like:

Traceback (most recent call last):
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57 in
result = self.fn*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassitant/components/proximity/init.py”, line 192, in check_proximity_state_change
if device_state.state in self.ignored_zones:
AttributeError: ‘NoneType’ object has no attribute ‘state’

Glad to share my automation just don’t have cut and paste access to my server right ow so all the above was hand typed. Will share the part I would guess triggered this:

 - alias: 'Away Mode'
   initial_state: 'on'
   trigger:
     platform: state
     entity_id: group.everyone
     to: 'not_home'
   action:
     - service: notify.ios_johniosapp
       data: 
         message: "no one home"

Thanks.

JR

Posts: 1

Participants: 1

Read full topic

Intent_script + snips: unable to change tv channel

$
0
0

@adrianofoschi wrote:

Hello,
I’m trying to change tv channel with my voice across snips.

My configuration.yaml

intent_script:
  tvChangeChannel:
    action:
      - service: media_player.play_media
        data:
          entity_id: media_player.lg_webos_smart_tv
          media_content_type: "channel"
        data_template:
          media_content_id: "{{tv_channel}}"

My snips assistant intent:

intents" : [ {
    "id" : "adrianofoschi:tvChangeChannel",
    "type" : "registry",
    "version" : "0.6.0",
    "language" : "it",
    "slots" : [ {
      "name" : "tv_channel",
      "id" : "5K2xOzcwt",
      "entityId" : "snips/number",
      "missingQuestion" : "",
      "required" : false
    } ],
    "name" : "tvChangeChannel",
    "enabledByDefault" : true
  }

And snips-watch output of my voice

[18:15:18] [Nlu] detected intent adriano:tvChangeChannel with confidence score 0.681 for input "avvia canale uno"
              Slots ->
                 tv_channel -> 1 (confidence: 1.000) 
[18:15:18] [Dialogue] New intent detected adrianofoschi:tvChangeChannel with confidence 0.681
              Slots ->
                 tv_channel -> 1 (confidence: 1.000)

It doesn’t work.
It works if I replace “{{tv_channel}}” with a number, 5 for example.

Posts: 1

Participants: 1

Read full topic

Xiaomi Aqara and Home Assistant on Synology DS - Temperature Sensors

$
0
0

@Nomad_of wrote:

Hello folks,

I have the following issue:

I have connected the Hub to home assistant with this code:

xiaomi_aqara:
discovery_retry: 10
gateways:
- mac: my:ma:cx:xx:xx:xx
key: mykey
host: ‘192.168.178.ip of hub’

It is connected and I can see some data of the aqara sensors like temperature and humidity. But they never change…the are constant all day long. And there ist only a second point in history if I restart the home assistant container. that means I did not get continously information from the sensors. Is there any way to trigger this?
With my modem I block the internet connection from the aqara hub.

Have you any ideas?

BR
Nomad_of

Posts: 1

Participants: 1

Read full topic


Help with weekdays automation

$
0
0

@Makis wrote:

I have the following code to open a switch in workdays at 21:45. Is there a way to add in the same automation to open the switch at 23:00 o’clock at the weekend or should I add a new one?

#Bed Heat
- id: Bed Heat
  alias: Bed Heat
  trigger:
    platform: time
    at: '21:45:00'
  condition:
    condition: time
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
  action:
    - service: switch.turn_on
      entity_id: switch.sonoff_10001baf48

Posts: 2

Participants: 2

Read full topic

ColorPicker Card Lovelance

$
0
0

@jpb wrote:

Hey guys,
i am trying to control my LED-Strip with HA.

On-Off works
Effects are working
Brightness is working

i also want to control the RGB value for the Strip.

So the question is, is there a ColorPicker for use in Lovelance?

Thanks

Posts: 2

Participants: 2

Read full topic

Help needed with thermostat configuration

$
0
0

@bedfellow wrote:

Hi,

I’m new here and very new to YAML, so sorry if this is obvious to everyone else, but I can’t get the thermostat card in HA to switch on/off my thermostat. I want it to control a sonoff basic, running Tasmota, with a AM2301 attached.

Here is the YAML extract for the relevant functions. The switch works in it’s own right, i.e. I can switch it on/off via HA and the sensor also works and can be displayed in HA but no matter what I set the temperature to on the thermostat card, it does not switch the sonoff on/off, it just displays idol even when the temperature is below the set point:

switch:
  - platform: mqtt
    name: "Boiler"
    command_topic: "cmnd/boiler/power"
    state_topic: "stat/boiler/POWER"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    retain: false
    
climate:
  - platform: generic_thermostat
    name: "Thermostat"
    heater: switch.boiler
    target_sensor: sensor.boiler
    min_temp: 7
    max_temp: 26
    min_cycle_duration:
      minutes: 1
    initial_hvac_mode: "off"      
    cold_tolerance: 0.5
    hot_tolerance: 0.5
    away_temp: 7
    precision: 0.1

sensor:
  - platform: mqtt
    state_topic: 'tele/boiler/SENSOR'
    name: 'Room Temp' #AM2302
    unit_of_measurement: '°C'
    value_template: '{{ value_json.AM2301.Temperature }}'
  - platform: mqtt
    state_topic: 'tele/boiler/SENSOR'
    name: 'Room Humidity'
    unit_of_measurement: '%'
    value_template: '{{ value_json.AM2301.Humidity }}' 

Posts: 1

Participants: 1

Read full topic

Show different images depending of sensors value

$
0
0

@hajo62 wrote:

I would like to show different icon depending on the value a sensor has. The sensors values are 0, 1 ,2 and 3.
I though the picture-glance-card would be the solution, but I did not get it to run.

type: picture-glance
title: Status
image: /local/images/default.jpg
entity: sensor.heizung_terrasse_temperatur
state_image:
  0: /local/images/off.jpg
  1: /local/images/on.jpg
entities:
  - entity: sensor.homee_status

But I see this error in the card configuration editor:
Expected a value of type `undefined` for `state_image` but received `{"0":"/local/images/off.jpg","1":"/local/images/on.jpg"}`.

The result is the same when I quote the values with single- or double quotes like “0”…

Posts: 1

Participants: 1

Read full topic

Proximity.home always 0?

$
0
0

@jriker1 wrote:

I have been trying to identify when someone is nearing the house, or specifically 2 miles away. I am using:

- alias: 'Home Proximity'
  initial_state: 'on'
  trigger:
    platform: numeric_state
    entity_id: proximity.home
    below: 2

Problem I’m running into is the value of proximity.home is always 0.

In my configuration.yaml I have:

proximity:
  home:
    devices:
      - device_tracker.johniosapp
      - device_tracker.sueiosapp
    tolerance: 50
    unit_of_measurement: mil

Individuall device_tracker.johniosapp is right now showing 13 and device_tracker.sueiosapp is showing 4 but proximity.home is showing 0. Am I referencing something wrong?

Thanks.

JR

Posts: 1

Participants: 1

Read full topic

Viewing all 109380 articles
Browse latest View live


Latest Images