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

Updated from 0.92 to 101, problems and breaking changes

$
0
0

@argykaraz wrote:

I am running HA in a venv on a raspberry pi3b+ with raspbian stretch. I just upgraded it to buster and also upgraded to Python 3.7.
I deleted (renamed) the old venv and created a new one with the updated version of HA. But I kept my old configuration and custom components.
I admit I havent changed my configuration.yaml, but only because I couldnt follow all the breaking changes, so I thought I would start HA and change them one by one, according to the errors I will get from the log file. So, here I am.
The first thing I am getting is this:

2019-11-04 13:48:47 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error in data received
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:1056)

I renewed my certificate (thinking that would be the problem, but nothing happened).
When I am trying to open my HA frontend, I am getting error 404.

Posts: 4

Participants: 2

Read full topic


Log messages and user to file?

$
0
0

@Mariusthvdb wrote:

HI,

using a simple script and input_text:

58
my family and other logged in users can enter a text, and play it over the intercom pushing the execute button. What I would like to do is create an automation that writes the message and user to a line in a text file.

I know we can use the notify.file service, but am not sure how to log the user that pushed the button for the script.

Is this even possible? Thanks for having a look!

Posts: 1

Participants: 1

Read full topic

How to show ONLY AWAY devices in a card or a badge

$
0
0

@TGR wrote:

Little history/overview and desired outcome.
I am using HA on Debian PC using virtual environment, zigbee mqtt , etc. etc.
I as all of you have a fleet of Wi-Fi devices (more that 40) and use device tracker component.
The problem is that I can list all devices (device.tracker) on a card or badge and see witch is home or away ,
BUT I WANT TO VIEW/SEE ONLY AWAY DEVICES in the front UI. I want to be able to quickly see only disconnected or missing devices from the network. I use known_devices.yaml and customize.yaml
Any way to do this?
P.S. I did search the forum and found view suggestions in other threads but no final answer.

Posts: 4

Participants: 4

Read full topic

HA requiring several reboots to see all Command line and File sensors

$
0
0

@jim1977 wrote:

Hello!

All of my sensors have been shown in HA so config definitely works.

Sometimes on reboot of HA, several don’t show, requiring rebooting till they all show.
All of these sensors reference one file, tho some will appear and some not…

Any ideas?

Posts: 15

Participants: 2

Read full topic

Sonos device type

$
0
0

@guilly wrote:

Wondering if someone can help me identify my sonos speaker as the proper device in Alexa. I have HA pushing the device to Alexa but it shows up as a Television. I would like it to be identified as a speaker.

I played around quickly with my configuration.yaml but before I go down a rabbit hole I figured I would ask as I’m sure there’s a quick solution.

Here is what I’ve attempted

customize:
  media_player.shield:
    friendly_name: Sonos
    icon: mdi:music

Thanks!

Posts: 1

Participants: 1

Read full topic

How to make my intercom smart (can unlock by application)

$
0
0

@alexmo wrote:

Hello

I wonder if I can make my video intercom smart.

The screen is wireless.
The outside unit is a doorbell with code and camera connected to the inside screen by 6 wires.
Support mobile phone to unlock by application (I can also connect to the outside unit and watch a live camera).

Application: https://play.google.com/store/apps/details?id=com.villa.call&hl=iw

Link to the intercom:

Posts: 1

Participants: 1

Read full topic

Automation between esphome nodes

$
0
0

@shaun-adam wrote:

I’ve got two esphome nodes (NodeMCU for both) in my garage. The first one has an ultrasonic sensor attached and is mounted to the roof. I’ve setup binary sensors for if the garage door is opened and if the car is in the garage. This work fine.

I’ve got a second node with an RGB LED and an ultrasonic sensor. I’d like put this at the front of the garage facing the garage door. When the car comes in the LED should guide the drive to the proper distance inside (the parking spot is quite small for our car).

I can see how I would do this with the ultrasonic sensor on all the time, but I might also walk through the garage or whatever. I don’t want the LED constantly blinking.

Ideally when the binary sensor for the garage door is OPEN the parking assist node would be active (ultrasonic sensor on a really short interval and the LED guiding the driver). When the door is closed the parking assitant goes quiet.

I’m sure this is possible, I’m just not sure what to search for haha.

Thanks for your help!

Posts: 1

Participants: 1

Read full topic

Good thermostat for a baseboard heater

$
0
0

@menekis wrote:

I’m trying to figure out what thermostat I could/should use for a typical 2 wires thermostat that would work with Hassio. Any recomendation? I saw that Sinopé had some but not sure which one I should get. Also I have no hub of any sort (smarthings or else) right now. does that mean I need to get one? thanks!

Posts: 3

Participants: 3

Read full topic


