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

Menu bar showing empty space

$
0
0

@WouterR wrote:

Hi All,

I’ve deleted a couple of panel_iframe entries from my config file. The iframes have disappeard but I’m now stuck with an empty space :-/.

Anyone have a clue how to fix this?

Wouter

Posts: 2

Participants: 1

Read full topic


Can't get custom cards running (newbee :-( )

$
0
0

@ronniebee wrote:

Dear all,

i’ve spend the whole day on solving the following issue:

I tried to get the custom cards (eg xiaomi) ,installed via Hacs, up and running but nothing happens:
-the files are in the www directory
-The url is added in my config

resources:

  • type: js
    url: /community_plugin/lovelace-xiaomi-vacuum-card/xiaomi-vacuum-card.js
  • type: module
    url: /community_plugin/spotify-card/spotify-card.js

I restarted HA but nothings shows.

When i look at the file:

/config/www/community/lovelace-xiaomi-vacuum-card/xiaomi-vacuum-card.js.gz
is shows:
‘utf-8’ codec can’t decode byte 0x8b in position 1: invalid start byte’

but also:
/config/home-assistant_v2.db
shows:
‘utf-8’ codec can’t decode byte 0x8d in position 31: invalid start byte’

questions?
1)Do I need to intall a manual card
2) is it normal the .gz file shows this text?
3) is it normal the V2 file shows this text?

who can help me?

Regards,

Ronald

Posts: 7

Participants: 2

Read full topic

Scene Issues avoiding update (according to config checker)

$
0
0

@Tyfoon wrote:

Still on 99.3 and wanting to update. I always use the ‘configuration checker’ in hassio.

This reports an error:

ERROR:homeassistant.scripts.check_config:BURB
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/scripts/check_config.py", line 206, in check
    async_check_ha_config_file(hass)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/check_config.py", line 140, in async_check_ha_config_file
    p_validated = component_platform_schema(p_config)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 205, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 285, in _exec
    v = func(path, v)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/scene/__init__.py", line 45, in _platform_validator
    return platform.PLATFORM_SCHEMA(config)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 386, in validate_mapping
    cval = cvalue(key_path, value)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 205, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 285, in _exec
    v = func(path, v)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 635, in validate_sequence
    cval = validate(index_path, value)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 386, in validate_mapping
    cval = cvalue(key_path, value)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 205, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 285, in _exec
    v = func(path, v)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/homeassistant/scene.py", line 38, in _convert_states
    if isinstance(states[entity_id], dict):
KeyError: 'scene.gardenlight_on'
Fatal error while loading config: 'scene.gardenlight_on'
Failed config
  General Errors: 
    - 'scene.gardenlight_on'

Successful config (partial)

I know some stuff has changed in the scene section after 101 so I checked all of that. I did not have any strange stuff in the scenes anyway and took out any transitions I had.

It seems to stall on the gardenlight scene (posted below) but also there I cannot find anything wrong. I checked all the entities and the states (eg if they would support brightness etc)

Would welcome any suggestions on what to check/change here.

  - name: gardenlight_on
    entities:
      switch.fibaro_system_fgs221_double_relay_switch_2x15kw_switch_27_0:
        state: on
      switch.lamp_zijkant_huis_258:
        state: on
      switch.huis_buiten_114:
        state: on
      light.qubino_zmnhda2_flush_dimmer_level:
        state: on
        brightness: 52
      switch.achtertuin_220:
        state: on

Posts: 1

Participants: 1

Read full topic

Group Homematic switches to act as one

$
0
0

@dantist wrote:

I have four Homematic switches in the hallway, which makes each automation rule start like this:

  trigger:
  - platform: event
    event_type: homematic.keypress
    event_data:
      name: MEQ1850393
      channel: 1
      param: PRESS_SHORT
  - platform: event
    event_type: homematic.keypress
    event_data:
      name: MEQ1850385
      channel: 1
      param: PRESS_SHORT
  - platform: event
    event_type: homematic.keypress
    event_data:
      name: MEQ0085036
      channel: 1
      param: PRESS_SHORT
  - platform: event
    event_type: homematic.keypress
    event_data:
      name: MEQ0159704
      channel: 1
      param: PRESS_SHORT

