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

NWS Integration with multiple stations

$
0
0

@taylormade wrote:

I had NWS setup the old way, with this is configuration.yaml:

weather:
  - platform: nws
    api_key: !secret NCDCwebservicekey
    station: KBUR
  - platform: nws
    api_key: !secret NCDCwebservicekey
    station: KLAX

But since upgrade to .109, I’m getting told by the logs to delete that. The updated page in the docs tells me to instead setup via UI in Configuration -> Integrations. So I did. In these new docs, it says “Multiple entries can be configured”, but doesn’t say how.

When I tried to add the integration multiple times with a different METAR station each time, I get an error that the integration already exists.

When I tried to enter multiple METAR stations names, I never get more than two entities. Depending on what I use for a delimiter in the list of stations names, I either get two entities that don’t work or two entities that work but are oddly named, either way it tries to combine the station names into a single station with a long name.

How do I get this new and improved version to track multiple stations?

Posts: 1

Participants: 1

Read full topic


Hue Motion detection based on Timeframe

$
0
0

@jaspers wrote:

I have a Hue motion sensor supporting motion (occupancy), temperature and Light levels. It works fine with HA when connected via Hue bridge or zigbee2mqtt.

What is the problem
It clutters up the logs as motion detection happens when I am at home and the kids are playing, creating multiple entries per minute.

8:22:35 AM Hue motion sensor livingroom motion cleared (no motion detected)
8:22:20 AM Hue motion sensor livingroom motion detected motion
8:22:05 AM Hue motion sensor livingroom motion cleared (no motion detected)
Etc.

That is the expected behavior of a motion sensor of course but I want to suppress the noise as presence detection using UniFi works better to determine if we are at home.

What I want
Between 23:00 and 07:00 I want motion detection on. During the day when I am at home I don’t want motion detection in the living room but only want to monitor temperature and light level.

Currently it is implemented by creating a REST switch to turn the motion sensor off at first detection in the morning after 06:00 but that also disables temperature and light level tracking. So I cannot use the latter two in automations anymore hence the creation of the topic.

What I found
It seems this can only accomplished by setting high time outs on occupancy detection but I am looking for a time based activation. Disabling the occupancy binary sensor Entity - like one can do in the UX - could be an option, I just don’t see how that can be done via automation / script. Perhaps they are cleaner solutions.

Any suggestions how to configure this?

Posts: 1

Participants: 1

Read full topic

Write interval for influxDB integration

$
0
0

@chris-kuhr wrote:

Hi *,

I am using hassio and have just installed influxDB on a second server. It works.

Sensor values are are pushed to the db when an event occurs. This leaves gaps in the data. Grafana e.g. connects the last to events with a straight line, which leaves the unchanged state unconsidered, resulting in a false gradient. The sensor can be in the same state for hours…
Is there a way in the influxDB integration or hassio to enforce a push interval with all sensor states, so that I can push every minute or so?
This would also reduce the write to the db, which saves a lot of power.

Best,
Ck

Posts: 1

Participants: 1

Read full topic

Google assistant doesn't find entities after setup

$
0
0

@someone wrote:

I set up google_assistant integration based on the instructions provided in the description of the integration.
When try to add a new device in my Google Home app, there is my newly created [test] hass app and when I click on it, I have to authenticate using my HA username and password. Afterwards I’m redirected back to the Google Home app, but neither is it added to the Linked Services nor is there any entity added. The configuration:

google_assistant:
  project_id: "hass-abcxyz"
  service_account: !include hass-123456.json
  report_state: true
  expose_by_default: true
  exposed_domains:
    - switch
    - light

The endpoint https://public.hass.domain/long_secure_token/api/google_assistant is accessible to Google and redirects internally to my local https://local_ha/api/google_assistant using nginx proxy_pass via a VPN tunnel.
Both public.hass.domain and local_ha have proper letsencrypt certificates installed.

Any idea where to debug it? I didn’t see any log entries in HA, yet. Thanks for any hint.

Posts: 1

Participants: 1

Read full topic

Export networkmap with deconz

$
0
0

