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

Export entity names

$
0
0

Anyone know if there is a way to export all the entity names as a list?

1 post - 1 participant

Read full topic


Split RPI GPIO switches into separate groups

$
0
0

Hi,

I followed this documentation: https://www.home-assistant.io/integrations/rpi_gpio/ and created this configuration:

switch:
  - platform: rpi_gpio
    invert_logic: true
    ports:
      20: Amplifier - Sound
      21: Amplifier - Power
      22: Anchor Light
      23: IR Light

It works, but I don’t like the fact that all the switches are bundled together under the same block, so I tried the following:

switch:
  - platform: rpi_gpio
    invert_logic: true
    ports:
      20: Amplifier - Sound
      21: Amplifier - Power
  - platform: rpi_gpio
    invert_logic: true
    ports:
      22: Anchor Light
      23: IR Light

It still didn’t unbundle it. Putting two separate “Switch” sections doesn’t work at all.

In both cases above my UI looks like the Left hand side. What is the right config to achieve the right-hand-side?

Thanks!

1 post - 1 participant

Read full topic

SSH port is disabled. Prevent start of SSH server

$
0
0

Hello,

Suddenly I found that I cannot connect to HA using putty. The message tells me that connection is refused. It used to work but I do not remember when was the last time I used it.

When I restart HA or just restart “Terminal & SSH” Add-On, I see the following:

[10:05:45] INFO: Starting Web Terminal...
[2020/06/20 10:05:45:1610] N: ttyd 1.6.0-c15cfb7 (libwebsockets 3.2.2)
[2020/06/20 10:05:45:1611] N: tty configuration:
[2020/06/20 10:05:45:1611] N:   start command: tmux -u new -A -s homeassistant bash -l
[2020/06/20 10:05:45:1613] N:   close signal: SIGHUP (1)
[2020/06/20 10:05:45:1613] N:   terminal type: xterm-256color
[2020/06/20 10:05:45:1976] N:  Using foreign event loop...
[2020/06/20 10:05:45:1984] N:  Listening on port: 8099
[10:05:45] WARNING: SSH port is disabled. Prevent start of SSH server.

This is the configuration for my “Terminal & SSH” Add-On. Can someone help me?

authorized_keys: []
password: MyPasswordIsHere
server:
  tcp_forwarding: false
port: 22

1 post - 1 participant

Read full topic

Stream component does not seem to work in HASS.io

$
0
0

I have a cheap Xiaomi Xiaofang 1S wifi camera running the Dafang-Hacks custom firmware integrated (as shown below) and using a Picture Glance card in Lovelace. The still image is properly displayed, but when clicking on the still image the stream player popping up will only show a spinner and not display a live stream.

Related errors in the log:

Uncaught exception 
5:17:47 PM – components/stream/worker.py (ERROR)

method DESCRIBE failed: 401 Unauthorized
5:17:47 PM – components/stream/worker.py (ERROR)
Logger: libav.rtsp
Source: components/stream/worker.py:49

Integration of the camera:

stream:

camera:
  - platform: generic
    name: Xiaofang1
    username: root
    password: !secret xiaomicam
    authentication: basic
    verify_ssl: false
    scan_interval: 5
    still_image_url: https://xiaofang1/cgi-bin/currentpic.cgi
    stream_source: rtsp://user:pass@xiaofang1:8554/unicast

The camera RTSP H264 stream displays beautifully on VLC, so it does not seem to be a problem with the camera. I also used IP addresses instead of DNS names to rule out a DNS resolution problem. That did not solve the problem.

At first I thought that maybe FFMPEG was missing from my HASS.io installation (running on KVM), also since when looking with find / -name "ffmpeg" it couldn’t be found. However, at some point I actually got a live stream in Lovelace when clicking the still image. That did work for the Stream platform and for the FFMPEG platform, so I guess, ffmpeg must be installed somehow, even if I can’t find it. Now it is not working, again. Before someone asks, yes, I rebooted the VM, I restarted HA core, I rebooted the camera, to no avail.

I am quite puzzled and I have exhausted all leads I could think of. I hope someone here has a good idea what else to try to fix this.

1 post - 1 participant

Read full topic

Unifi Integration Help

$
0
0

Hi everyone, I am trying to get the Unifi integration working so I can set up a schedule where it will disconnect my kids ipads at a certain time. I got the Integration connected to my unifi controller and added my kids ipads as switches in the options. When I try and turn one off, I get an error, log below. Any ideas? Thanks!

