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

Having trouble enabling device tracking

$
0
0

@jjudson wrote:

I’m trying to setup my system to use presence detection, and I’m having some trouble.

I have a Netgear router, and I entered this into the configuration.yaml file:

device_tracker:
  - platform: netgear
    password: XXXXXXXXXXXX
    interval_seconds: 10
    consider_home: 0:05
    new_device_defaults:
      track_new_devices: true
      hide_if_away: false

The program generated a known_device.yaml file as expected, but the first thing I noticed were a series of log errors:

2020-01-17 13:59:12 ERROR (MainThread) [homeassistant.components.device_tracker] The see service is not supported for this entity device_tracker.jons_iphone
2020-01-17 13:59:12 ERROR (MainThread) [homeassistant.components.device_tracker] The see service is not supported for this entity device_tracker.donnas_iphone
2020-01-17 13:59:21 WARNING (SyncWorker_8) [pynetgear] Unexpected entry: ['']
2020-01-17 13:59:44 WARNING (SyncWorker_16) [pynetgear] Unexpected entry: ['']
2020-01-17 13:59:54 WARNING (SyncWorker_7) [pynetgear] Unexpected entry: ['']
2020-01-17 14:00:17 WARNING (SyncWorker_17) [pynetgear] Unexpected entry: ['']
2020-01-17 14:00:26 WARNING (SyncWorker_7) [pynetgear] Unexpected entry: ['']
2020-01-17 14:00:49 WARNING (SyncWorker_5) [pynetgear] Unexpected entry: ['']
2020-01-17 14:01:00 WARNING (SyncWorker_10) [pynetgear] Unexpected entry: ['']
2020-01-17 14:01:22 WARNING (SyncWorker_0) [pynetgear] Unexpected entry: ['']
2020-01-17 14:01:33 WARNING (SyncWorker_14) [pynetgear] Unexpected entry: ['']
2020-01-17 14:01:44 WARNING (SyncWorker_6) [pynetgear] Unexpected entry: ['']
2020-01-17 14:01:54 WARNING (SyncWorker_4) [pynetgear] Unexpected entry: ['']
2020-01-17 14:02:06 WARNING (SyncWorker_12) [pynetgear] Unexpected entry: ['']
2020-01-17 14:02:17 WARNING (SyncWorker_0) [pynetgear] Unexpected entry: ['']
2020-01-17 14:02:27 WARNING (SyncWorker_4) [pynetgear] Unexpected entry: ['']
2020-01-17 14:02:38 WARNING (SyncWorker_6) [pynetgear] Unexpected entry: ['']
2020-01-17 14:02:49 WARNING (SyncWorker_7) [pynetgear] Unexpected entry: ['']
2020-01-17 14:03:00 WARNING (SyncWorker_11) [pynetgear] Unexpected entry: ['']
2020-01-17 14:03:12 WARNING (SyncWorker_19) [pynetgear] Unexpected entry: ['']
2020-01-17 14:03:23 WARNING (SyncWorker_2) [pynetgear] Unexpected entry: ['']
2020-01-17 14:03:33 WARNING (SyncWorker_0) [pynetgear] Unexpected entry: ['']
2020-01-17 14:03:45 WARNING (SyncWorker_17) [pynetgear] Unexpected entry: ['']
2020-01-17 14:03:56 WARNING (SyncWorker_12) [pynetgear] Unexpected entry: ['']
2020-01-17 14:04:06 WARNING (SyncWorker_2) [pynetgear] Unexpected entry: ['']
2020-01-17 14:04:17 WARNING (SyncWorker_7) [pynetgear] Unexpected entry: ['']
2020-01-17 14:04:28 WARNING (SyncWorker_1) [pynetgear] Unexpected entry: ['']
2020-01-17 14:04:39 WARNING (SyncWorker_9) [pynetgear] Unexpected entry: ['']
2020-01-17 14:04:50 WARNING (SyncWorker_15) [pynetgear] Unexpected entry: ['']
2020-01-17 14:05:13 WARNING (SyncWorker_16) [pynetgear] Unexpected entry: ['']
2020-01-17 14:05:23 WARNING (SyncWorker_8) [pynetgear] Unexpected entry: ['']