@SKAL wrote:

Hello all.
I would like to know if it is possibile to export the network map in HA with deconz?
I know it is visibele with vnc, but I would like to know if it is possible to export like with ZHA?
thank all

Posts: 1

Participants: 1

Read full topic

Can't poweroff with WOL

$
0
0

@coLATin wrote:

here is my struture of net devices

now i’m tring to control Gen8 NAS as a switch, for now the wol wake is OK, but the poweroff don’t work, I have created the ssh certification files between host and target devices.

turn_off_nas: ssh -i “/certification/hass_rsa” -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no {username}@{gen8 ip} “/sbin/poweroff”

is there anything wrong??

Posts: 2

Participants: 2

Read full topic

Harmony hub button shows on when off and visa versa

$
0
0

@davidtja wrote:

Sorry I’m sure there’s a basic answer for this but can’t seem to find it. I have recently installed the latest harmony integration.
I have a basic default button to turn TV on or off. But as I say the icon is lit up on when off and visa versa. So if I want to turn everything off in that room it turns TV on. Thanks.

Posts: 1

Participants: 1

Read full topic

Show card when lovelace view is empty

$
0
0

@taikapanu wrote:

What would be the way to show a card if all other cards are hidden?
My default view has cards that show e.g. all lights that are on, one card to control climate entity when it is on, open windows and some conditional cards. Point is that these cards are not visible if everything is ok and devices are off. Currently I use conditional card and custom card auto-entities.

But if the view is empty I’d like to have a card indicating with a text that “Everything OK”. Instead of having the view blank.

I can only think of making one card including all the other cards conditions but that seems very hard to maintain.

Config below

views:
  - badges: []
    cards:
      - card:
          title: Lights that are on
          type: entities
        filter:
          exclude:
            - state: 'off'
            - state: unavailable
            - domain: sensor
            - domain: automation
            - attributes:
                is_hue_group: true
              domain: light
          include:
            - domain: light
              state: 'on'
            - name: '/[Ll]ight/'
              not:
                domain: light
        show_empty: false
        type: 'custom:auto-entities'
      - card:
          title: States
          type: entities
        filter:
          exclude:
            - domain: zwave
            - domain: sensor
            - domain: automation
            - entity_id: '*motion*'
            - entity_id: binary_sensor.room_2_door
          include:
            - entity_id: null
            - entity_id: '*door*'
              state: 'on'
            - entity_id: '*window*'
              state: 'on'
        show_empty: false
        type: 'custom:auto-entities'
      - type: conditional
        conditions:
          - entity: climate.heat_pump
            state_not: 'off'
        card:
          type: 'custom:auto-entities'
          show_empty: false
          card:
            type: entities
            title: Ilmalämpöpumppu
            show_header_toggle: false
          entities:
            - climate.heat_pump
            - input_boolean.heatpump_stop_timer
          filter:
            include: null
            exclude: null
            template: >
              {%if
              is_state('input_boolean.heatpump_stop_timer','on')%}input_number.heatpump_on_time{%endif%}

              {%if
              is_state('input_boolean.heatpump_stop_timer','on')%}sensor.heatpump_time_left{%endif%}

Posts: 1

Participants: 1

Read full topic


Rooms, Google Assistant & Device vs Entity

$
0
0

@Bulte wrote:

Hi, I’m a little confused when it comes to devices and entities.

I’ll start out by explaining what my goal is. I’m trying to configure all my rooms in Home Assistant so I don’t have any custom configuration in the Google Home app. At the moment I have to assign my lights to specific rooms in the Google Home app. Whenever I sync my entities to Google, all my configuration is gone and I have to start over.

This is what I want to do:

  • Bathroom (when I say ‘turn on the lights’ to the speaker in the bathroom, I want the bathroom lights to turn on)

    • Bathroom lights
    • Google Home speaker
  • Kitchen

    • Kitchen lights
    • Google Home speaker

However, ‘areas’ only seem to support devices, and not entities. All my lights are entities.

Currently, my setup exists of a few Shelly 1 switches to control my lights.
This is an example setup:

light:
  - platform: mqtt
    name: "Eetplaats"
    state_topic: "shellies/shelly1-idhere/relay/0"
    command_topic: "shellies/shelly1-idhere/relay/0/command"
    optimistic: false
    qos: 0
    retain: false
    payload_on: "on"
    payload_off: "off"
    payload_available: "on"
    payload_not_available: "off"

This works pretty flawlessly to control my lights, except that they all show up as entities, and not as devices. I also have a Raspbee to read a few Xiaomi contact/temperature sensors. These show up as devices.

Does what I’m trying to do make any sense?
What’s the difference between devices and entities?
How can I turn my lights into devices?

Thanks for the help!

Posts: 1

Participants: 1

Read full topic

Failed to call service media_player/volume_mute help

$
0
0

@zslibra wrote:

Need help with media player mute controls.
Home Assistant version: 0.109.3
I’m trying to use Xiaomi IR remote to control an old TV.
Now the TV poweron and poweroff, volume adjust up and down has been successfully achieved and works great.
But TV can’t be set muted.
Here is my media_player settings in configuration.yaml:

media_player:
  platform: universal
  name: bedroomtv
  children:
    - media_player.tv
  commands:
    turn_on:
      service: script.tv_poweron
    turn_off:
      service: script.tv_poweroff
    volume_up:
      service: script.tv_volume_up
    volume_down:
      service: script.tv_volume_down
    volume_mute:
      service: script.tv_mute
  attributes:
    state: switch.bedroomtv

IR remote settings in script.yaml:

tv_poweron:
  sequence:
    - service: remote.send_command
      entity_id: remote.xiaomi_miio_192_168_0_31
      data:
        command: 'mcwm8wlkynM4mEsmsxmEsmM0moBHgEeAR80A+KaTYBrwCPAI8DXwEaAauZzkA0gCDmEA'
        
tv_poweroff:
  sequence:
    - service: remote.send_command
      entity_id: remote.xiaomi_miio_192_168_0_31
      data:
        command: 'mcwm8wlkynM4mEsmsxmEsmM0moBHgEeAR80A+KaTYBrwCPAI8DXwEaAauZzkA0gCDmEA'
        
tv_volume_up:
  sequence:
    - service: remote.send_command
      entity_id: remote.xiaomi_miio_192_168_0_31
      data:
        command: 'mcwmkwlkynM5mEsmswmEsmIAhzUBEpjNJuAQUzAI8AiQI4A+OaTgBpwCIA18AiJlNAazAs8EfQI4mc5A1aYQAA=='
        
tv_volume_down:
  sequence:
    - service: remote.send_command
      entity_id: remote.xiaomi_miio_192_168_0_31
      data:
        command: 'mcwmcwlkynM4mEsmoBBTGaTcAjwCPAI8D45oB9ABBzQBpwCIAs8CygGvAa2ZzmbAELMIAA=='
       
tv_mute:
  sequence:
    - service: remote.send_command
      entity_id: remote.xiaomi_miio_192_168_0_31
      data:
        command: 'mcwmkwlkynM5mEsmswmEsmM0AIMBEpjNJuAQUzAIcBHwEaA+OaTgBrwLNAasCzwEcAawAgpnOZsAQswgAA=='

When I call service media_player.volume_mute to mute the TV, it popup errors. homeassistant log as below:

  File "/usr/local/homeassistant/lib/python3.7/site-packages/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
    connection.context(msg),
  File "/usr/local/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 1209, in async_call
    processed_data = handler.schema(service_data)
  File "/usr/local/homeassistant/lib/python3.7/site-packages/voluptuous/validators.py", line 208, in __call__
    return self._exec((Schema(val) for val in self.validators), v)
  File "/usr/local/homeassistant/lib/python3.7/site-packages/voluptuous/validators.py", line 287, in _exec
    raise e if self.msg is None else AllInvalid(self.msg, path=path)
  File "/usr/local/homeassistant/lib/python3.7/site-packages/voluptuous/validators.py", line 283, in _exec
    v = func(v)
  File "/usr/local/homeassistant/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/homeassistant/lib/python3.7/site-packages/voluptuous/validators.py", line 205, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/homeassistant/lib/python3.7/site-packages/voluptuous/validators.py", line 287, in _exec
    raise e if self.msg is None else AllInvalid(self.msg, path=path)
  File "/usr/local/homeassistant/lib/python3.7/site-packages/voluptuous/validators.py", line 285, in _exec
    v = func(path, v)
  File "/usr/local/homeassistant/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
    return schema(data)
  File "/usr/local/homeassistant/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/homeassistant/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/homeassistant/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: required key not provided @ data['is_volume_muted']

