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

Change wifi details on hass.io installation

$
0
0

@Matt_Dawson wrote:

Hi all

Long time user, first time poster!

I have hass.io set up on a raspberry pi zero w. It connects to a wifi network with wpa key,ie ssid house key thisismykey.

I want to change the key on my router as I’ve used it for a few years and lost count of how many people have the key, I’ve set up a guest network for future guests. How do I tell hass.io the new wpa key?

Thanks for any help.

Matt

Posts: 2

Participants: 2

Read full topic


Configure Lumary Led Light (tuya)

$
0
0

@Darkerone wrote:

Hello everyone,

I’m a french home assistant nooby (but I am a sofware developer) !
I have bought a lumary led strip light and I would like to control it using Home Assistant.
I understood Lumary was derived from Tuya. So I read Home assistant Tuya integration page.
I thought configuring Tuya would make it works… but configuration seems to be wrong.

My configuration looks like this :

tuya:
  username: YOUR_TUYA_USERNAME
  password: YOUR_TUYA_PASSWORD
  country_code: 33
  platform: lumary

Does someone know how to make it works ?

Posts: 1

Participants: 1

Read full topic

False login attempt or request with invalid authentication

$
0
0

@Dayve67 wrote:

I have noticed since upgrading to 0.100.3 that I’m getting a lot of false invalid login attempts showing up in notifications. Mostly on a restart of HA.

Anyone else seeing this?

Posts: 5

Participants: 2

Read full topic

Error installing TensorFlow

$
0
0

@Imperial-Guard wrote:

Today I did a big clean-up at my server and somehow I broke my Tensorflow isntance…
And playing the whole day around to get it up and running but without any result.

I run Home-Assistant in a docker container, and tried to install Tensorflow via ->

docker exec -it home-assistant /bin/bash

and then within the container ->

pip3 install tensorflow==1.15.0

All the other needed files are in my config/tensorflow/ directory

Home Assistant is providing the following error.