One of the devices in question appears like this in the known_devices.yaml file (Mac address obviously removed):

XX_XX_XX_XX_XX_XX:
  hide_if_away: false
  icon:
  mac: XX:XX:XX:XX:XX:XX
  name: XX XX XX XX XX XX
  picture:
  track: true

My devices are also not being recognized in the Overview screen.

I set this up previously and did get the devices recognized, but they reported home even though I drove one device several miles away. I also saw the same error messages in the log file above. After that, I deleted the known_devices file, commented out the Netgear router info, rebooted and set it up again. Now as above, I’m getting the same log errors, but the devices are not being seen (these log errors did not show up after I deleted the known_devices file and commented out the Netgear router and after rebooting – only when I reset them again did the errors show up).

I’m using the Home Assistant app on both of these devices. All location sources are enabled on the app, and the location coordinates are reporting correctly, with a radius of 100 meters.

Enabling this functionality is critical to my plans for this system. Any thoughts on what I missed?

Posts: 7

Participants: 2

Read full topic


0.104.1 - 68 entities are offline :-(

$
0
0

@fribse wrote:

What the … happened here?
All the google cast’s are off line, all the esphome’s have duplicates, the zigbee (deconz) has gone haywire.
Geeez. I know how to spend the weekend now :frowning:

Posts: 4

Participants: 3

Read full topic

Cant save snapshot from camera

$
0
0

@tung256 wrote:

using Dev Tools/Services tab, i have:
service: camera.snapshot
entity: camera.armcrest_camera
data: entity_id: camera.amcrest_camera
filename: ‘/tmp/armcrest_camera_{{ now().strftime("%Y%m%d-%H%M%S") }}.jpg’

i was expecting to see the file here: /home/tung/.homeassistant/tmp
BUT
error log shows: Can’t write /tmp/armcrest_camera_20200117-142600.jpg, no access to path!

i put this in config yaml as well but it did not help:
whitelist_external_dirs:
- /tmp/

this is on ubuntu with HA installed via Python venv. all the tutorials i saw was for HassIO

Posts: 7

Participants: 4

Read full topic

0.104 Error when replacing group.all_devices with all

$
0
0

@philippps wrote:

Hello,

When trying to replace group.all_devices with all (breaking change in 0.104)

- alias: 'Anwesenheit ISS'
  trigger:
    platform: state
    entity_id: binary_sensor.iss
    to: 'on'
  condition:
    condition: and
    conditions:
    - condition: state
      entity_id: automation.anwesenheit
      state: 'on'
    - condition: state
      entity_id: group.all_devices
      state: 'home'
  action:
    service: script.turn_on
    entity_id: script.anwesenheit_iss

I get the following error

Invalid config for [automation]: Entity ID all is an invalid entity id for dictionary value @ data['condition'][0]['conditions'][1]['entity_id']. Got None
extra keys not allowed @ data['condition'][0]['conditions'][1]['state']. Got None
not a valid value for dictionary value @ data['condition'][0]['conditions'][1]['condition']. Got None. (See /config/configuration.yaml, line 14). Please check the docs at https://home-assistant.io/integrations/automation/

Any hint or advice how to resolve that?

Posts: 3

Participants: 2

Read full topic

Cannot get macros to resolve in Automations

$
0
0

@rhouseman wrote:

I am working my way into Home Assistant. I’ve got my instance running in a venv on a Fedora VM, and am updated to .104.1. I’ve run across an issue trying to create an automation that I cannot figure out.

Here’s the yaml I’m using:

  alias: download video when motion detected
  description: ''
  trigger:
  - entity_id: binary_sensor.side_door_motion
    from: 'off'
    platform: state
    to: 'on'
  action:
  - data:
      filename: "{{ states('camera.side_door', 'friendly_name') }}"
      overwrite: false
      subdir: "{{ states('camera.side_door', 'friendly_name') }}"
      url: "{{ states('camera.side_door', 'video_url') }}"
    service: downloader.download_file

My problem is that none of the attributes resolve. If I hard code a URL in there, it does it’s thing and it creates a subdirectory called {{ states(‘camera.side_door’, ‘friendly_name’) }} and a file of the same name in the folder. If I paste this code into the dev tools/template page, it all resolves as expected. I’ve tried changing the quotes, spacing, using states.camera.side_door.attributes.video_url instead of the above syntax, and nothing I do works once it’s an automation. It fires correctly, which is what most of the posts I can find have problems with, but the action doesn’t work.

Help!

Posts: 3

Participants: 2

Read full topic

Topic name components, magic?

$
0
0

@Hogbert wrote:

I have two sensors, B0004 and 8900012 and I get the data from topics

  - platform: mqtt
    name: "8900012"
    state_topic: "sensor/8900012/status"
    unit_of_measurement: 'C'
    value_template: "{{ value_json.value  }}"
  - platform: mqtt
    name: "B0004"
    state_topic: "sensor/B0004/status"
    unit_of_measurement: 'C'
    value_template: "{{ value_json.value  }}"

The json structure is similar for the topics.

I can see messages coming in in the mqtt listener/debugger.

However, I can not get the data into logic from the sensor B0004 unlike from the other one.

As I am a newbie both in MQTT and in HA, I’m running out of ideas here.

Only possiblity I can see is that there is some magic, maybe interpreting B0* as a binary number or something funny like that.

Any ideas? I can not change the topics in the sending system.

I browsed through the MQTT protocol specification but could not see any restrictions related to a problem like this.

My HA is of version 0.103.5

Posts: 5

Participants: 3

Read full topic

Owntracks unique id error

$
0
0

@plindeman wrote:

For some reason I’m getting the following error in the logfile after starting up

2020-01-17 20:49:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 399, in _async_add_entity
    raise HomeAssistantError(msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: device_tracker.owntrack_iphone_peter. Platform owntracks does not generate unique IDs
2020-01-17 20:49:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 399, in _async_add_entity
    raise HomeAssistantError(msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: device_tracker.owntrack_iphone_meike. Platform owntracks does not generate unique IDs

I tried to remove the owntracks integration, checked the core.* files to remove any owntracks leftovers and then reinstall the integration but doesn’t help.

Anybody got an idea how to fix this?

Posts: 1

Participants: 1

Read full topic

OSRAM Lightify BR Tunable White bulb detected incorrectly

$
0
0

@Ken_Marshall wrote:

So I have a bunch of Sylvania BR30 tunable white zigbee bulbs, and all of them are being incorrectly detected with a supported_features value of 51. I believe it should be 35 as these are not RGB bulbs.

I can work around this problem by using the Customize Entities feature, so that the lovelace UI works correctly. The problem problem that I can’t work around is building scenes with the UI. I think because the bulbs come in with a rgb_color setting in the entity, because they were originally configured as 51s, that rgb_color setting automatically gets included in the resulting scene (built through the UI), which breaks color temp support (I just found this out: https://community.home-assistant.io/t/setting-color-with-rgb-color-doesnt-work-with-data-template/75415).

How would I go about changing the implementation/detection of these bulbs so that they come in with the correct supported_features value?

Alternatively, I may be way off base as to why the scenes feature isn’t working correctly, so I’m open to all suggestions.

Posts: 1

Participants: 1

Read full topic


Send RF Bridge commands

$
0
0

@artomka wrote:

Hi, I am trying to solve switch configuration for Tasmota RF Bridge. However, this configuration does not send Turn On and Turn Off commands. Can someone help me, please?

Switch config:

- platform: mqtt
  name: "Outlet"
  command_topic: "cmnd/sonoff_RF/RFcode"
  availability_topic: "tele/sonoff_RF/LWT"
  payload_available: "Online"
  payload_not_available: "Offline"
  payload_on: "#E23B04"
  payload_off: "#E23B03"
  optimistic: true
  qos: 1

This is the log from Tasmota Console:

21:43:28 MQT: stat/sonoff_RF/RESULT = {"Command":"Unknown"}
21:43:30 MQT: stat/sonoff_RF/RESULT = {"Command":"Unknown"}

Posts: 3

Participants: 3

Read full topic

TensorFlow optimizing

$
0
0

@rolfo wrote:

Hi! I have a question about optimizing Tensorflow. I use supermicro rack server with Xeon E3-1220v3 and three cameras in Tensorflow. The machine is way too much for HASS but doesn’t looks good with Tensorflow. Often I got log message:

Updating tensorflow image_processing took longer than the scheduled update interval 0:00:10

Do you have any solutions or Tensorflow models best for recognising person and car using that CPU. The best result for me is scan camera every 1-2 seconds but I know it can be very hard to achieve. Has someone optimised it for CPU like this?

Here is record from htop with my CPU usage:
https://streamable.com/obcfn

Posts: 1

Participants: 1

Read full topic

Light turned on: brightness always 100%

$
0
0

@sretlow wrote:

I would like to set brightness to 100% when a light is turned on with the light switch. So light had no power and when I turn the lightswitch the light switch s on but in the latest brightness. I would like it to set this to 100%.

I thought that with trigger state from off to on from light.pc_room. The trigger works. But then I want to set this same light to brightness 100%. How can I do this. So the light is the trigger and involved in the action.

Posts: 2

Participants: 2

Read full topic

ASUSWRT: 1 out of 4 persons not updating

$
0
0

@truglodite wrote:

Hi all, I have been using the asuswrt integration for tracking in HA. It’s been working fine for a while, but since my son went to camp for a week I noticed his phone is still registering in HA as home, while the dnsmasq log on the router shows his device is not in the leases anymore. So it should be registering as away. The other 3 ‘persons’ being tracked by asuswrt are working normally. Here’s my config:

# Device Tracking
asuswrt:
  host: !secret my_router_ip
  username: !secret my_router_username
  password: !secret my_router_password

device_tracker:
  - platform: asuswrt
    host: !secret my_router_ip
    username: !secret my_router_username
    password: !secret my_router_password
    interval_seconds: 30
    consider_home: 180
    new_device_defaults:
      track_new_devices: false
      hide_if_away: false

All 4 devices in “known_devices” are marked “track: true”. The only difference between the non-working device tracker and the rest, is the device does not have an ha account linked to it, where as the other tracked devices do have ha users linked. I thought ‘person’ tracking didn’t require a user though. Any ideas what could be wrong? Are there issues with asuswrt tracking when the person has no linked user?

Posts: 1

Participants: 1

Read full topic

How can I limit the display value of a sensor?

$
0
0

@snook wrote:

Hello, pretty new to Home Assistant. I would like to know how to limit my temperature displays to 1 or 2 decimal places. Thank you.

cards:
  - entity: climate.entryway_thermostat
    name: Thermostat
    type: thermostat
  - cards:
      - entity: sensor.bedroom_temperature
        name: Bedroom
        type: sensor
      - entity: sensor.hue_motion_sensor_1_temperature
        name: Kitchen
        type: sensor
    type: vertical-stack
type: horizontal-stack

Posts: 4

Participants: 3

Read full topic

Draggable Lovelace web components

$
0
0

@dooz127 wrote:

On hold actions, a web component can be dragged and moved to a different position in a view or card and the new position would be persisted in the frontend. This would be most useful for picture elements to make it easier to place state badges, state icons, etc. where we want them but could also be used to re-order the positions of entity rows in a card or cards in a view.

Here are some cool open source libraries:

https://draggabilly.desandro.com/

Posts: 1

Participants: 1

Read full topic

Send sms with sim800L

$
0
0

@ady8077 wrote:

Hi, I have an esp32 which is monitoring my alarm and sends mqtt to HA. But I.d like it to send an sms if the alarm activates. Anyone got an example of what needs adding to the esp32 script to send a single sms when the alarm relay turns on ?

Posts: 1

Participants: 1

Read full topic


Issues with Ring doorbell integration

$
0
0

@thieled wrote:

I am a HA newbie and first time poster to this forum. I apologise if this topic has been covered before but I did try searching first.

I have just tried adding my Ring Video Doorbell 2 via Configuration -> Integrations. It seemed to work and I now see the doorbell functions on my Overview page.

However I now notice a few issues:

  1. When I go to the Configuration -> Devices it comes up with “Error while loading page devices.”.
  2. Configuration -> Integrations shows the Ring integration. When I click to expand nothing is listed in the table.
  3. home-assistant.log shows:
    2020-01-18 10:04:12 ERROR (MainThread) [frontend.js.latest.202001080] http://hassio:8123/frontend_latest/chunk.8313098024f9f627cf37.js:496:1131 Expected ‘(’

The latter is repeated 3 times. I can’t show all 3 as I’m only limited to 2 links as a newbie. I think the latter is associated with each time I try to go to the Devices page.

I am running hass.io v0.104.1 on a RPI4B+. Any help would be much appreciated!

Posts: 1

Participants: 1

Read full topic

Cycling through sensors

$
0
0

@ZSasha wrote:

Hello,

could some help me please with my task?
I have a number of (door/window) sensors that could be in “on” or “off” state.
I need to cycle through them to get a name of a sensor which is in “on” state to fire a message to a user.
Currently I have this setup:

# Called before alarm goes to ARM state to make sure all doors are shut.
- alias: Doors pre-check
  trigger:
    platform: state
    entity_id: input_boolean.alarm_arm_state
    to: 'on'
  condition:
    condition: or
    conditions:
      - condition: state
        entity_id: binary_sensor.door_window_sensor_158d0002b6d532 #Rear Sliding Door
        state: 'on'
      - condition: state
        entity_id: binary_sensor.door_window_sensor_158d0002b7d039 #Living Sliding Door
        state: 'on'
...
  action:
    - service: tts.google_say
      entity_id: media_player.googlehome8032
      data:
        message: "Attention! Some doors still open!"

Is it possible, instead of one message “Attention, some doors opened” create individual messages so I would get something like “Attention, kitchen door is open”, “Attention, garage door is opened” etc?

Each sensor has its own meaningful description of course.

Thank you.

Posts: 1

Participants: 1

Read full topic

What's wrong with this since latest update?

$
0
0

@mstudent100 wrote:

This is one of the automations that was working before last update :anguished:

- id: '1579308787838'
  alias: Laundry room lights
  description: ''
  trigger:
  - entity_id: binary_sensor.shenzhen_neo_electronics_co_ltd_battery_powered_pir_sensor_sensor_3
    platform: state
  action:
  - entity_id: switch.laundry_room_main_lights
  service_template: |-
  {% if trigger.to_state.state == 'on' %}
    switch.turn_on
  {% else %}
    switch.turn_off
  {% endif %}

Tried moving quotes etc around but still unsupported action…

Now I get from the logs :
Error loading /config/configuration.yaml: while scanning for the next token found character ‘%’ that cannot start any token in “/config/automations.yaml”, line 10, column 4

6:34 PM components/hassio/init.py (ERROR) - message first occurred at 6:01 PM and shows up 4 times

while scanning for the next token found character ‘%’ that cannot start any token in “/config/automations.yaml”, line 10, column 4

6:34 PM util/yaml/loader.py (ERROR) - message first occurred at 6:01 PM and shows up 4 times

Posts: 13

Participants: 4

Read full topic

Delete Z-Wave entirely from the system

$
0
0

@currest2620 wrote:

Just after some advice. After much frustration with Z-Wave, such as:

  • not being able to add additional devices of the same type,
  • receiving odd values (like temperature readings of 1224736.8 degrees Celsius) and
  • seemingly random changes of sensor values (ie illuminance from % to lux)

I’d like to completely remove Z-Wave from my system, including log log and configuration files - everything. How is this best achieved?

Maybe I’ll start again, maybe I’ll try ZWave2MQTT or something similar.

Thanks for any advice.

Cheers.

Posts: 1

Participants: 1

Read full topic

0.104 changed light switches into dimmers...?!

$
0
0

@chilman4081 wrote:

Hello,

Someone please teach me how to change my dimmer lights back to light switches…

Since 0.104, all of my dimmers are showing up as dimmers…

I prefer them as simple switches and when (if) I want to adjust dimming, I can go into more info…

Switches are how these are used 90% of the time!

thx!

Posts: 1

Participants: 1

Read full topic

Viewing all 107484 articles
Browse latest View live


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