Call https://192.168.1.1:443/proxy/network/api/s/default/cmd/stamgr received 404 Not Found

1 post - 1 participant

Read full topic

Non-JSON MQTT payload

$
0
0

Hi! I have since a few years some esp8266/32 devices running, sending sensor values etc to a custom home automation backend using MQTT. As I don’t have time to continue development of that system, I’m considering switching to Home Assistant.

Problem is that my devices send a compact payload like this:

sp=294.22,pv=297.21,rt=149

First, values are in Kelvin, so I need to subtract 273.15 from them to display values in Celsius.
Second, it’s not JSON, so it’s harder to parse using value_template, if I understand it correctly.

What would you suggest? Is there a way to get this working without too much trouble, or should I just resign and update the sensors to send data in JSON?

1 post - 1 participant

Read full topic

/local (www) dir authentication

$
0
0

I’m using /local to serve javascript modules for lovelace as well as entity images for people and devices.

I’ve been setting up external access today and noticed that if I’m not logged into HA I can see access files shared through this directory. Is there some config to protect it or is there a better place to store files that I want to keep private such are the entity images?

Thanks
Mark

1 post - 1 participant

Read full topic

HS220 help

$
0
0

Hi everyone, totally new to haas and hoping for some guidance including some examples. High level question, is it possible to have what I call kitchen light routine in one automation rule? This routine currently runs in google home, i’d like to toss it and use HAAS exclusively

  • I have a hs220 (kasa dimmer switch). It is configured as a a light so i can leverage the dimming features. Via UI, the HS220 shows up as light, i can turn on, off and dim as required.

Here’s the routine i have setup in google home which i’d like to mimc in haas as one rule if possible

Monday - Friday
7am kitchen light comes on with 25% brightness
8am kitchen light increases to 50% brightness
9am kitchen light increases to 75% brightness
9pm kitchen light dresses to 50% brightness
9:30pm kitchen light decreases to 25% brightness
10pm kitchen lights are turned off

Saturday / Sunday:
9pm kitchen light dresses to 50% brightness
9:30pm kitchen light decreases to 25% brightness
10pm kitchen lights are turned off

bonus if this automation can also handle states check, for example if the light is increasing or lowering brightness so it doesn’t turn the light on or off. Further; i noticed while setting up a another rule, the sun feature; would be neat to replace specific times and instead use the offset of sun to maybe do the timings.

1 post - 1 participant

Read full topic


Display color temp as kelvin in Lovelace?

$
0
0

I feel like I’m missing something in configuration options but I can’t seem to find it, so I’m asking here.

I understand that mireds are the internal unit used for a number of systems, likely due to the ease of representing the value with a single byte (similar to brightness, etc). That’s fine for internal use, but it’d be incredibly helpful to instead display that value as Kelvin in the more-info view when clicking on an entity in Lovelace.

I understand that I can create custom entities or sensors that display this value calculated as Kelvin using a template, but that seems extremely excessive and still does not achieve the task of displaying this in more-info views. I know I can use the secondary-info custom entity card to tack that on underneath the entity in an ‘entities’-esque view, but again, that requires I define a sensor or attribute in config files for every bulb, which becomes quite tedious if I change anything up.

Is this a setting that can be changed for the frontend as a whole, similar to enforcing using Fahrenheit/Celsius or Miles/Kilometers for the units? It doesn’t appear in any visible UI configuration pane and I’m hoping this is something I can set in one spot in my configuration.yaml to set that up.

Any help is greatly appreciated! Kelvin are the standard unit used for discussing color temperatures and I feel should be the default display, with mireds accessible as an attribute.

1 post - 1 participant

Read full topic

LCN - Cover/Shutter

$
0
0

Hi Everyone,

i seem to be doing something wrong. I am trying to setup the Shutter/Covers.

First i tried unsing switches:

  switches: 
      - name: Rolladen Arbeitszimmer
        address: myLCN.s0.m10
        output: relay1

which seemed to work at random…

Then i switched to covers

  covers:
      - name: Rolladen Arbeitszimmer
        address: myLCN.s0.m10
        motor: motor1

This accutally workd 100% of the time but only for shutting/closing the shutter. Open wont work. When i Trigger the open command via LCN Pro or the Button on a GT12 they go back up and the Butten i created actually flips to an arrow up action. I think this indicates that it recognized the command … but why does it not trigger it ?

