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

Home Assistant Installation Confused :/

$
0
0

Hi,

I used to have HA installed in a Docker on a RPi3B+ (on SSD), I had the Supervisor option from which I was able to make updates etc.
Question … what is this setup called? And will it be supported?

Now I re-installed from scratch using the command taken from here using command:

docker run --init -d --name="home-assistant" -e "TZ=America/New_York" -v /home/pi/homeassistant:/config --net=host homeassistant/raspberrypi3-homeassistant:stable

But now I do not have the Supervisor, and I dont know from where I can restore the backup.
Which version of HA should I install? I would like to use an external SSD, so the image listed here will not work.

Any ideas what should I do? I am really confused on the way forward at this stage.
I know this question is really common but I would like someone to guide me.

Thanks in advance

4 posts - 2 participants

Read full topic


OpenZWave Beta Secure Devices

$
0
0

So I have a bunch of devices on the new OpenZWave beta, but I noticed that none of them have the secure flag… So what am I doing wrong here. The network key is set in the config (it won;t start without it, then I go to service and run ozw.add_device With the secure option.
Now I’ve tried secure: 1 and secure: true… but the devices are always added without the secure flag.

The devices are all mostly Fibaro, newer models, Fibaro Wall Plug 2, Dimmer 2, etc…

1 post - 1 participant

Read full topic

Icon color - hs_color attribute works only for state = 'on'

$
0
0

In customize_glob.yaml I have code to change icon and color for switches.
Icon works correctly, but color change only for “on” state, for off I have default blue color, why ?

switch.out*:
  templates:
    icon: >
      if (state === 'on')  return 'mdi:toggle-switch';
      else return 'mdi:toggle-switch-off';
    hs_color: >
      if (state === 'on') return [58, 87, 47];
      else return [353,65,45];

2 posts - 2 participants

Read full topic

Simple Toggle switch for HA scripts

$
0
0

Currently in the process of moving over 70 odd devices and several automations to HA from domoticz so forgive me if this is a stupid question

I have several HA scripts now that I set as on/off switches (e.g. script_ht_aircon_on is script 1 and script_ht_aircon_off is script 2)

I tried command line switch in switches.yaml

- platform: command_line
  switches:
    study_aircon:
        command_on: script.script_ht_aircon_on
        command_off: script.script_ht_aircon_off
        friendly_name: "Study AC"

That didn’t work. The switch shows up but returns a command failed error in the logs (I can manually execute the script from the front-end and they work as expected)

but these need to be tied back to HomeKit hence the need to set them as switches.

I would have guessed that having the ability to create a simple switch on a HA platform would be one of the first things - where am I going wrong?

1 post - 1 participant

Read full topic

Location sort of not updating on 1 android device

$
0
0

Hi,
I’ve installed HA on my RPi3 B+ yesterday and it’s absolutely amazing, but I’m having trouble with my phone location in it. I installed the HA app on both my tablet (android 9) and phone (android 10) and their info appeared in the little bubbles on top of HA dashboard.

I’ve not rly sure whats going on, but they both correctly track on map, they both show they’re either home, away or at work, they both correctly toggle my automations when I leave house, but the phone location bubble only ever shows the very first location it recorded. The tablet bubble shows all the locations it’s been into.

The HA apps on both devices have full location access and they’re both exempt from battery optimisation.

Any help welcome,
thanks!

1 post - 1 participant

Read full topic

Can I run HA and mosquitto (and maybe RTL_433) on the same RPi 4?

$
0
0

I’m in the process of integrating my BBQ Thermometer into HA…and I would like to run HA, Mosquitto (MQTT broker) and if possible, RTL 433 (radio receiver/MQTT client) on the same RPi. Is it possible…and if so, could someone give me at least a clue where to start :slight_smile:

1 post - 1 participant

Read full topic

Count Hour of Sun

$
0
0

Hi all, i’m tryng to create a sensor that count the hour of sun during the day. I used the history_stats but i had to add in start and end the variable of the sunrise and the sunset because the weather component keey the sunny state even if is night.

Can this work? :

sensor:
  - platform: history_stats
    name: Ore di Sole Oggi
    entity_id: weather.milano
    state: 'sunny'
    type: time
    start: "{{ state_attr('sun.sun', 'next_rising') }}"
    end: "{{ state_attr('sun.sun', 'next_setting') }}"

6 posts - 2 participants

Read full topic

Automation trigger for x minutes after entity state change

$
0
0

I need to create an automation trigger for a scene to be triggered say 90 seconds after an entity has changed state.
The automation template in HA allows for an action to be triggered after a delay but only if the entity has remained in that state for say 90 seconds

To explain the use case further , I live in a semi urban area where brownouts are common.
I have a power backup that kicks in 30 seconds or so after mains power goes down.
However that sets a lot of my devices (lights mostly) to an on state.

I have created a binary sensor (Ping based) that changes state to off when power goes out and on when it resumes.
The way I want to use it is for HA to :
1 - 00:00:00 State changes from on to off (power outage)
2 -approx 00:00:30 - State changes from off to on (backup power kicks in)
3 - approx 00:01:30 - all devices are back online
4 - approx 00:02:00 - trigger scene to set all lights to off (unless it’s between dusk and midnight)

Any thoughts or suggestions?

3 posts - 2 participants

Read full topic


Can someone help me with the aumatics script, please?

$
0
0

I don’t understand the association perfectly yet, I only learn as a complete layman.
My request:

when the humidity in the “sensor.terarium_humidity” terrarium is less than 60%;
and
not more than 65%;
and
there is enough water in the tank “switch.level - off”
and
in the terrarium, the temperature of “sensor.terarium_temperature” is greater than 26
and
is the time of day between 8:00 and 18:00
turn on the “switch.th_meter” switch 1 per hour for 15 seconds

I can’t handle that cycle of 15 seconds 1 per hour


  alias: Déšť automatizace
  description: ''
  trigger:
  - below: '60'
    entity_id: sensor.terarium_humidity
    platform: numeric_state
  condition:
  - below: '65'
    condition: numeric_state
    entity_id: sensor.terarium_humidity
  - condition: and
    conditions:
    - condition: state
      entity_id: switch.hladina
      state: 'off'
  - condition: and
    conditions:
    - above: '26'
      condition: numeric_state
      entity_id: sensor.terarium_temperature
  - condition: and
    conditions:
    - after: '8:00:00'
      before: '18:00:00'
      condition: time
  action:
  - condition: state
    entity_id: switch.th_meter
    state: 'On'

Thank you for your help

1 post - 1 participant

Read full topic

Custom media player with command line

$
0
0

Hello everyone,

I’m new to HASS, but experienced developer (including python).

I have a custom hardware multi-room sound distribution system. I use a PI with a USB-serial cable to control it. It has 6 zones each with on/off, 6 sources, and volume. I was able to add command line switches to Lovelace front end to basically perform macro. For example, I do echo -e “*command 1” > /dev/ttyUSB0; echo -e “*command 2” > /dev/ttyUSB0 for one switch, another one to turn another set of zones on and switch sources to play the tv. Ideally I have a media card for each zone with its own on/off, source, and volume, and an all zones card. However, seems any media player has to be an actual integration. So is the way to accomplish what I want to create a custom media_player? Seems media_player already has placeholders for those commands, and I just need to hook up the command_line services to those placeholders. I guess I’m not seeing the full picture of how command_lines, services, integrations, media_player, and Lovelace UI all relate.

Thanks for help in advance!

1 post - 1 participant

Read full topic

Bluetooth tracker - added to configuration.yaml but nothing seems to happen

$
0
0
|hassio|true|
|host_os|HassOS 4.10|
|installation_type|Home Assistant|
|os_name|Linux|
|os_version|4.19.126-v7|
|python_version|3.7.7|
|supervisor|227|
|timezone|Europe/London|
|version|0.111.2|
|virtualenv|false|

I’m trying to use bluetooth tracking. I’ve added the following configuration as documented:

default_config:

device_tracker:
  - platform: bluetooth_tracker
    interval_seconds: 15
    consider_home: 150
    track_new_devices: yes

Rebooted the Pi etc. but nothing seems to happen. Nothing shows up in ~/config/devices/dashboard, no known_devices.yaml file appears. No logs indicating any errors.

Not sure what I am doing wrong?

3 posts - 2 participants

Read full topic

RFlink not connected with Hassio by USB

$
0
0

Hi everyone, i’m struggling to get my RFlink to work with Hassio. I want to connect the RFlink by USB to my RP3. I have tried several options but I don’t get a connection with the RFlink.

First of all I tried the steps accordingly this page - https://www.home-assistant.io/integrations/rflink/. However the RFlink is not showing up on my Integrations. After that I looked into my log and it says the following:

[Errno 2] could not open port /dev/by-id/usb-id01234: [Errno 2] No such file or directory: ‘/dev/by-id/usb-id01234’
2020-06-19 23:00:38 WARNING (MainThread) [homeassistant.components.rflink] disconnected from Rflink, reconnecting

I tried several other options for the connection with the USB port for the configuration, but that has not yet led to a working RFlink.

Can anyone help me with this problem please?

2 posts - 2 participants

Read full topic

KNX with multiple interfaces

$
0
0

Hi,
i have an buildung with 3 knx busses, i search for configure multiple knx-Interfaces (tunneling) in the configuration yaml.

Thanks and Greetings
Rene

1 post - 1 participant

Read full topic

Bayesian Sensor Automation Help

$
0
0

Hi,

How do I keep my living room lights on without having the bayesian binary sensor turning them off?

My yaml is here:, I guess I’m hoping for an explanation on the way to setup a “lights” automation using the bayesian sensor. What I currently have is turning the light off straight after they turn on. Any help is appreciated.

# Bayesian Sensor Living Room
binary_sensor:
  name: 'In Living Room'
  platform: 'bayesian'
  prior: 0.5
  probability_threshold: 0.85
  observations:
    - platform: 'state'
      entity_id: binary_sensor.living_room
      prob_given_true: 0.9
      prob_given_false: 0.1
      to_state: 'on'
    - platform: 'state'
      entity_id: binary_sensor.kitchen
      prob_given_true: 0.1
      prob_given_false: 0.8
      to_state: 'off'
# Motion Living Room On
- initial_state: 'on'
  alias: 'Motion in Living Room - Light On'
  trigger:
      platform: state
      entity_id: binary_sensor.in_living_room # Bayesian Sensor
      to: 'on'
  action:
     - service: light.turn_on
       entity_id: light.living_room
      

- initial_state: 'on'
  alias: 'motion living room'
  trigger:
      platform: state
      entity_id: binary_sensor.in_living_room
      to: 'off'
  action:
    service: light.turn_off
    entity_id: light.living_room

1 post - 1 participant

Read full topic

Communicating with AWS IoT

$
0
0

This is more of an architecture question.

Say I get solar PV data onto my local instance of Hass.io and want to make this available to the MQTT broker on AWS IoT for use on a AWS instance of Node-RED.

What are the building blocks to make this work?

1 post - 1 participant

Read full topic


Combination of states as trigger?

$
0
0

I’m struggling to get following working and based on a few searches I did on both Hass and Node RED I fear it’s not possible in an easy way. There is no single main trigger, so I cannot use the other states just as conditions.

I have a set of states, e.g.

person 1
person 2
time of day
TV
lights
prevent auto away

And I have three home away states: home, sleep, away

for home to activate following should be the case:
person 1 or person 2 home
time of day: between 7:00 & 0:00
TV: can be anything
lights: can be anything
prevent auto away: can be anything

for sleep to activate following should be the case:
person 1 or person 2 home
time of day: between 0:00 & 7:00
TV: off
lights: off
prevent auto away: can be anything

for away to activate following should be the case:
person 1 and person 2 away
time of day: can be anything
TV: can be anything
lights: can be anything
prevent auto away:

Thanks!!

2 posts - 2 participants

Read full topic

Lutron Aurora, group binding,zha

$
0
0

Has anyone been able to bind the Aurora to a group of bulbs in zha (preference) or deconz? Here is where I’m at with it: I was running my Zigbee network with deconz but couldn’t get a Lutron aurora to bind with any Zigbee bulbs so I switched everything to zha. In zha I can get the aurora to bind with a single bulb (ecosmart from Home Depot) but cannot get it to bind to a group of these bulbs. Has anyone had any luck or have any ideas where I can search for more help with this?

1 post - 1 participant

Read full topic

Chabge icon on state/toggle change entity list

$
0
0

Is there any way to change the icon on an entity card when a switch is off…

I have HACS installed as I imagine it must be doable via some sort of custom js.

1 post - 1 participant

Read full topic

Alexa Notify Text to Speech syntax

$
0
0

Hi,
I’ve installed https://github.com/custom-components/alexa_media_player/

I’m trying to do TTS and receive the error below.

2020-06-20 09:36:22 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.240165373216230] 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
    connection.context(msg),
  File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 119, in async_notify_message
    await notify_service.async_send_message(**kwargs)
  File "/config/custom_components/alexa_media/notify.py", line 189, in async_send_message
    if data["type"] == "tts":
TypeError: 'NoneType' object is not subscriptable

1 post - 1 participant

Read full topic

Schlage BE469 Deadbolt: Solid Red Light

$
0
0

Our Schlage BE469 Deadbolt’s inside light has been on all day (just the top center portion):

According to the manual and doing some googling, this is not something that’s ever happened in the history of the deadbolt, and should not happen.

It seems to be functioning correctly, it connects/works with HA without issue, so I’m not 100% sure what changed: I also replaced the batteries just in case.

My best guess is somehow (or from someone messing with me), there’s a zwave parameter that was set to turn it on. Anyone have any thoughts? Or has this happened to anyone else?

1 post - 1 participant

Read full topic

Viewing all 108646 articles
Browse latest View live


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