How to use Raspberry Pi with connected speaker for TTS from home assistant

$
0
0

@Alexander_Stepanov wrote:

I want to be able to sound announcements via TTS from HA
(I have HA installed on Intel NUC and was unable to cause any soft to work with an internal sound card. Probable some driver problems.)
I want to use Raspberry Pi with a connected speaker for this. And I mean separate Raspberry Pi on which HA not installed.
After searching on this topic it seems I need to install a media player on Raspberry Pi, and then I will be able to use it for TTS from HA, but I am unable to understand how exactly to do this.

So I have two questions:

  1. What exactly I need to install on Raspberry Pi?
  2. What configuration I need to add to HA config file to use Raspberry Pi for TTS

Thanks!

Posts: 1

Participants: 1

Read full topic

Problem with group of switches

$
0
0

@tescophil wrote:

Hi,

System: HassOS 2.12
Deployment: production
Home Assistant 0.101.2

Problem with automatically switching off a group of switches

TL;DR; Only the first switch in a group is switched off.

This problem only occours when trying to switch off a group of switches using the

service: homeassistant.turn_off

method. I have a group group.garage_lights which is defined as:

garage_lights:
  icon: mdi:lightbulb
  name: Garage
  entities:
    - switch.sonoff_1000000000_1
    - switch.sonoff_1000000000_2
    - switch.sonoff_1000000000_3

There is an automation to turn on these lights when my wife comes home:

- id: garage-lights-on-when-gail-comes-home
  alias: "Garage lights on when Jane comes home"
  initial_state: true
  trigger:
    platform: state
    entity_id: person.jane_doe
    to: 'home'
  condition:
    condition: state
    entity_id: group.garage_lights
    state: 'off'
  action:
    - service: timer.start
      entity_id: timer.garage_lights_on_switch_bounce
    - service: homeassistant.turn_on
      entity_id: group.garage_lights

The switch bounce timer was implemented because I noticed at times (when the external service controlling the switches was busy) the lights would fail to turn on. The timeout on updating the switch status is 10 seconds, so the bounce timer is set to 12 seconds and implemented like this:

- id: garage_lights-on-bounce-timer-finish
  alias: "Check for garage lights on switch bounce"
  initial_state: true
  trigger:
    platform: event
    event_type: timer.finished
    event_data:
      entity_id: timer.garage_lights_on_switch_bounce
  condition:
    condition: state
    entity_id: group.garage_lights
    state: 'off'
  action:
    - service: timer.start
      entity_id: timer.garage_lights_on_switch_bounce
    - service: homeassistant.turn_on
      entity_id: group.garage_lights

So, if the lights are off when the bounce timer finished, the timer is started again and the lights turned on. This all works perfectly.

So, when the garage lights are turned on a 5 min timer is started to turn them off.

- id: garage-lights-on
  alias: "Start timer when the garage lights are turned on"
  initial_state: true
  trigger:
    platform: state
    entity_id: group.garage_lights
    to: 'on'
  condition:
    condition: state
    entity_id: timer.garage_lights_timer
    state: 'idle'
  action:
    service: timer.start
    entity_id: timer.garage_lights_timer

And when this timer finishes…

- id: garage-lights-on-timer-finish
  alias: "Garage light timer finished"
  initial_state: true
  trigger:
    platform: event
    event_type: timer.finished
    event_data:
      entity_id: timer.garage_lights_timer
  condition:
    condition: state
    entity_id: group.garage_lights
    state: 'on'
  action:
    - service: timer.start
      entity_id: timer.garage_lights_off_switch_bounce
    - service: homeassistant.turn_off
      entity_id: group.garage_lights

and the corresponding off bounce timer:

- id: garage_lights-off-bounce-timer-finish
  alias: "Check for garage lights off switch bounce"
  initial_state: true
  trigger:
    platform: event
    event_type: timer.finished
    event_data:
      entity_id: timer.garage_lights_off_switch_bounce
  condition:
    condition: state
    entity_id: group.garage_lights
    state: 'on'
  action:
    - service: timer.start
      entity_id: timer.garage_lights_off_switch_bounce
    - service: homeassistant.turn_off
      entity_id: group.garage_lights

Here is where the problem lies…,

  • Lights are turned on, either manually or via automation, no problem
  • 5 min Timer starts
  • 5 min timer finishes
  • Only the first light in the group is turned off, however according to HA all three lights are off, and so is the group
  • So, at this point 2 lights in the garage are still on, but HA says they are all off.
  • After 1 minute the status of two of the garage lights changes back to on (they have been on the whole time)
  • So, the 5 minute time restarts
  • 5 minute timer finishes, switches off the group. Again exactly the same thing happens. The state of all three lights and the group is set to off, however the last two lights in the group remain on.
  • This sequence then repeats forever until the lights are turned off manually either in the HA using the Lovelace interface, eWeLink app or physically using the actual switch (shocker…)

