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

Best way to manage visually an input_select linked to scene in lovelace?

$
0
0

Hi,

I created 4 scenes for my office. One of them is always active.
I create an input_select & automations to activate the appropriate scene upon selection done in the input_select.

I would like now to add a visual bar in lovelace with 4 buttons (one for each scene) and have the button icon (or colored) for the scene that is active. So visually I always see the scene that is considered as active.

I did not found any controls to add that easily. I would like to avoid creating unnecessary sensor etc…

What is the recommended pattern to use for such a need that I think should be common.

Thank you

1 post - 1 participant

Read full topic


Recorder errors

$
0
0

Keep getting this error in my Log

Log Details (ERROR)
Logger: homeassistant.components.recorder.util
Source: components/recorder/util.py:87
Integration: Recorder (documentation, issues)
First occurred: 11:11:38 (24 occurrences)
Last logged: 11:23:34

Error executing query: (sqlite3.OperationalError) database is locked (Background on this error at: http://sqlalche.me/e/e3q8)

and my yaml

recorder:
  purge_keep_days: 1
  exclude:
    domains:
      - automation
      - updater
    entities:
      - sun.sun # Don't record sun data

Any ideas?

1 post - 1 participant

Read full topic

QT-OpenZwave Aeotec Zstikgen5 with range extender 6 door sensor out of range

$
0
0

Hello, I have this setup running:
The new OpenZwave integration. Integrated and working “well” (well, acceptable for testing).

I have recently added 2 doorsensors. Included succesfully and working. But.

I have the Aeotec Z-stick in my hass. Then I have succesfully included and can see working aeotec range extender about 15m from the zstick.

now when I move the doorsensor closer to the repeater it does not send any updates anymore… If I walk back towards the zstick it picks it up again…

Where do I need to start troubleshooting? I am used to zwave and that routing will happen if the controller is not near. I also tried to heal the network, does not help.

2 posts - 2 participants

Read full topic

Detection of what or who turned my lights on

$
0
0

Sometimes my bedroom lights turn on without me doing anything. It has happened during day and night.

I really need to get this fixed before my new blinds open under wrong time.

Is there a way to detect what or who turned my lights on?

1 post - 1 participant

Read full topic

Xiaomi Miio Gateway found when updating to 0.111.x

$
0
0

image

I’ve got the gateway configured through yaml for a year or so, this just started popping up. Should I remove the yaml config?

1 post - 1 participant

Read full topic

How to access the attribute of an entity?

$
0
0

I have thermostat integrated to HA. I can see the entity (climate.upstairs) and also the attributes from the states page.

current_temperature: 75
temperature: null
target_temp_high: 81
target_temp_low: 68
current_humidity: 45

I want to show the history of current_temperature for the past couple days using either history graph card or custom:mini-graph-card, how can I access that attribute in the card?

Thanks.

1 post - 1 participant

Read full topic

Looking for a .py scripter to make my script better

$
0
0

Hi, in my house i have a domotica controller, i can send TCP commands to it to turn all my lights/switches on off, all is working perfectly , i have configured all templates lights/switches, that use a shell command…

i have also exposed my lights/switches to google assistant, all was working fine , untill this new improvement came :

before that PR: basicly what happened, is when you say to google like, turn all lights on , it sends the all commands in a sequence, so my light was turned on, one by one … no problem
After that PR/ when you say, turn all lights ON, HA just sends ON commands all together, and not in sequence anymore… my controller is not able to handle multiple requests together …

so i am tryng to write a code, like below, with some copy/paste stuff from google, but i cant figure it out, something is not right, with that try except stuff
the code is working though, when i turn 1 light on / off, but when turn on like 4 lights, only 2 are turned ON

how can i make this to work? :slight_smile:

or is there maybe another way to accomplish what i want todo ?

tnx and appreciated

#!/usr/bin/python3
import socket
import time
import binascii
import sys

host = '192.168.0.10'
port = 1001
message = binascii.a2b_hex ("ED43310000000000000000000000AFAF" + sys.argv[1].zfill(2) + sys.argv[2].zfill(2) + sys.argv[3].zfill(2))

# First try-except block -- create socket

try:
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
except socket.error:
    print ("Error creating socket")
    sys.exit(1)
# Second try-except block -- connect to given host/port

try:
	s.connect((host, port))
except socket.gaierror:
    print ("Address-related error connecting to server")
    s.connect((host, port))

except socket.error:
    print ("Connection error")
    s.connect((host, port))
	
except socket.timeout:
    print ("Connection timeout socket connect")
    s.connect((host, port))

# Third try-except block -- sending data
try:
    s.send(message)

except socket.error:

    print("Error sending data")
    s.send(message)
except socket.timeout:
    print ("Connection timeout send message")
    s.connect((host, port))

s.close()	
	
'''

1 post - 1 participant

Read full topic

Ecobee keeps becoming unavailable

$
0
0

My ecobee randomly decides to stop working from time to time. Each time I have to delete it, then re-add it and go through the whole authorization process again. How can I prevent this from happening, or is there a better way to debug/manage this? It gets quite annoying. Nothing is being touched on the ecobee side. Just randomly on HA reboots it’ll just lose connection.

1 post - 1 participant

Read full topic


Templating Primer?

$
0
0

I apologize upfront for the newbie questions but I’ve scoured the documentation and I’m still a bit lost.

I’ve added the time_date sensor to my config but now I want to convert the time date format to US. I see that templating is the way to go but I’m absolutely lost on where and how to create this template. I’m not afraid of coding things w/ the appropriate examples, but where do I put the code? How do I replace the native display options with that code?

Is there any good step by step primers on how to do this or something similar that I can study and use as a guide to get started? I’ve found some code snippets but not knowing where to put them or how to interact with them makes the code useless to me.

Any help would be appreciated.

Thanks, Rob

1 post - 1 participant

Read full topic

Mobile location (map)

$
0
0

Hi all,

after installing HA Core and IOS Client, Map shows my location (which was defined when installing), but my mobile does not shows in map.

By map - persons, i can find me, and have define track device.

Paulo Ven
 
Name
Paulo Ven
Linked User
Paulo Ven
Select the devices that belong to this person.

 
Track Device
device_tracker.iph6pw
 
Pick device to track

On my iphone i enabled homeassiant allways use location.

But it does not shows in map.

Is there anything else to be done?

Thx in advance.

1 post - 1 participant

Read full topic

Dyson Fan - Bug or Feature

$
0
0

So, I’ve got 2 Dyson fans, one is a Pure Cool link, and the other is a Pure Hot+cool link. Both fans seem to work fine from a HA standpoint. I can turn them on/off, adjust the speed, night mode, etc; as well as control the heat/cool climate settings of the Hot+cool fan. Great.

When either one of the fans is set to a speed of 1-10, the state of the fan entity, is set to “on”.
When either one of the fans is set to a speed of AUTO, the state of the fan entity, is set to “off”.

In the below screenshots fan.bedroom has a speed of 2, where fan.living_room is set to AUTO:

image

I would expect to see a fan state be set to “on” if the fan is set to “AUTO” or “1-10”. Not Just “1-10”.
Is this a bug, or an undocumented feature? Anyone else experiencing this?

1 post - 1 participant

Read full topic

Iframe issue (panel_iframe, Webpage Card)

$
0
0

Hello.
I tried to use different frames and also custom frame https://github.com/covrig/homeassistant-iframe-card.
In all cases I see nothing at window.
In case with “panel_iframe” , I see " 192.168.1.1 refused to connect." in the window.
192.168.1.1 is address of my router and it opens well in chrome.

When I change url to ‘http://192.168.1.221:8123/’ (HA address)


It opens HA under router label and inside it router field is empty.
Looks like something miss or something blocks to present external links in all kinds of frames.
I will glad to get advance to fix it.

2 posts - 2 participants

Read full topic

Addressing and aliasing in the home assistant

$
0
0

Good day guys,

I am new to the HA, so please forgive unadvanced questions here.
I am having trouble understanding addressing in the HA - the homeassistant.components.rest.switch notations, for instance. I am not new to the Python and under regular circumstances it will mean to me the importing of the homeassistant module itself and the addressing the subclasses. So the questions I have are:

  • I have Fibaro ZWave lights devices. How can I rename them into the more user-friendly versions (lights.kitchen.strip, for instance), in the cli? Where are these files located?
  • I saw some people using log facility, or something. Is there a reference to understand this too?

Tons of thanks!!!

Cheers

2 posts - 2 participants

Read full topic

Automation with Blinds numeric_state below or above not working

$
0
0

I want to start the automation if the blinds have a special position, i.e. below 50%.
At present I have problems with the below code: condition entity_id: cover.storeroom
There is no action if the blinds is below 50%
How can I solve this issue, has anybody some ideas?

- id: '1592315250625'
  alias: Blind_test
  description: ''
  trigger:
    - entity_id: input_boolean.test
    platform: state
    to: 'on'
  condition:
  - below: '50'
    condition: numeric_state
    entity_id: cover.storeroom
  action:
  - data: {}
    entity_id: light.storeroom
    service: light.turn_on

1 post - 1 participant

Read full topic

Using SSH to shutdown Synology NAS

$
0
0

I want to use SSH to shutdown my Synology NAS.
I have created keys and played around with different permissions but haven´t managed to make it work yet.
Has anybody in here managed to make HA (NOT Hassio and NOT Docker) shutdown their Synology through SSH and a shell command?

1 post - 1 participant

Read full topic


Bose Soundtouch group status & Alexa

$
0
0

Hello, I have a pair of Bose Soundtouch 10 that I have configured into a group thusly:

(config)

media_player:
  - platform: soundtouch
    host: !secret bose_right_ip
    port: 8090
    name: bose_right
  - platform: soundtouch
    host: !secret bose_left_ip
    port: 8090
    name: bose_left

(groups.yaml)

bose:
  name: Bose
  icon: mdi:speaker
  entities:
    - media_player.bose_left
    - media_player.bose_right

I can call the homeassistant.turn_on and off to activate the group but the status always shows as off.

Also, when I had Alexa working to turn on and off this group, Alexa would always say “bose is not responding” even though they did indeed turn on with the command.

Any tips regarding config or something else to allow the group status to be sensed?

Thanks!

1 post - 1 participant

Read full topic

Aeotec gen 5 z-wave within home assistant

$
0
0

Hello,

I have the following problem:

  • I installed the stick in home Assistant and it recognizes it.
  • It also installed the zwave control panel.
  • I activated the first (smoke) sensor and it got detected within home assistant.
  • when I activate the other sensors (7 in total) only 1 extra got recognized within Home Assistant and the values aren’t correct (reads no data).

If I look into the weave control panel and show the logs for the stick, I see the different sensors connecting and communicating.

Any ideas why HA doesn’t pick them up?
The Zwave integration is enabled to auto add newer devices.

Thank you!

1 post - 1 participant

Read full topic

Fan speed off issues (alexa, tasmota, ifan02, mqtt)

$
0
0

Hello there!

Trying to get fan integration to work with Alexa and Home Assistant. I’m using Sonoff IFAN02 with tasmota, and it works almost perfectly… even room aware (which is AWESOME as the old way i had it with routines was a pain).

What I’m running into now is the on/off commands are not room aware (in alexa), but the fan speed commands are (weird right?). Anyways, I saw some folks putting in an “off” speed in the fan entity, so I did that, which works in HASS, but Alexa says it’s unresponsive when calling the “set fan speed”. Likewise on the alexa app, if I toggle the fan speed to zero, it gives me an unresponsive, but toggling to 1-3 work fine.

Anyone run into this problem that has been able to solve it? Or am I barking up a tree that just won’t work with the current alexa skill set from amazon?

Thanks in advance for looking!

I used the template posted on tasmota HASS integration website as a basis and added the payload_off_speed: "0" and the -"off" to the speed list.

i’m using the direct alexa/HASS integration found here https://www.home-assistant.io/integrations/alexa.smart_home/

Here is my fan entity:

fan:
  - platform: mqtt  
    name: "Office Fan"  
    state_topic: "stat/Office/RESULT"
    speed_state_topic: "stat/Office/RESULT"
    state_value_template: >
        {% if value_json.FanSpeed is defined %}
          {% if value_json.FanSpeed == 0 -%}0{%- elif value_json.FanSpeed > 0 -%}2{%- endif %}
        {% else %}
          {% if states.fan.office_fan.state == 'off' -%}0{%- elif states.fan.office_fan.state == 'on' -%}2{%- endif %}
        {% endif %}
    speed_value_template: "{{ value_json.FanSpeed }}"
    availability_topic: tele/Office/LWT
    payload_available: Online
    payload_not_available: Offline
    speed_command_topic: "cmnd/Office/FanSpeed"
    payload_off_speed: "0"
    payload_low_speed: "1"
    payload_medium_speed: "2"
    payload_high_speed: "3"
    command_topic: "cmnd/Office/FanSpeed"
    payload_off: "0"
    payload_on: "2"
    qos: 1
    retain: false
    speeds:
      - "off"
      - "low"
      - "medium"
      - "high"

1 post - 1 participant

Read full topic

Cannot remove or replace old sensor -- help!

$
0
0

I have an Zooz ZSE40 multisensor that has gone bad and I cannot remove it nor replace it. I’ve tried everything and hoping to get some help.

Here’s what I’ve tried:

  1. Tried excluding it, but the sensor is bad so I can’t initiate the exclusion process on the sensor itself
  2. I’ve tried editing the zwave devices state setting is_failed=true then trying to use “Replace Failed Node” or “remove node” from Zwave config UI
  3. Tried #2 while also editing the zwave xml file to remove the entire XML node (in my case it’s node id=44).

I’ve tried rebooting and every combo I can think of with the above. No luck.

The device is stuck in the initializing phase:

What can I do to get rid of this device?

4 posts - 3 participants

Read full topic

Issue with template and mac address

$
0
0

hello, i have a strange problem with an ip address template on a device.tracker.
I always have a “TemplateSyntaxError: expected token 'end of print statement” error when I try to retrieve the @ ip from the device trackers which starts with a number in the mac address.
But it works great for those who start with a letter!
Does anyone have an explanation to this ?

  - platform: template
    sensors:
      harald_pc_ip:
        friendly_name: "harald_ip"
        value_template: '{{ states.device_tracker.f4_xx_xx_xx_xx_ff.attributes.ip }}'
        unit_of_measurement: ''
      livebox_ip:
        friendly_name: "livebox_ip"
        value_template: '{{ states.device_tracker.a4_xx_xx_xx_xx_25.attributes.ip }}'
        unit_of_measurement: ''    
      david_pc_ip:
        friendly_name: "david_pc_ip"
        value_template: '{{ states.device_tracker.30_xx_xx_xx_xx_b0.attributes.ip }}'
        unit_of_measurement: ''
      mathilde_pc_ip:
        friendly_name: "mathilde_pc_ip"
        value_template: '{{ states.device_tracker.00_xx_xx_xx_xx_ba.attributes.ip }}'
        unit_of_measurement: ''
      

1 post - 1 participant

Read full topic

Viewing all 108575 articles
Browse latest View live


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