Any suggestions?
Thanks!

Posts: 4

Participants: 2

Read full topic

Unifi Integration on Dream Machine Pro

$
0
0

@rak wrote:

Hello,

I am on 0.109.2 and had the impression I can use the unifi integration with my UDM Pro. I set up a local user in the unifi OS. I gave this user full permission for “network” (Admin and Hotspot Operator).

I added the integration via the UI (host= local IP of UDMP, user = local user name, and password, port = 8443 unchanged).

After pressing save I get an error “No service available” (German “Kein Dienst verfügbar”). What am I supposed to do differently?

The UDM is on 1.6.6 / 5.12.67. I am on 2FA. I turned it off some minutes ago and tried again with no change in behaviour. Login on the web interface of the UDMP worked with the hass user.

This is the log on the hass

2020-05-03 11:21:31 ERROR (MainThread) [homeassistant.components.unifi] Error connecting to the UniFi controller at x.y.z.1

hass runs in a docker on a pi which is in the same subnet as the UDMP.

I can ping th udmp from within the docker.

$ docker exec -ti hass /bin/bash
bash-5.0# ping x.y.z.1
PING x.y.z.1 (x.y.z.1): 56 data bytes
64 bytes from x.y.z.1: seq=0 ttl=64 time=0.531 ms
64 bytes from x.y.z.1: seq=1 ttl=64 time=0.419 ms

I guess I need to add some port information between docker and host os that this works.

Regards
Ralf

Posts: 1

Participants: 1

Read full topic

New Sony Bravia TV integration not working well

$
0
0

@Antipiot wrote:

Hello!

I had my Sony Bravia TV working great using the integration in the configuration.yaml but since the latest changes my TV stop reponding to command after a while.

If i wake the TV up with my remote, everything reconnect again, i can see it on in lovelace and i can control my tv for a while.
But once the TV spend some times OFF, it wont turn on again using home assistant commands.
Only the remote works and, if i do so, its starts working again for a while.
It looks like it reconnect correctly if i reboot home assistant core aswell

Did somebody encountered this already?

There are no errors in logs.

