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

Can someone please explain MQTT in HA

$
0
0

@Matt_Barnes wrote:

I am so confused.

There is this guide:

saying you can run your own broker and add the IP to the config.

There is an integration allowing you to add MQTT by specifying the Broker name (assume this is IP)

There is then mqtt discovery in the config, or auto discovery in the integration.

There is then the mqtt sensor.
There is also the “listen” option under MQTT in dev tools

Currently I have Mosquitto running on a synology nas.
I have the MQTT integration with the following settings:

broker: 192.168.1.124
port: i left as default 1883
username and password I left blank.

So, how do I now get information that is going to MQTT broker into HA now?

Sorry, I have tried but theres just too many mentions of MQTT and different methods. The end result is I would like to listen for MQTT data and make sensors from the topics.

Thanks!

Posts: 14

Participants: 4

Read full topic


Scene config error after updating to 102.2

$
0
0

@skycryer wrote:

I just update from 0.98 to 0.102.2 and I think I missed something because my scene config is now broken

- name: Plex - no Delay Script
  entities:
    media_player.hifi_receiver:
      source: "TV AUDIO"
    switch.living_main_light_switch: off
    light.stehlampe: on
    switch.living_sidelamp_switch_switch: on

Here I get an error for my media player config

Invalid config for [scene]: State for media_player.hifi_receiver should be a string for dictionary value @ data[‘states’][0][‘entities’]. Got None. (See /config/configuration.yaml, line 201). Please check the docs at https://home-assistant.io/integrations/scene/

But that info does not really help. What exact is the problem with my media player config?

Posts: 3

Participants: 2

Read full topic

Alexa skill error after switching to Lambda after deprecated api_password

$
0
0

@ih8gates wrote:

I recently ported my Alexa skills over to using log-term tokens since the API password in HA has been deprecated.

I’m having problems with some of my skills. Sometimes, the skill will return the correct text to be spoken. But about 1/3 of the time, Alexa says “There was a problem with the requested skill’s response.”

The skill will still execute - I’m just not getting the correct spoken response. Any ideas?

Here’s the HA log associated with one error