Is there a way to group the switches to act as one?

Posts: 1

Participants: 1

Read full topic

Template Sensor to check if ZWave network finished starting, healing, and all nodes have been querried

$
0
0

@jhein wrote:

Hi, is it possible to create template sensors that check the status of the ZWave network in general?

I would like to create a sensor that shows me:

  • starting
  • started
  • all nodes queried
  • is currently healing
    etc.

Any ideas or pointers into the right direction are appreciated.

Thanks,
Julian

Posts: 1

Participants: 1

Read full topic

Template to include entity (or not)

$
0
0

@belowe wrote:

This seems so simple to me that I think I may be thinking about it wrong. I have a ‘Christmas Time’ input boolean that we turn on when we get all the Christmas decorations out. I have a ‘lights out’ automation that turns some specific lights off at night. If the boolean is on, I want an entity included in the automation. Otherwise, I want it left out.
The below code will work when the boolean is on BUT not when it’s off. I get that. My question is how do I do what I want in THIS automation?

- alias: Nighttime lights off
  trigger:
    platform: template
    value_template: "{{ states('sensor.time') == (state_attr('input_datetime.outside_lights_off_time', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
  action:
    - data_template:
        entity_id:
          - group.front_yard
          - group.back_yard
          - >-
            {% if states('input_boolean.christmas_time') == 'on' %}
            switch.christmas_tree
            {% endif %}
      service: homeassistant.turn_off

Posts: 2

Participants: 2

Read full topic

WLED, Effects & Google Assistant

$
0
0

@DaveUK83 wrote:

Hi,
I’ve got WLED intergrated with HA and can turn it on and off via Google Assistant, however i’m having trouble changing the effects via voice, even though it says it’s supported.

Any idea of the correct voice command to use to change the effect?

This is what I currently have:

min_mireds: 153
max_mireds: 500
effect_list: Android,BPM,Blink,Blink Rainbow,Breathe,Chase,Chase,Chase Flash,Chase Flash Rnd,Chase Rainbow,Chase Rainbow,Chase Random,Circus,Colorful,Colorloop,Colortwinkle,Colorwaves,Dark Sparkle,Dissolve,Dissolve Rnd,Dual Scan,Dual Scanner,Dynamic,Fade,Fill Noise,Fire 2012,Fire Flicker,Fireworks,Gradient,Halloween,ICU,In In,In Out,Juggle,Lake,Lighthouse,Lightning,Loading,Mega Strobe,Merry Christmas,Meteor,Multi Comet,Noise 1,Noise 2,Noise 3,Noise 4,Oscillate,Out In,Out Out,Palette,Pride 2015,Railway,Rain,Rainbow,Rainbow Runner,Random Colors,Red & Blue,Ripple,Running,Running 2,Saw,Scan,Scanner,Smooth Meteor,Solid,Sparkle,Sparkle+,Stream,Stream 2,Strobe,Strobe Rainbow,Sweep,Sweep Random,Traffic Light,Tri Chase,Tri Fade,Tri Wipe,Twinkle,Twinklefox,Wipe,Wipe Random
intensity: 213
palette: Default
playlist: null
preset: null
speed: 168
friendly_name: Window Light
icon: mdi:led-strip-variant
supported_features: 55

I’ve tried many variations such as “Ok google, change window light effect to Sweep” - But it just comes back with web results.

Posts: 1

Participants: 1

Read full topic

PC Switch not updating

$
0
0

@amiranees wrote:

Hi peepz,

I made a switch on home assistant to turn on and off the pc remotely. Everything works, at least for a part. When I turn on the pc, well the pc turns on but the switch does not update. Ideas?
Here is my code:

switch:
  - platform: wake_on_lan
    mac_address: "mac"
    name: GGPC
    host: ipadres
    turn_off:
     service: hassio.addon_stdin
     data:
      addon: core_rpc_shutdown
      input: GGPC

Posts: 1

Participants: 1

Read full topic


Help with Timer and Lights on Motion

$
0
0

@Jamie_Pryer wrote:

Hey all,

Ive setup the below, which works well to turn the lights on.
However im confused about the timer.
When there is motion in the room, the timer then starts to count down, however i was expecting that more motion in that room, would keep resetting the timer back to 30 minutes?
however it just keeps counting down? which means when it gets down to 0, all lights go off, even if there has been motion the room?

do i need to add in a stop function as well? i dont see a “reset” option?
where am i going wrong?

Host system

Hostname hassio
System HassOS 3.5

.

configuration:
timer:
  timer_motion_living_room:
    duration: '00:30:00'


automation:
############### living room ###############
- id: livingroomlightsonmotion
  alias: living room lights on motion
  trigger:
  - entity_id: binary_sensor.living_room
    from: 'off'
    platform: state
    to: 'on'
  condition: 
    condition: state
    entity_id: sun.sun
    state: below_horizon
  action:
  - data_template:
      entity_id: group.room_living_room_all_lights 
    service_template: switch.turn_on 
  - service: timer.start
    data:
      entity_id: timer.timer_motion_living_room

- id: livingroomlightsoffafter30minnomotion
  alias: living room lights off no motion 30min
  trigger:
    platform: event
    event_type: timer.finished
    event_data:
      entity_id: timer.timer_motion_living_room
  action:
  - data_template:
      entity_id: group.room_living_room_all_lights 
    service_template: switch.turn_off

Posts: 2

Participants: 2

Read full topic

Mobile_app device_class battery: icon: mdi-battery-0?

$
0
0

@Mariusthvdb wrote:

Hi, all of a sudden I noticed several of my battery_level sensors of the mobile_app integration not having icon.
Checking the state I see they are supposed to set the icon to mdi:battery-0. which doesnt exist, it should probably be battery-outline?

do we have a bug?

51

54

08

Posts: 1

Participants: 1

Read full topic

Mycroft AI voice assistant

$
0
0

@Anderen2 wrote:

I’ve been following the Mycroft Mark II for a while now, but I cannot see it being mentioned here.
Anyone having experience with their Mark-1 voice assistant, or their opensource software on other hardware?

Posts: 7

Participants: 4

Read full topic

Solved: Am I being hacked (mqtt)?

$
0
0

@iz3man wrote:

I got a strange phaenomen that i can’t track down.
I have hassio running, with HA exposed to the internet through nginx on another machine. This one also host the certificates etc …
I have mosquitto setup without ssl, but with user/pwd. For some days now i can see the mqtt sensors disappearing in the webfront for a second (all sensors turn to unavailable)

Then, after a second they are back again. But still some of my routers stay unconnected, and the whole network is very unstable. So i checked the logs, and see this:

1575622533: New connection from 172.30.33.5 on port 1883.
[INFO] found mqtt on Home Assistant
1575622535: New client connected from 172.30.33.5 as mqttjs_abb6f773 (p2, c1, k60, u'mqtt').
1575622564: New connection from 192.168.1.75 on port 1883.
1575622564: New client connected from 192.168.1.75 as 2385758 (p2, c1, k15, u'mqtt').
1575622564: Client 2385758 disconnected.
1575622592: Socket error on client mqttjs_abb6f773, disconnecting.
1575622593: New connection from 172.30.33.5 on port 1883.
1575622593: New client connected from 172.30.33.5 as mqttjs_abb6f773 (p2, c1, k60, u'mqtt').
1575622652: Socket error on client mqttjs_abb6f773, disconnecting.
1575622653: New connection from 172.30.33.5 on port 1883.
1575622653: New client connected from 172.30.33.5 as mqttjs_abb6f773 (p2, c1, k60, u'mqtt').
1575622712: Socket error on client mqttjs_abb6f773, disconnecting.
1575622713: New connection from 172.30.33.5 on port 1883.