In LCN the configuration looks like this:

rolladen

rolladen2

rolladen3

does anyone have a clue of what to do ?

1 post - 1 participant

Read full topic

Add Network Key to Integration

$
0
0

I have my Zwave network running but need to add some locks. I can’t figure out where to add the network key. I did not make any entry originally in my configuration.yaml for Zwave, I added it through the Configuration/Integration tab. What do I need to do to add a network key?

1 post - 1 participant

Read full topic

Can't find system_id for simplisafe

$
0
0

I’ve searched every way I can think of, and I’ve read the docs, but I’m still lost.

I’m trying to set up an automation that uses the “system_id” attribute of my Simplisafe integration.

According to the docs, “…the system_id parameter required by the below service calls can be discovered by looking at the device state attributes for the integration’s alarm_control_panel entity.

I honestly have no idea what they is referring to. My simplisafe integration is successfully configured, and I can control my alarm system and door locks through home assistant. However, I don’t have an entity named ‘alarm_control_panel.’ The closest I have is an entity with a very long name that includes my full street address and ends in ‘alarm_control_panel.’

When I look at that entity through the UI, I don’t see anything that looks like “device state attributes” and I’m utterly stuck.

I’m sure I’m missing some obvious interpretation, but I’m hoping somebody can help.

Thank you

3 posts - 2 participants

Read full topic

RGBW Mqtt - How can I control both RGB and W channels in brightness at the same time?

$
0
0

End Goal -
morning, RGB and White channel go to max all day.
night, white fades to off after sunset, RGB fades to dim red

My current configuration is
MagicHome RGBW ZJ-WFMN-A V1.1 (This one has IR headers that I added for a remote)
Tasmota 8.3.1(tasmota template)
{“NAME”:“MagicHome V1.1”,“GPIO”:[0,255,56,255,147,38,0,0,37,39,40,41,0],“FLAG”:0,“BASE”:34}

Home Assistant configs below are for 2 of exactly the same device trying different configs. I can see the color and brightness sliders and wheel, any change always turns off the white channel and it never goes back on.

I can also turn on channels by console commands
color 255,255,255,255,255
will turn max of all RGB and the white channel.

All the guides to this are very old - Is there a better way?

  - platform: mqtt
    name: "garden"
    command_topic: "cmnd/garden/POWER"
    state_topic: "tele/garden/STATE"
    state_value_template: "{{value_json.POWER}}"
    availability_topic: "tele/garden/LWT"
    brightness_command_topic: "cmnd/garden/Dimmer"
    brightness_state_topic: "tele/garden/STATE"
    brightness_scale: 255
    on_command_type: "brightness"
    brightness_value_template: "{{value_json.Dimmer}}"
    white_value_state_topic: "tele/garden/STATE"
    white_value_command_topic: "cmnd/garden/White"
    white_value_scale: 255
    white_value_template: "{{ value_json.Channel[3] }}"
    rgb_command_topic: "cmnd/garden/Color2"
    rgb_state_topic: "tele/garden/STATE"
    rgb_value_template: "{{value_json.Color.split(',')[0:3]|join(',')}}"
    effect_command_topic: "cmnd/garden/Scheme"
    effect_state_topic: "tele/garden/STATE"
    effect_value_template: "{{value_json.Scheme}}"
    effect_list:
      - 0
      - 1
      - 2
      - 3
      - 4
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    qos: 1
    retain: false
    
  - platform: mqtt
    name: "plantbox"
    command_topic: "plantbox/power"
    state_topic: "plantbox/powerState"
    brightness_command_topic: "plantbox/brightness"
    brightness_state_topic: "plantbox/brightnessState"
    rgb_command_topic: "plantbox/color"
    rgb_state_topic: "plantbox/colorState"
    white_value_command_topic: "plantbox/white"
    white_value_state_topic: "plantbox/whiteState"
    white_value_scale: 255
    brightness_scale: 255
    color_temp_command_topic: "plantbox/color_temp"
    color_temp_state_topic: "plantbox/color_tempState"
    effect_command_topic: "plantbox/effect"
    effect_state_topic: "plantbox/effectState"
    effect_list:
      - 0
      - 1
      - 2
      - 3
      - 4
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    qos: 1
    retain: true