Suggestions ?

Posts: 2

Participants: 1

Read full topic

Enphase Envoy JSON reading issue

$
0
0

@Oboema wrote:

I’ve added my Enphase Envoy solar system to my HA installation, but it seems the readings are not correct. My JSON file is not what HA expects I believe. Today’s power consumption is negative (-5.29), production is negative, and total production is o. If I add all inverters as sensors separately then all sensors show the correct production readings.

In the JSON file under “production” there are two headers:
0: type “ïnverters” (wNow 109, whLifetime 3081204)
1: type “EIM” (wNow -5.29, whLifetime 0)

So it seems HA is reading the wrong production field. Anybody else having these issues? Or any ideas as to what I’m doing wrong? Any help is much appreciated! JSON attached below.

{"production":[{"type":"inverters","activeCount":12,"readingTime":1572881147,"wNow":109,"whLifetime":3081204},{"type":"eim","activeCount":0,"measurementType":"production","readingTime":1572881198,"wNow":-5.29,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.285,"rmsVoltage":242.249,"reactPwr":0.162,"apprntPwr":36.847,"pwrFactor":-0.19,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0}],"consumption":[{"type":"eim","activeCount":0,"measurementType":"total-consumption","readingTime":1572881198,"wNow":-16.119,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.067,"rmsVoltage":242.651,"reactPwr":-0.162,"apprntPwr":-16.243,"pwrFactor":-1.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0},{"type":"eim","activeCount":0,"measurementType":"net-consumption","readingTime":1572881198,"wNow":-10.829,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.352,"rmsVoltage":243.052,"reactPwr":0.0,"apprntPwr":45.295,"pwrFactor":-0.35,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}

Posts: 1

Participants: 1

Read full topic

PV Output templates not longer working?

$
0
0

@EddyBin wrote:

Have been using te pvoutput platform for quite some time in hassian. I change a month ago to hassio and the pvoutput platform worked perfect. And it still does because in the state overview I still see sensor.pvoutput with all the values. But suddenly all my template sensor do not work anymore. The only change I made is adding a custom-card for a wind compass in my www directory.

What went wrong ??

- platform: pvoutput
  system_id: xxxx
  api_key: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
  scan_interval: 180

- platform: template
  sensors:
    power_generation:
      value_template: '{% if is_state_attr("sensor.pvoutput", "power_generation", "NaN") %}0{% else %}{{ states.sensor.pvoutput.attributes.power_generation }}{% endif %}'
      friendly_name: 'Generating'
      unit_of_measurement: 'Watt'
      icon_template: >-
          {% if states('sensor.power_generation')|float < 50 %}
            mdi:weather-night
          {% elif states('sensor.power_generation')|float < 1000 %}
            mdi:weather-partlycloudy
          {% else %}
            mdi:weather-sunny
          {% endif %}

    energy_generation:
      value_template: '{% if is_state_attr("sensor.pvoutput", "energy_generation", "NaN") %}0{% else %}{{ "%0.2f"|format(states.sensor.pvoutput.attributes.energy_generation|float/1000) }}{% endif %}'
      friendly_name: 'Generated'
      unit_of_measurement: 'kWh'
      icon_template: >-
          {% if states('sensor.power_generation')|float < 50 %}
            mdi:weather-night
          {% elif states('sensor.energy_generation')|float < 10 %}
            mdi:weather-partlycloudy
          {% else %}
            mdi:weather-sunny
          {% endif %}
          
    tempdif2:
      value_template: '{{(states.sensor.temperature_zonnecollector.state | float | round(1)) - (states.sensor.temperature_zonneboiler.state | float) | round(1)}}'
      friendly_name: 'Temperatuurverschil'
      unit_of_measurement: 'ºC'


    tempdif7:
      value_template: '{{((states.sensor.temperature_zonnecollector.state | float ) - (states.sensor.temperature_zonneboiler.state | float)) | round(1) }}'
      friendly_name: 'Temperatuurverschil'
      unit_of_measurement: 'ºC'
      icon: mdi:thermometer

Posts: 2

Participants: 2

Read full topic

How to change ZWave usb_path setting

$
0
0

@wfscot wrote:

Hello! I’m brand new to HA, so apologies for asking what is probably a stupid question.

Anyway, I’m attempting to set up the Zooz S2 Stick on Hass.io on a Pi 3B+. When I first plugged in the device, the only tty device I saw was /dev/ttyAMA0, so I used this when setting up the ZWave integration.

Looking at the logs, I saw that ZWave was failing to communicate properly with the controller, leading me to suspect that device wasn’t correct. I then tried plugging/unplugging the stick multiple times, but didn’t see any new tty devices. Finally, I did a reboot, and I’m now seeing /dev/ttyACM0.

Anyway, I think my question is pretty simple. How do I change the usb_path that I specified when first setting up the ZWave integration?

More generally, where are those settings made via integrations persisted in HA? I somewhat expected to see them reflected in the configuration.yaml hierarchy, but that doesn’t appear to be the case.

Thanks!

Posts: 3

Participants: 2

Read full topic

Doc confusion with MQTT

$
0
0

@Mr.B wrote:

I didn’t find the answer when I searched but my question is after installing the MQTT mosquito It says the following.
To use the Mosquitto as a broker, go to the integration page and install the configuration with one click:

  1. Navigate in your Home Assistant frontend to Configuration -> Integrations .
  2. Use the Add button and search for MQTT
  3. Configure the Broker, Port, Username, Password and Submit.

But when I clicked MQTT it just said do you want to enable discovery and a check box. Am I doing something wrong because It doesn’t ask me to enter in a port username password etc. in that field my misunderstanding the directions or is it just supposed to be in the configuration Yaml file?

Posts: 3

Participants: 2

Read full topic

Error 500 calling /api/services/tts/google_say

$
0
0

@danf wrote:

POST http://HOSTNAME:8123/api/services/tts/google_say
Header: {“x-ha-access”: “mypwd” }
Body: {“message”: “Hello” }

Returns 500 Internal Server Error / Server got itself in trouble

But I can make an attached Google home device say a phrase by clicking it in the UI and using the “text to speak” function:
image

Am I missing something? Thx!

Posts: 1

Participants: 1

Read full topic


TP-link Kasa switches manual config no longer working after update to .101.2?

$
0
0

@Itsiq wrote:

Hey guys, so I have a bunch of tp-link switches and have them set up manually with reserved IP addresses in the config file since the auto-discovery is still so janky with tp-link. Ever since updating to .101.2, all my tp-link switches have become unavailable and I cannot access them through home assistant. They work fine through the Kasa app and if I re-enable autodiscovery then they show up again (but still janky-there are always one or two switches that still show unavailable). Everything had been working so great up to this point and I’ve been fiddling around trying to figure out if there is some reason I can find for the manual config to have stopped working, but no luck so far. Anybody else run into this?

Posts: 4

Participants: 4

Read full topic

How to slowly dim from color to white?

$
0
0

@flemmingss wrote:

Hi.
I have made a wake-up like setup based on this post.
It works, but it ends in a kind of medium bright whiteish-blue.
This is properbly because it use yx colors. I am not able to make it bright white myself by clicking the color-chart in GUI, bit if I click somwhere in the color temperature scaler it becomes white and a lot brighter


however, how can i fade to this mode? I use deconz

Posts: 2

Participants: 2

Read full topic

I need a "dummy sensor" that can be assigned a value from API

$
0
0

@flemmingss wrote:

Hi.

  • For a “on/off” sensor this can be done with input_boolean by calling input_boolean (toggle, turn_on, turn_off)

  • For a “date and time” sensor this can be done with input_datetime by calling calling input input_datetime.set_datetime (date, time, datetime)

But what I no need is to set a sensor value (like temperature, cpu usage, drive space ect).
I found input_numbrer, but it looks like this is more a way to change value from GUI, and I can’t see that it is callable (may be because I have non?)

I also found Template Sensor, but for what I see that only support “sensors which get their values from other entities”, and that is not the case here.

Can anyone lead me in the right direction?

Posts: 11

Participants: 6

Read full topic

Stucked entity on Overview

$
0
0

@szucs.krisz wrote:

I have System monitor added as a sensor, and added all the types to a group view.
The network_in and network_out sensors are a bit changed, so the numbers look clearer:

friendly_name: “Downloaded”
value_template: “{{ (states(‘sensor.network_in_enp2s0’) | float / 1024) | round(2)}}”
unit_of_measurement: ‘GiB’

But for some reason the Overview is showing these two entities both in group and on the top as badge.
Don’t have these entities in the Entity registry, and if I try to hide it in the customize.yaml, it hides both the badges and the ones in the group.
Any idea where to find these to badges?

Posts: 2

Participants: 1

Read full topic

Tablet won't sleep when dashboard showing

$
0
0

@bowesmana wrote:

I want to put a tablet on the wall with haasio, so we can use our to control stuff. The display timeout is 15 seconds, and outside the browser it sleeps as expected, but when the overview screen is showing, the tablet never sleeps.

How can I set it so it will sleep?

The tablet is in a case, so there’s no access to the power button

Posts: 6

Participants: 3

Read full topic

Viewing all 95263 articles
Browse latest View live


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