I checked 172.30.33.5 but only got the info that it’s an IP address from Los Angeles. I’m not sure if this is some of my devices that causes that, and it’s not bad at all, but i find no way to debug this.

Can anyone help?? Thanks

Posts: 12

Participants: 5

Read full topic

Tasmota; devices not seperately controlable

$
0
0

@RvdHNL wrote:

Just started with HA, have some issues, one of which are my Tuya based smart plugs.

Flashed the plugs with tasmota and set the MQTT server (runs on a different pi). On Domoticz my plugs work fine, in HA I used the TasmoAdmin addon to discover the devices. It found them and added them with the correct names etcetera.

The issue I have is when I switch one of the devices they are are all toggled… In tasmota ui config is set to posts to homeassistant topic with full topic being set to use the device id. Am I missing something here?

Posts: 6

Participants: 3

Read full topic

New Scenes Editor

$
0
0

@reclusivemonkey wrote:

I read about the new changes to scenes in 102. Most of my scenes pointed to scripts, with just the odd one or two entities in there, so no problem I’ll just add everything to scripts and trigger the scripts from the scene. I thought this was my best option as I use both Alexa and Siri in conjunction with HA and I wasn’t sure they would both ‘support scripts’, but they have always handled scenes fine.

However, my scenes no longer seem to trigger my scripts. Here is an example of a scene;

---
- name: bedtime
  entities:
    script.bedtime:
      state: on

Pretty simple. Yet it does not turn on the scene in HA, and thus neither from Alexa or Siri. I get no errors in my log. Nor does it register in the logbook as being turned on. When I turn the script on using services, it works fine.

Well ok I thought, if my ‘scenes’ are just going to point at a script I may as well use the new scenes editor (I prefer yaml in most areas) so I set this up, and added the scene.bedtime entity. Except adding the scene seems to be in the ‘off’ state. I can also see this is the case in the scenes.yaml file.

Now I think I can fix this by just completely abandoning scenes and working with scripts. I am guessing they will work with Alexa and Siri (once I remove all the old scenes of course as there will be naming conflicts). My post here is not so much asking for help, but wondering if I have completely got the wrong end of the stick with the new scenes or is there something amiss here? If 102 was the first version of HA I had installed, I would be completely scratching my head here. Has anyone else had this kind of experience?

Posts: 3

Participants: 2

Read full topic

Goodnight routine - script or automation?

$
0
0

@Juggler wrote:

I am in the process of writing a “goodnight” routine. My question is: should this be a script or routine?

The pseudo-code for my routine is the following:

if alarm.zone1 open {
  send notification
  cancel routine
}

if either garage door open {
  close garage doors
  wait 20s
  if either garage door still open {
    send notification
    cancel routine
  }
}

# rest is simple, turning off lights, setting thermostat etc...

Based on the above, I have broken the 2 sub-routines down and am coding them individually as scripts. Should they both be called from an automation that is triggered?

cheers,
J.

Posts: 2

Participants: 2

Read full topic


Average temprerature across rooms - What is the best way?

$
0
0

@klogg wrote:

I currently have a template sensor to average the temperature across a group of rooms but I am not convinced this is the best (most efficient) approach.

Has anyone else done this and if so how do you do it?