1 post - 1 participant

Read full topic

Adding device info with Zwave2Mqtt

$
0
0

Hey all,

I’ve got a Fibaro Motion Sensor that is being detected, but the device meta data isn’t. It’s type=0801 id=3002, which looks exactly like the the 3001 as far as I can tell except in the AU/NZ region.

So I downloaded the openzwave master.zip from GitHub, pushed the extracted contents up to /etc/openzwave, made the required changes to the manufacturer XML file. Updates the config path in the zwave2mqtt settings.

It’s still not recognising the device type though. I’m also not particularly confident it’s actually reading the config files. If I specify a config path of /etc/openzwave and restart it all seems fairly normal (though not populating data for my device), if I specify /etc/openzwave/config (which is the subdirectory the manufacturer XML is in) the log output fills with a bunch of “downloading file…” messages where it seems to be downloading files that already existing on the file system. It takes a few minutes and zwave doesn’t start until it completes. I quick scan of the filesystem and it doesn’t appear to have updates any files.

Help?

1 post - 1 participant

Read full topic

Z-Wave USB configuration - where is it?

$
0
0

My Z-Wave stick moved to a different /dev/tty port after plugging in another USB device. In the old days, the configuration was in the configuration file, where is it kept now? As in, where can I change it?

1 post - 1 participant

Read full topic


Help with LED lighting goal

$
0
0

Hey, everyone, I’m looking for some advice on where to start with a project. My goal is to put some led lights under the kitchen cabinet and have them basically always on but at a low level. I would like them to become brighter when motion is triggered in the room. I would like them to go off completely from 11 pm to 8 am, but still come on if triggered by motion in the room. I have an HA running supervised on a NUC, Aeotec zwave plus stick, Aeotec multisensor 6, WS2812b 5m 30leds, esp8266, I’ve made a logic shifter board but I’m pretty lost with which library to use and how to get going. I’ve tried to watch several tutorials but none of them are detailed enough for me to get what I need. Any advice would be appreciated. Thanks.

1 post - 1 participant

Read full topic

Pairing Ikea sensor

$
0
0

I have installed an Ikea sensor to an Ikea light bulb connected to Phillps hue bridge. It seems to be working in the app and the sensor turn on and off the light with the default 3 min timer.

How do I add the sensor to HA? I only see the light I have added to the sensor, but I don’t see the ikea sensor with any reference of binary_sensor.tradfri_motion_sensor.

1 post - 1 participant

Read full topic

Toggling a colored light on from dashboard does not send "power on"

$
0
0

Background: I would like to be able to set up my colored lights prior to turning them on, so have disabled the appropriate setting in tasmota for that particular light (setoption20). Unfortunately when I use the control on home assistants dashboard to toggle on, the light is being sent a “dimmer” command rather than a “power on” command. Result is the light doesn’t turn on.

1 post - 1 participant

Read full topic

Scene always turns my colored light white

$
0
0

When I create a scene to turn my light on to a particular color, it flashes the color for an instant then always turns my light white. I have discovered that the command sent to the light always ends with a white 0. The auto created script has this white_value: 0 towards the end. Even if I remove the white_value 0 from my script the command is still being sent to the light. When my light receives white 0 it changes the RGBW in such way that whatever value is the highest in the RGB is transferred to the W, and all the RGBs are zeroed.

1 post - 1 participant

Read full topic

Z-Wave Network Management Issuea

$
0
0

I am running v111.4 on an Intel NUC with a GoControl USB dongle to handle all my Z-wave devices. The only problem I have had so far was how to get the only 3 way light switch I have to work correctly. I had a little time today and figured I would try to play around with the group associations a bit. Haven’t noticed any other issues with the GUI but when I open the Z-Wave Network Management page I notices that the text for Group Association and Protection are missing along with the buttons to apply the settings. The link to the buttons are actually there if I touch where I think they should so I can still do what I want to but it’s really easy to miss click and mess up the association. I am have absolutely no clue how this happened or how to fix it so I am.hopibg someone might be able to atleast point me in the right direction. The pictures screenshots from the official Android app but I have tested on IE and Chrome on my desktop and same thing. Clearing browser cache had no effect .

Screenshot_20200620-173125_Home Assistant

Screenshot_20200620-171800_Home Assistant

1 post - 1 participant

Read full topic

Viewing all 108915 articles
Browse latest View live


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