I already tried to reconnect it properly - remove all integrations (config.yaml, integration GUI, remove know device on TV and setup connexion with password again with no luck.

many thanks for your help! :slight_smile:

Posts: 1

Participants: 1

Read full topic

GitHub Actions - Failing Config Check (androidtv)

$
0
0

@bacco007 wrote:

I’ve got a strange failure in running a check of my configuration using GitHub Actions - it relates to the androidtv

Invalid config for [media_player.androidtv]: not a file for dictionary value @ data['adbkey']. Got '/config/.androidkeys/adbkey'. (See ?, line ?). 

I don’t get this error when checking the config locally - my config is below:

media_player:
  - platform: androidtv
    name: Foxtel Now Box
    host: 192.168.1.70
    adb_server_ip: 127.0.0.1
    adb_server_port: 5037
    adbkey: '/config/.androidkeys/adbkey'
    get_sources: true

Any Ideas?

Posts: 1

Participants: 1

Read full topic

Hue motion sensor lx values updating at different rate

$
0
0

@petergambrill wrote:

Hi,

I’m running Home Assistant as a docker container on my Unraid server.

I’ve got two hue motion sensors, one at either end of my hallway, integrated into HA using the standard Hue integration. I’m also running the Fasthue custom integration to increase the polling rate of my Hue hub to 1 second. The automation I have says if either sensor detects motion and the lx values of both sensors are below 50 then turn on the hallway lights. Once motion is no longer detected wait 10 seconds and turn off the lights.

The first gif below is of me walking up my hallway. As you can see I get detected by the first sensor (reasonably fast - but not as fast as I’d like), this turns on the lights and the lx values of the first sensor increases (as you’d expect) but nothing changes for the 2nd sensor. I continue walking down my hallway and eventually get detected by the second sensor and its lx value updates. I dart into my bedroom and neither sensors detects me and the hallway lights turn off, but the lx values remain the same (the drop is just the gif looping).

I then walk back down the hallway and the 2nd sensor detects me and the lx value gets updated, but the lights do not turn on as the second sensor is still recording an lx value above 50 (despite no lights being on). The first sensor then detects me, the lx values are updated and the automation is triggered and the lights turn on. As before they then turn off. However the lx values do not update for 5+ minutes after the lights turn off (not show in the gif obviously).

The fact that the lx values only seem to update after 5 minutes or when motion is detected ruins my automation.

Does anyone have any idea what is going on here?

Thanks!

Posts: 1

Participants: 1

Read full topic

Updating accesories Homekit

$
0
0

@pitp2 wrote:

Hi,

I can’t find how to update the accesories list in Homekit on my smartphone because I modified some names in Hass and I would like to see those modifications in the Home on my iphone.

Do you have any idea how to do that ?

Posts: 1

Participants: 1

Read full topic


Is this Dashboard possible?

$
0
0

@hiddevanbrussel wrote:

Hello I’m new here and a fan of HA. I am not a die hard coder, for me it’s easier to draw something. But do you think it’s possible to make something with HA?

Options Dashboard

  • Sidebar to the left with only icons en links to other pages
  • Show icon as active

I want to use this dashboard in the livingroom on a tablet.

Posts: 2

Participants: 2

Read full topic

How to change background color of Devices/entities configuration screen?

$
0
0

@jost.arnaud wrote:

Hi everyone !
Could anyone point me to what i should add to my theme to be able to change the color background for screens such as Configuration/Devices or Configuration/Entites ?
With that text font color i can’t see any of the entites/devices etc…

In case that might not be possible, what would be the way to change the text color?
Thanks in advance,
Arnaud.

Posts: 1

Participants: 1

Read full topic

Is HACS safe to use

$
0
0

@rajan wrote:

I want to protect my Information panel with Kiosk mode and saw that ‘Custom Header’ can fix it.
But it requires HACS to be installed … which I did.
After a while my Xiaomi Aqara temperatur sensors connected via deconz stopped working … they did not give me updated information. Before HACS they worked OK.
Is HACS reliable?
I guess I am not the only one who wants run an Information panel in Kiosk mode so I think that Kiosk mode should be implemented in Hassio (which is a great software) and not as it is now via HACS.

If I am wrong and have missed something please guide me in the right direction …

Posts: 1

Participants: 1

Read full topic

Device tracker xiaomi router

$
0
0

@Davidvg wrote:

Hi my name is David and I am new here.
I am using ‘device_tracker’ for Xiaomi Router 3g. This router is behind the internet service provider’s router and in AP mode with a 2.4GHz Wifi network and another 5GHz Wifi network in only one “ssid”. When ‘Home assistant’ creates the file ‘known_devices’ it only shows devices connected to the 2.4GHz Wifi network. Why is this happening?

This is my configuration:

device_tracker
-platform: xiaomi
host: 192.168.X.XX
password: XXXXXXXXXX

Thank you in advance. Regards.

Posts: 1

Participants: 1

Read full topic

Homematic window sensor without CCU?

$
0
0

@membersound wrote:

I have a homematic windows sensor (that currently connects to a direct receiver when my garage is open).
I want to integrate the sensor into HA, but without having to buy a CCU.

Is that possible?
I found there seems to be a module that can be plugged into the raspberry:

And there seems to be a repo for that. Did anyone try this yet? Does it work with homematic sensors?

Posts: 1

Participants: 1

Read full topic

Viewing all 105489 articles
Browse latest View live


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