2019-11-28 22:02:11 ERROR (MainThread) [homeassistant.components.alexa.intent] Error handling amzn1.ask.skill.XXX
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 67, in async_handle
    result = await handler.async_handle(intent)
  File "/usr/src/homeassistant/homeassistant/components/intent_script/__init__.py", line 85, in async_handle
    await action.async_run(slots)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 162, in async_run
    await self._handle_action(action, variables, context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 246, in _handle_action
    await self._actions[_determine_action(action)](action, variables, context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 329, in _async_call_service
    context=context,
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 98, in async_call_from_config
    domain, service_name, service_data, blocking=blocking, context=context
  File "/usr/src/homeassistant/homeassistant/core.py", line 1234, in async_call
    await asyncio.shield(self._execute_service(handler, service_call))
concurrent.futures._base.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/alexa/intent.py", line 61, in post
    response = await async_handle_message(hass, message)
  File "/usr/src/homeassistant/homeassistant/components/alexa/intent.py", line 118, in async_handle_message
    return await handler(hass, message)
  File "/usr/src/homeassistant/homeassistant/components/alexa/intent.py", line 153, in async_handle_intent
    {key: {"value": value} for key, value in alexa_response.variables.items()},
  File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 75, in async_handle
    raise IntentUnexpectedError(f"Error handling {intent_type}") from err
homeassistant.helpers.intent.IntentUnexpectedError: Error handling amzn1.ask.skill.XXX

Posts: 1

Participants: 1

Read full topic

Newbie - View logs/SSH etc

$
0
0

@mrh wrote:

Hi all,

I’ve been searching and reading but I have not found the answers to a couple basic questions:

  1. I see mentions of “errors in the log” in various posts. When I screw something up in my configuration I’d like to be able to see the log. But I’ve yet to figure out how to view the log. How does one look at the lower level log that would show YAML configuration issues?

  2. SSH. I’m a developer by trade and quite comfortable with Linux. I’d like to SSH to my RPi running hass.io and I see there is an addon to add SSH but I’ve not installed or got that working yet. Is that the easiest way to get to the Pi? I’m interested in looking at logs, checking the load state etc.

Thanks in advance!

Posts: 6

Participants: 4

Read full topic

Nabu Casa - new disabled webhook appeared "Local Support (google_assistant)"

Zigbee color loop via Wink?

$
0
0

@Grank wrote:

This may not be the right category, as it’s pretty specific to the Wink integration, but I don’t see a place for that… please feel free to move it if I’ve stuck it in the wrong place.
New to Home Assistant. I have a Wink 2 hub and a Hue gen1 hub. Currently using hassio in a hyper-V VM, with the hue and wink integrations. (I have a HUSBZB-1 on the way that I might switch to, but we’ll see, that’d be another story altogether…)
I have 3 hue bulbs connected to the hue hub, and making those color loop is as easy as sending effect: colorloop in a light.turn_on envelope, so that’s cool…
But connected to the Wink, I have 11 OSRAM/Sylvania Lightify RGBW bulbs, and I’d like to be able to color loop those too.
I found this line in a smartthings groovy file that seems to indicate these bulbs implement and would obey this zha command:


However, I’m not getting the impression that one can actually send commands through the Wink hub; it seems like it’s just a commonized wink functionality API that doesn’t really expose any of that. (In fact, they don’t even seem to obey transition seconds, they just boop really fast to a new color)
Is that the case, or is there any way for me to use Wink to make these bulbs go into a color loop?
Thanks!

Posts: 2

Participants: 2

Read full topic

How to add ip camera to HA

Switch unavailable after power cut

$
0
0

@skymoo wrote:

We had a power cut last night and three of my switches (using tuya) were unavailable after the power cut. I restarted Home Assistant and two of them reconnected, but not the third.

This third switch is connected to the Tuya service and I can control it through the Tuya app, but Home Assistant can’t see it. I restarted Home Assisatant several times and restarted the switch several times but it just won’t become available in Home Assistant.

Any ideas what’s going on here?

Posts: 1

Participants: 1

Read full topic


"Copy" values to another Entity

$
0
0

@niklasnikki wrote:

(Sorry for my bad English)

I’ve intergrated a Milight remote in Home Assistant as a light.

Now i want that the values of this light of the remote are copied to my other lights in home assistant, eg. light.birnen. I don’t know how to do this.

Thank you!

Posts: 1

Participants: 1

Read full topic

Subnet as trusted proxies?

$
0
0

@torpi wrote:

Hello everyone,

I followed carefully the documentation here to configure my nginx for HA (https://www.home-assistant.io/docs/ecosystem/nginx/).

The problem I have is that I have nginx running in containers in a swarm. Basically, I have 5 nodes running nginx in containers.

BTW, HA is also running in my swarm (if anyone need information on that I can help with the macvlan or how to discover the server or register the IP in DNS leveraging Bonjour).

HA works solid when accessing it with its IP. Through NGINX, outside or inside my LAN (hairpin for inside) I got a lot of 502 responses. After some investigations I understood that it might be because I need to whitelist the NGINX proxy in HA configuration.

Did that with the 5 IPs (my 5 nginx). Situation is pretty better. Still have some 502 here and then but pretty rare. Still have some issues sometime between LTE and Wifi but I guess this is tied to the tokens, not sure. seems better with recent releeases).

The problem: those IPs (ngninx proxy) are not fixed. In swarm I may run one or more ngninx server per node and even if just one per node it gets its IP dynamically.

The situation is even worst when there is a redirection from the ingress network.

QUestion is: can we whitelist a complete subnet instead of a list of IPs? Or is there another way to allow any proxy? Or do you have any suggestion appart from installing another ngninx proxy somewhere else in the network?

Any help would be appreciated!
Thank you and have a nice we,

Torpi

Posts: 1

Participants: 1

Read full topic

Local DuckDNS Access Arris BGW210-700 NAT loopback

$
0
0

@jmason03 wrote:

I am using an Arris BGW210-700 modem/router from AT&T. I have setup DuckDNS correctly for my HA instance and can access it without any issues when I am outside of the network my HA is running on.

However, when I am on my local network, I can only connect through the local IP address, 192.168.1.x. If I try to browse to HA via the DuckDNS url, I get a page returned with the HA logo and the message “Unable to connect to Home Assistant.”

If I look at the developer tools console, I see this error message “https://mydomain.duckdns.org:8123/auth/token 400 (Bad Request)”.

My understanding is that this is an NAT loopback issue but that the Arris BGW210-700 doesn’t support that. I was wondering if anyone out there had experienced something like this or had any ideas on how I can work around this? The biggest issue being that I can’t access HA via the iOS app when I’m at home without first turning Wi-Fi off.

Posts: 1

Participants: 1

Read full topic

Reverse proxy NGINX for raspberry

$
0
0

@etxttul wrote:

Hi,

Starting with telling that I’m not a technical guy, here is my problem and how I’m trying to solve it.

I have deconz installed in a raspsberry pi 4B where I’m also running home assistant.
In my house I also have opensprinkler.

To get access from the outside I have installed Duck DNS addon, this works fine.
I have done port forwarding for both, HA and opensprinkler in my router.

So the problem I have is that I can’t access deconz or put my opensprinkler in a Iframe card without commenting out the following lines in my configuration.yaml and go on the local IP address.

ssl_certificate: /ssl/fullchain.pem

ssl_key: /ssl/privkey.pem

I been told that I need to use a reverse proxy to get this working.
I think that the NGINX Home Assistant SSL proxy addon would do that for me.

I installed it, changed domain to “domain”: “sture.duckdns.org” in the configuration and started it. Also commented out;

ssl_certificate: /ssl/fullchain.pem

ssl_key: /ssl/privkey.pem

in configuration.yaml and removed the port number from the base_url:

It don’t work, the I started playing with port forwarding in my router. please note that not all the portforwarding in the picture below is activated, It just show that I tried quite some of them.

I’m thinking that I have fundamentally misunderstood something. Please send me in the right direction

BR
Tobe

Posts: 1

Participants: 1

Read full topic

Ios vs mobile_app integration

$
0
0

@TheNr1Guest wrote:

Until recently I used the ios integration, but since it stopped working I noticed that the app has been updated and a few new sensors have appeared so I switched to the mobile_app integration. Am I correct in assuming mobile_app is going to replace the ios integration?

And I still have an old ios device tracker active, but I deleted the integration. How can I get rid of it?

Posts: 2

Participants: 2

Read full topic

Can't create new user after forgetting password

$
0
0

@fornold wrote:

Hello,

I managed to forget my user password so I followed the directions in the Authentication documentation and deleted the files in the .storage directory.

Started Hassio again and get the prompt to create a user. No matter what I enter it doesn’t take it and I get error messages saying the “Name is already in use” in the log. I tried a name I know has never been used. This is with the latest version.

I also have the same issue with a HA docker I have running on my Synology NAS.

2019-11-29 13:50:38 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 122, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 48, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/onboarding/views.py", line 125, in post
    translations[f"component.onboarding.area.{area}"]
  File "/usr/src/homeassistant/homeassistant/helpers/area_registry.py", line 56, in async_create
    raise ValueError("Name is already in use")
ValueError: Name is already in use

Thanks for any advice.

Posts: 1

Participants: 1

Read full topic

Another 'Icon color change based on state' question

$
0
0

@coen17st wrote:

I have been trying for some time to figure out how I can make an icon color change based on the state. I see that there are a lot of topics about this, but none of them offers me results and the topics date from 2017/2018 so I doubt that those are the right methods.

So i want to change the icon and icon color based on state, the icon change succeeded but the color did not. i have te following setup:


sensor:
  - platform: template
  sensors:
      voordeur:
      value_template: '{% if is_state("binary_sensor.aeon_labs_zw089_recessed_door_sensor_gen5_sensor", "on") %}Open{% else %}Dicht{% endif %}'
      friendly_name: 'Voordeur'
      icon_template: >-
          {% if is_state('sensor.voordeur', 'Open') %}
          mdi:lock-open-variant-outline
          {% else %}
          mdi:lock
          {% endif %}

customize:
  sensor.voordeur:
    templates:
        icon_color: >
        if (state === 'Open') return [143,29,29];
        return [45,133,58];

Capture
open

Posts: 3

Participants: 3

Read full topic


Default power state after power ottage

$
0
0

@raptr wrote:

Hi

i have a gledopto led strip controller that after a power outage it powers on automatically.
in the zigbee2mqtt component i can see this two kind of message sent by device:

  • Received Zigbee message from ‘0x00124b001d3ac596’, type ‘readResponse’, cluster ‘genOnOff’, data ‘{“onOff”:1}’ from endpoint 11 with groupID 0

  • MQTT publish: topic ‘zigbee2mqtt/0x00124b001d3ac596/availability’, payload ‘online’

how i can set an automation that when this two message are sent then it power off the device?

thanks

Posts: 1

Participants: 1

Read full topic

Picture_entity card and local_file camera --- update is lagging by one frame

$
0
0

@khaimong wrote:

I have a local file camera like this:

camera 5:
  - platform: local_file
    file_path: /home/homeassistant/.homeassistant/www/snaps/kitchen/... 
    name: kitchen_snap

And I use the following card to display the camera on the UI

    cards:
      - type: picture-entity
        entity: camera.kitchen_snap
        camera_image: camera.kitchen_snap
        camera_view: live

To update the picture, I have an external script running using the REST API to update the image. Here is a simplified version of the script.

#!/bin/sh
set -x
ff=$1
echo $ff

data="{\"entity_id\" : \"camera.kitchen_snap\", \"file_path\" : \"$ff\"}"
echo $data


curl -X POST -H "Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxx,etc" \
       -H "Content-Type: application/json" \
       -d "$data" \
       http://localhost:8123/api/services/camera/local_file_update_file_path

It does not work properly. The display of the picture is lagging by one update from the script. If I update to three pics, say, “one.png”, “two.png”, and “three.png” at 5 second intervals — the first update will not do anything. The second update wil show “one.png” on the UI, and third update will show “two.png” on the UI. If I wait long enough, anywhere from 30 seconds to a few minutes, it will eventually do the right update to “three.png” . It will also show “three.png” if I force a refresh with shift-F5.

Same thing happens with picture_glance card.

Does anyone have suggestions on how to force the update? I am running HA 100.3

Posts: 1

Participants: 1

Read full topic

YAML Templates for configuration.yaml

$
0
0

@cargsl wrote:

I’m building a dashboard using lovelace and have a bunch of cards that show a chart (using the absolutely great mini-graph-card). All these charts are configured exactly the same except for a couple of fields (entity and icon). Right now I’m copy pasting each card, but making updates to the cards is becoming rather cumbersome.

I wanted to ask if there is a way to use a “template” in configuration.yaml, so I can define the configuration for the card in one place and then get it included in configuration.yaml several times with slightly different parameters.

Posts: 3

Participants: 2

Read full topic

Add Tellstick Duo in Hassos

$
0
0

@smurfen wrote:

Hi!
I am new to Home assistant, but got my Samsung TV and Pioneer AVR up running without problems at all.
But struggling to add my Tellstick Duo, and need som help as i can´t figure it out.
My setup is:
I am running the readymade Hassos ova 2.12.vmdk on a virtualbox that runs on a server 2016.
My Tellstick Duo is plugged in the small computer, and i think the Tellstick is visible for the guest in virtualbox, but not 100% sure.
I have added the Add-on “Tellstick” (TellStick and TellStick Duo service) in Hass.io, and it runs. And i have added the following lines in conffiguration.yaml:
tellstick:
host: core-tellstick
port: [50800, 50801]
But i do not see something even after a hassio restart.
Do i also have to install something more (Telldus Center) in the operatingsystem hassio is running on?
Hope someone can help me out or point me in the correct direction.

Posts: 3

Participants: 2

Read full topic

Can't connect ZHA to Conbee II

$
0
0

@gskbyte wrote:

Hi everyone,

I have my ConBee II currently configured via deCONZ but I would like to try ZHA for simplicity. I have installed Home Assistant in a Docker container in Ubuntu, and have tried to add the integration via the GUI, where I get the error that /dev/ttyACM0 can’t be found, and also by modifying the configuration.yaml file like this:

zha:
  usb_path: /dev/ttyACM0
  radio_type: deconz
  database_path: /config/zigbee.db

In this case, the error I can see in my logs looks like this:

Error setting up entry /dev/ttyACM0 for zha
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 244, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyACM0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 192, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 107, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 114, in async_initialize
    await radio.connect(usb_path, baudrate)
  File "/usr/local/lib/python3.7/site-packages/zigpy_deconz/api.py", line 198, in connect
    self._uart = await uart.connect(device, DECONZ_BAUDRATE, self)
  File "/usr/local/lib/python3.7/site-packages/zigpy_deconz/uart.py", line 120, in connect
    xonxoff=False,
  File "/usr/local/lib/python3.7/asyncio/coroutines.py", line 120, in coro
    res = func(*args, **kw)
  File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 410, in create_serial_connection
    ser = serial.serial_for_url(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/serial/__init__.py", line 88, in serial_for_url
    instance.open()
  File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 247, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'

I have verified that the device is listed under /dev, have changed its permissions and as I said above, it does work with deCONZ. I have also removed modemmanager to avoid interferences with it. The firmware is the latest one.

I’ve run out of ideas and I don’t know what I can do next. Any suggestions? Thanks!

Posts: 1

Participants: 1

Read full topic

Viewing all 106270 articles
Browse latest View live


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