Here is mine. It ignores readings less than 2 minutes old and also readings more than 10 minutes old as my temperature sensors can update several times a minute and also have been known to go offline :slight_smile:

   average_downstairs_temperature:
    friendly_name: Average Downstairs Temperature
    entity_id:
      - sensor.hall_temperature
      - sensor.kitchen_temperature
      - sensor.sitting_room_temperature
      - sensor.back_bedroom_temperature
    value_template: >
      {% set entities = ['sensor.hall_temperature',
                         'sensor.kitchen_temperature',
                         'sensor.sitting_room_temperature',
                         'sensor.back_bedroom_temperature'] %}
      {% set time = as_timestamp(now()) %}
      {% set ignore_recent = 120 %}
      {% set ignore_old = 600 %}
      {% set ns = namespace(count=0, value=0) %}
      {% for e in entities %}
        {% set domain, object_id = e.split('.') %}
        {% set s = states[domain][object_id] %}
        {% if s.state is defined and
              s.state is not none and
              s != 'unknown' and
              s != 'unavailable' and
              s != '' and
              ((time - as_timestamp(s.last_updated)) < ignore_recent or
               (time - as_timestamp(s.last_updated)) > ignore_old) %}
          {% set ns.count = ns.count + 1 %}
          {% set ns.value = ns.value + s.state | float %}
        {% endif %}
      {% endfor %}
      {% if ns.count == 0 %}
        'unavailable'
      {% else %}
        {{ (ns.value / ns.count) | round (1) }}
      {% endif %}
    unit_of_measurement: °C

Posts: 6

Participants: 4

Read full topic

Shelly 2.5

$
0
0

@Brammekeuh wrote:

Hi,

I installed my 2.5 as rollershutter, and control it witch MQTT.

Now is my question of I can use open and close state can use as a sensor.

For using in other purposes.

Thanks!

Posts: 5

Participants: 2

Read full topic

Sensor image version raspberrypi4

$
0
0

@Vasco wrote:

Hey everyone,

I am working on my automations and one of them it so alert me when there’s a new version of hassio available for my raspberry pi 4. On the home-assistant website it talks about:

But when i put that in my config, home assistant says on a check that it’s not a valid entry. When I change it to raspberrypi3, no errors. Is it because the image is currently RC state still?

Posts: 4

Participants: 2

Read full topic

Automation Sun Offset Error

$
0
0

@fountain27 wrote:

I am trying to add an offset to a existing automation. The YAML code is correct, but I get a notification in HA “invalid config”.

Here is the code:

  trigger:
    platform: state
    entity_id:  device_tracker.android
    from: 'not_home'
    to: 'home'
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
    offset: "-00:45:00"
  action:
  - service: switch.turn_on
    entity_id:
      - switch.honeywell_unknown_type_4952_id_3036_switch
      - switch.0220036060019472dce9
      - switch.0220036060019472da94

Thank you for any suggestions.

Posts: 5

Participants: 2

Read full topic

HASSIO Deconz AddOn: CONBEE 1 - can not upgrade Firmware

$
0
0

@cva wrote:

I am running HASSIO on Ubuntu - Zwave (aeotec) + Zigbee (official HA Deconz addon - ConBee 1 stick);
Everything is working correctly, I have a mix of IKEA & Xiaomi devices running.
But I cannot upgrade the firmware of my Conbee (1) - in the past I have done a full re-install of deconz and that did upgrade the firmware, but I had to re-pair/re-name everything …

I’ve read the docs/comments/forum/ … and tried the following; removed my Z-wave USB stick, I have even installed deconz on windows and tried to upgrade the firmware, but still no update …

Any idea how I can update (without loosing my conf) ? Apart from Ubuntu I have a Windows & raspberry available to config/use for this …

log-extract deconz:

15:19:51:733 COM: /dev/ttyUSB1 / serialno: DM0103B6
15:19:51:733 COM: --dev: /dev/ttyUSB1 (ConBee)
15:19:51:783 Device firmware version 0x261F0500
15:19:51:796 unlocked max nodes: 200
15:19:52:084 Device protocol version: 0x0106
15:19:52:277 Current channel 15
15:19:52:341 CTRL ANT_CTRL 0x02
15:19:52:453 Device protocol version: 0x0106
15:19:52:645 Current channel 15
15:19:52:709 CTRL ANT_CTRL 0x02
....
15:19:58:739 GW firmware version: 0x261f0500
15:19:58:739 GW firmware version shall be updated to: 0x26330500
15:20:25:784 Current channel 15

Posts: 2

Participants: 2

Read full topic

Viewing all 107685 articles
Browse latest View live