Error while setting up platform tensorflow
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/tensorflow/image_processing.py", line 93, in setup_platform
    import tensorflow as tf # noqa
  File "/usr/local/lib/python3.7/site-packages/tensorflow/__init__.py", line 99, in <module>
    from tensorflow_core import *
  File "/usr/local/lib/python3.7/site-packages/tensorflow_core/__init__.py", line 28, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "<frozen importlib._bootstrap>", line 1019, in _handle_fromlist
  File "/usr/local/lib/python3.7/site-packages/tensorflow/__init__.py", line 50, in __getattr__
    module = self._load()
  File "/usr/local/lib/python3.7/site-packages/tensorflow/__init__.py", line 44, in _load
    module = _importlib.import_module(self.__name__)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/__init__.py", line 63, in <module>
    from tensorflow.python.framework.framework_lib import *  # pylint: disable=redefined-builtin
  File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/framework_lib.py", line 52, in <module>
    from tensorflow.python.framework.importer import import_graph_def
  File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/importer.py", line 28, in <module>
    from tensorflow.python.framework import function
  File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/function.py", line 36, in <module>
    from tensorflow.python.ops import array_ops
  File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/ops/array_ops.py", line 3090, in <module>
    @ops.RegisterGradient("FakeQuantWithMinMaxArgs")
  File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 2486, in __call__
    _gradient_registry.register(f, self._op_type)
  File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/registry.py", line 63, in register
    logging.vlog(1, "Registering %s (%s) in %s.", name, candidate, self._name)
  File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/platform/tf_logging.py", line 200, in vlog
    get_logger().log(level, msg, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/platform/tf_logging.py", line 104, in get_logger
    if not _logging.getLogger().handlers:
TypeError: get_logger() missing 1 required positional argument: 'name'

Posts: 1

Participants: 1

Read full topic

Upgraded to .100.3 now darksky temperature is very wrong

$
0
0

@cooljimy84 wrote:

So this morning I upgraded from .99 to .100.3 and rebooted, but now my darksky temperatures are rather wrong.

I’m pretty sure it’s not 31 degrees c outside in rainy London…
The widget and app on my phone and even the website read ok, just home assistant.

Anyone else got this ?

Posts: 1

Participants: 1

Read full topic

Slider element on Picture Elements card

$
0
0

@andulek wrote:

Hello dear HA enthusiasts!

I’m in the process of making some cards for my lights, using Picture Elements.
But it seems that neither HA, nor google can point me to a thing i’m missing: Slider!

Is there any way to put a slider on Picture Elements card as an item?
Would be really cool to have Brightness control on this card…

Any info much appreciated!

Posts: 1

Participants: 1

Read full topic

Simple time based and light group based ruled

$
0
0

@eleson wrote:

I am a newbie exploring rules, and I don’t get light groups to work.

This works:

Configuration.yaml:
group: !include groups.yaml
light: !include lights.yaml
automation: !include automations.yaml

automations.yaml
- id: id_LivingRoomEvening
  alias: LivingRoomEvening
  trigger:
   - at: '23:36'
     platform: time
  action:
    service: light.turn_off
    entity_id: light.zipato_bulb_2_level

But this doesn’t: (trying to use lights group)

Configuration.yaml:
group: !include groups.yaml
light: !include lights.yaml
automation: !include automations.yaml

automations.yaml
- id: id_LivingRoomEvening
  alias: LivingRoomEvening
  trigger:
   - at: '23:36'
     platform: time
  action:
    service: light.turn_off
    entity_id: light.Outdoor_allLamps

lights.yaml
    - platform: group
      name: Outdoor_allLamps
      entities:
       - light.zipato_bulb_2_level

Why doesn’t the second alternative work and how should it be written?

Posts: 7

Participants: 2

Read full topic

Using 433mhz sender and receiver

$
0
0

@Kiki51 wrote:

Hi.
I have a fresh installation of home assistant running on a Raspbian image.

It’s installed on my rip 3.
It’s working well. I have follow the installation guide on the web site using the virtual environment but
I have an issue to use my remote and my plug 433mhz.
In a terminal I can send and receive code. It’s ok.
I use rfsniffer and codesend command included in rpi_utils tools.

In my configuration.yaml I have added those lines :

switch:
platform: rpi_rf
gpio: 17
switches:
pluga:
code_on: 16762196
code_off: 16762193

Pluga appears on my homepage of home assistant but when i use it my plug don’t switch off/on.
It’s the same GPIO port and the same code as the terminal command line I have use just before.
If anyone can help me!
Thanks a lot and sorry for my English.
Eric

Posts: 6

Participants: 3

Read full topic


Automation only to happen when the sun is down, but it doesn't work?

$
0
0

@fribse wrote:

I’ve made an automation to close the blind in the bedroom, but only if the window is closed.
To supplement that, I made this small automation to close the blind if the window is closed, and if I add the sunset / sunrise conditions, nothing happens.

- id: '1570991270753'
  alias: Blind - close if window is closed, and the sun is already down
  description: ''
  trigger:
  - entity_id: binary_sensor.vindue_sovevaerelse
    for: 0:00:15
    from: 'on'
    platform: state
    to: 'off'
  condition:
  - after: sunset
    before: sunrise
    condition: sun
  action:
  - data:
      entity_id: cover.rullegardin_i_sovevaerelse
    service: cover.close_cover

If I change the condition to check for below_horizon then it works, but then I can’t make use the offset.

- id: '1570991270753'
  alias: Blind - close if window is closed, and the sun is already down
  description: ''
  trigger:
  - entity_id: binary_sensor.vindue_sovevaerelse
    for: 0:00:15
    from: 'on'
    platform: state
    to: 'off'
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  action:
  - data:
      entity_id: cover.rullegardin_i_sovevaerelse
    service: cover.close_cover

Shouldn’t I be able to use the sunset / sunrise as conditions this way?

Posts: 3

Participants: 2

Read full topic

Looking for a configuration for color lights

$
0
0

@arosa2000 wrote:

Hi to all in the forum I already have my Merkury color lights working, but I need to modify my configuration. Right now the light turn on with the sunset with color purple, until 8:00pm and then change every 1 hour, but I need to modify it because the purple stay more time because is fall. I need a configuration that every color stay only 1 hour. Can somebody have this kind of configuration. Thanks with any help.

Posts: 12

Participants: 4

Read full topic

What dependencies do I need to install for MariaDB?

$
0
0

@Codec303 wrote:

Hi, in the docs here:


it says that dependencies are needed for MariaDB:

For MariaDB you may have to install a few dependencies. If you’re using MariaDB version 10.2, libmariadbclient-dev was renamed to libmariadb-dev . If you’re using MariaDB 10.3, the package libmariadb-dev-compat must also be installed. Please install the correct packages based on your MariaDB version.

I’m running MariaDB v10.0.34, so which dependencies should I install? Thanks

Posts: 4

Participants: 2

Read full topic

Newbie getting started - targeting lights, windows, hvac

$
0
0

@Unnssh wrote:

Looking to automate a few things in my house, but with the goal of keeping the controls for my house locked away from the internet. I hope that is possible here.

I understand Home Assistant can run on a standalone server, that even a Pi will do. Do I need any hardware besides the Pi? Anything besides an OS and HA? I also see there’s an iOS app. It looks like this will run locally - that I can connect from the app as long as I’m on the same wifi network. Is this the case? Can I block HA from communicating with the internet and still use the iOS app locally?

The devices – I’m looking to start smallish. Maybe with a single dimmer switch for the bedroom (so I can be super lazy and change the lights from my phone. from bed. because lazy. and, if I mess it up, low-importance; there’s a lamp.) There’s a ton of smart switches out there. I’m a little fuzzy on how z-wave works exactly. Some say you need a hub; would HA be the hub or do I need something else? Do I want Lutron instead? What am I looking for in a device so that I know it doesn’t need to phone home to the parent company, but can instead be controlled by HA?

Also important to me that you don’t HAVE to use HA to control it. Other family members should be able to walk in, push the button or whatever, and it works just as well as always. With the OPTION of other controls.

Once I get lights working I want to get new curtains or blinds, which will be an expensive undertaking. I usually buy from Bali, who advertises being z-wave compatible. Does that mean I want to go all z-wave, establishing this mesh as I add more light switches or devices?

I’d love to also do the thermostat, but again, only as long as it isn’t phoning back. I need all the control to stay on my network.

Is this all possible? Have I made any incorrect assumptions? Any suggestions for particular products to get this going?

Thanks!

Posts: 2

Participants: 2

Read full topic

Automation 'expected a dictionary value'

$
0
0

@kuro8989 wrote:

Getting this error code

Invalid config for [automation]: expected a dictionary for dictionary value @ data['action'][0]['data_template']. Got None
extra keys not allowed @ data['action'][0]['brightness_pct']. Got None
extra keys not allowed @ data['action'][0]['hs_color']. Got None
extra keys not allowed @ data['action'][0]['transition']. Got None. (See /config/configuration.yaml, line 40). Please check the docs at https://home-assistant.io/integrations/automation/
Invalid config for [automation]: extra keys not allowed @ data['condition'][1]['state']. Got None
not a valid value for dictionary value @ data['condition'][1]['condition']. Got None. (See /config/configuration.yaml, line 40). Please check the docs at https://home-assistant.io/integrations/automation/
Invalid config for [automation]: extra keys not allowed @ data['condition'][1]['state']. Got None

The logs loop like that 10 more times but I can post the full log if one needs.

Here’s the automation page specifically line 36 - 56 just for context (also someone let me know if this isn’t necessary still super new to this).

- id: CC_livingroom_east
  alias: Color Change Living Room East
  trigger: 
    minutes: /120
    seconds: 0
    platform: time_pattern
  condition: 
    - condition: time
      after: "10:30:00"
      before: "03:00:00"
    - condition: state
      entity_id: light.1f_lc_living_room_east
      state: true        
  action:
      service: light.turn_on 
      data_template: 
        brightness_pct: 100
        hs_color: 
          - "{{ range(360)|random }}"
          - "{{ range(80,101)|random }}"
      entity_id: 'light.1f_lc_living_room_east' 

The automation is basically a light scheduler with an hourly random colour change. I will probably add a transition to each action as well.

Posts: 2

Participants: 2

Read full topic

Ikea Trådfri remote automation

$
0
0

@valexi wrote:

I have successfully made automation for my Trådfri remote. This automation really clutters my automations, when I use multiple remotes as I have to make new automation for every trigger.

Can someone help how to include all these triggers in one automation? My code is below:

- id: '1558223144069'
  alias: MQTT IKEA remote livingroom on/off
  trigger:
    - platform: mqtt
      topic: 'zigbee2mqtt/0x000d6ffffe54fd83'
  condition:
    - condition: template
      value_template: "{{ 'toggle' in trigger.payload }}"
  action:
    entity_id: light.0x00124b001ba6f59b_light
    service: light.toggle
#####
- id: '1558263965446'
  alias: MQTT IKEA remote livingroom brightness up
  trigger:
    - platform: mqtt
      topic: 'zigbee2mqtt/0x000d6ffffe54fd83'
  condition:
    - condition: template
      value_template: "{{ 'brightness_up_click' in trigger.payload }}"
  action:
    - service: light.turn_on
      data_template:
        entity_id: light.0x00124b001ba6f59b_light
        transition: '1'
        brightness: >
         {% set n = states.light['0x00124b001ba6f59b_light'].attributes.brightness + 20 %}
         {% if n > 255 %}
           255
         {% else %}
           {{ n }}
         {% endif %}
#####
- id: '1558463165447'
  alias: MQTT IKEA remote livingroom brightness down
  trigger:
    - platform: mqtt
      topic: 'zigbee2mqtt/0x000d6ffffe54fd83'
  condition:
    - condition: template
      value_template: "{{ 'brightness_down_click' in trigger.payload }}"
  action:
    - service: light.turn_on
      data_template:
        entity_id: light.0x00124b001ba6f59b_light
        transition: '1'
        brightness: >
         {% set n = states.light['0x00124b001ba6f59b_light'].attributes.brightness - 20 %}
         {% if n < 10 %}
           10
         {% else %}
           {{ n }}
         {% endif %}
######
- id: '1558263165448'
  alias: MQTT IKEA remote livingroom temperature warm
  trigger:
    - platform: mqtt
      topic: 'zigbee2mqtt/0x000d6ffffe54fd83'
  condition:
    - condition: template
      value_template: "{{ 'arrow_right_click' in trigger.payload }}"
  action:
    - service: light.turn_on
      data_template:
        entity_id: light.0x00124b001ba6f59b_light
        transition: '1'
        color_temp: >
         {% set n = states.light['0x00124b001ba6f59b_light'].attributes.color_temp + 50 %}
         {% if n > 500 %}
           500
         {% else %}
           {{ n }}
         {% endif %}
######
- id: '1558263135449'
  alias: MQTT IKEA remote livingroom temperature cold
  trigger:
    - platform: mqtt
      topic: 'zigbee2mqtt/0x000d6ffffe54fd83'
  condition:
    - condition: template
      value_template: "{{ 'arrow_left_click' in trigger.payload }}"
  action:
    - service: light.turn_on
      data_template:
        entity_id: light.0x00124b001ba6f59b_light
        transition: '1'
        color_temp: >
         {% set n = states.light['0x00124b001ba6f59b_light'].attributes.color_temp - 50 %}
         {% if n < 150 %}
           150
         {% else %}
           {{ n }}
         {% endif %}
#####
- id: '1558263145450'
  alias: MQTT IKEA remote livingroom brightness up hold
  trigger:
    - platform: mqtt
      topic: 'zigbee2mqtt/0x000d6ffffe54fd83'
  condition:
    - condition: template
      value_template: "{{ 'brightness_up_hold' in trigger.payload }}"
  action:
    - service: light.turn_on
      data_template:
        entity_id: light.0x00124b001ba6f59b_light
        transition: '10'
        brightness: >
         {% set n = states.light['0x00124b001ba6f59b_light'].attributes.brightness + 20 %}
         {% if n < 255 %}
           255
         {% else %}
           {{ n }}
         {% endif %}
#####
- id: '1558263155451'
  alias: MQTT IKEA remote livingroom brightness down hold
  trigger:
    - platform: mqtt
      topic: 'zigbee2mqtt/0x000d6ffffe54fd83'
  condition:
    - condition: template
      value_template: "{{ 'brightness_down_hold' in trigger.payload }}"
  action:
    - service: light.turn_on
      data_template:
        entity_id: light.0x00124b001ba6f59b_light
        transition: '10'
        brightness: >
         {% set n = states.light['0x00124b001ba6f59b_light'].attributes.brightness - 20 %}
         {% if n > 1 %}
           1
         {% else %}
           {{ n }}
         {% endif %}

Posts: 1

Participants: 1

Read full topic

OpenMQTTGateway template sensor problem

$
0
0

@botts wrote:

Hi All,

I am trying to setup Room Presence with OMG, with the use of my mifit band. But I am unable to get the distance attribute of a specific Bluetooth device as a sensor state from the MQTT data.

Example of output from OWG:

{"id":"xx:xx:xx:xx:xx:xx","manufacturerdata":"W","rssi":-45,"distance":0.06662}

I can get the values as independent sensors from the MQTT state topic via ‘value_json’

But I cannot get a value template to display the distance value of a specific device as the sensor state.

I have set up the following to make sure the values are accessible

sensor:


  - platform: mqtt
    name: "band_distance"
    state_topic: "home/home_presence/OpenMQTTGateway_ESP32_BLE"
    value_template: "{{ value_json.distance }}"

And


  - platform: mqtt
    name: "band_id"
    state_topic: "home/home_presence/OpenMQTTGateway_ESP32_BLE"
    value_template: "{{ value_json.id }}"  

These both output their respective states correctly.

But if I try the following to output the distance value of a specific scanned “ID” it fails?


  - platform: mqtt
    name: "miband_distance"
    state_topic: "home/home_presence/OpenMQTTGateway_ESP32_BLE"
    unit_of_measurement: 'm'
    value_template: >-
      {% if value_json.id == "xx:xx:xx:xx:xx:xx" %} 
      {{value_json.distance}}
      {% else %}
        not detected
      {% endif %}     

I get state of sensor as “not detected”


I have also tried using state_topic of the specific Bluetooth device using"

state_topic: 'home/OpenMQTTGateway_ESP32_BLE/BTtoMQTT/xxxxxxxxxxxx/

but I get no values using the above working independent value methods

In the Home Assistant template developer tool, the JSON output works fine???

EG.


{% set value_json = {"id":"xx:xx:xx:xx:xx:xx","manufacturerdata":"W","rssi":-45,"distance":0.06662} %}
      {% if value_json.id == "xx:xx:xx:xx:xx:xx" %} 
      {{value_json.distance}}
      {% else %}
        not detected
      {% endif %} 

Output is: 0.06662

Can someone please tell me where I am going wrong?

Thanks in Advance!

Posts: 3

Participants: 2

Read full topic


How to parse command_line json

$
0
0

@m486u4ever wrote:

This is my sensors.yaml

  - platform: command_line
    name: kocomtemp
    json_attributes:
      - l_cur_temp
      - l_set_temp
    command: "/config/python_script/kocom.py sensor temp"
    value_template: '{{ value_json.kocom_heat}}'

  - platform: template
    sensors:
      kocom_livingroom_current_temp:
        friendly_name: 'Current Temp'
        value_template: "{{ states.sensor.kocomtemp.attributes.l_cur_temp }}"
        unit_of_measurement: "C"

  - platform: template
    sensors:
      kocom_livingroom_set_temp:
        friendly_name: 'Desired Temp'
        value_template: "{{ states.sensor.kocomtemp.attributes.l_set_temp }}"
        unit_of_measurement: "C"

/config/python_script/kocom.py sensor temp returns like this

{“kocom_heat”: 0, “l_cur_temp”: 24, “l_set_temp”: 23}

However, I cannot parse this using written template.

[homeassistant.components.command_line.sensor] Unable to parse output as JSON

What’s wrong?

Can anybody help?

Posts: 5

Participants: 2

Read full topic

Log error that I can't find the source of

$
0
0

@brucehvn wrote:

Currently, I’m unable to restart my Home Assistant (hass.io) successfully. When trying it from the ssh shell with “hassio ha restart”, it processes for a long time, then says “Unknown Error, check logs” or something like that. When I look in the log, the last thing I see on there is:

2019-10-26 00:21:37 INFO (MainThread) [homeassistant.setup] Setting up logger
Exception in thread stream_worker:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/src/homeassistant/homeassistant/components/stream/worker.py", line 50, in stream_worker
    container = av.open(stream.source, options=stream.options)
  File "av/container/core.pyx", line 275, in av.container.core.open
  File "av/container/core.pyx", line 227, in av.container.core.Container.__cinit__
  File "av/container/core.pyx", line 129, in av.container.core.ContainerProxy.__init__
  File "av/container/core.pyx", line 195, in av.container.core.ContainerProxy.err_check
  File "av/utils.pyx", line 105, in av.utils.err_check
av.AVError: [Errno 875574520] Server returned 404 Not Found: 'rtsp://xxx:xxxxxxx@192.168.123.220:554/videoMain' (16: rtsp)

The weird thing is that URL is pointing to the RTSP port of my NVR but I can’t find anywhere that URL is set. I don’t think I set it and the /videoMain portion is wrong and the username/password is a combo I use for individual cameras but not the NVR. I’ve searched all the configuration files and dumped the db of all the entities with attributes and did a text search and can’t find that URL or even any occurrence of just “rtsp” I have 3 of my cameras setup in HA, but not through the NVR and I’m not using RTSP for those.

Any idea how I can find where it’s getting that URL so I can get rid of it? It’s quite annoying. In order to get HA to start, I have to remove power and then turn it on again.

Posts: 1

Participants: 1

Read full topic

Using RF4CE to control set-top box

$
0
0

@PaulWebster wrote:

There are a few devices that can be controlled via RF4CE (Zigbee protocol).
I expect that most of them can also be controlled over IP so there might not be much need for such a thing … but I was wondering if a Zigbee source (like Conbee) could be used to control a set-top box.

Posts: 1

Participants: 1

Read full topic

SNMP Scan interval

Two hacs in user interface

Viewing all 95312 articles
Browse latest View live


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