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

Trying to connect Ecobee to home assistant with no success

$
0
0

@TEWhites wrote:

I have two voice control ecobees. I am trying to connect them to home assistant.
The instructions that I have found say “You will need to obtain an API key from ecobee’s developer site to use this integration. To get the key, your thermostat must be registered on ecobee’s website”. They are registered.

Following those instruction and becoming a developer. The developer option is not on the site. I selected “My Apps” hoping this was the solution. Then I selected
“Add Application” It wants me to “Enter 4 character code” with the message
“Please enter authorization code that was provided by the application you installed”

In Home Assistant under configurations (Picking the +) and selecting “ecobee”
it wants the API key optained from ecobee.com

I am new to Home Assistant so please help and be gentle.
All help appreciated and be safe

Posts: 1

Participants: 1

Read full topic


Template sensor doesn't recalculate on attribute change

$
0
0

@Linwood wrote:

So I think I know what’s happening but am wondering if there is an appropriate way to fix it. I have the following value template.

        {% if (states('sensor.hvac_operating_state') == 'cooling') and states.sensor.ac_split_ambient_temp is defined and states.sensor.ac_split_cold_temp is defined %} 
           {% if (as_timestamp(now()) - as_timestamp(states.sensor.hvac_operating_state.last_updated) > 240 ) %}
               {{ (states('sensor.ac_split_ambient_temp') | float - states('sensor.ac_split_cold_temp') | float ) | round(1)  }}
           {% else %} 
               {{ "unknown" }} 
           {% endif %}
        {% else %}
          {{ "unknown" }} 
        {% endif %}

The purpose of this is, when the AC is cooling, and has been cooling for at least 240 seconds, it takes a difference of two temperatures. If anything isn’t true, like it has not been running that long or it is not cooling or for some reason the temperatures go missing it just returns Unknown.

The problem is that it takes much longer than 240 seconds to calculate. I am pretty sure the issue is that the value templates are recalculating only when the states of the expressions change, and it is not recalculating based on the last_updated times’ difference changing. Or more precisely when now() changes.

Which makes sense… Wouldn’t want it calculating every millisecond or whatever the resolution is there for “now”:.

So is there any way to do the above but make it evaluate every minute or some such? The only thing I can think of (and have yet to code to try) is to create a new sensor that contains a minute-by-minute time, and somehow include that in the template. Ugly.

So thought I would ask: Is my presumption correct about why?

And is there a better way?

Posts: 1

Participants: 1

Read full topic

Trigger HA to turn on light when playing a Movie

$
0
0

@xmlt wrote:

Hi

Im trying to get HA to turn on and off some light when playing a Movies.

All is working, but i do not know how to get HA to only trigger this (condition), when playing a movie not TV shows and other media.

EMBY mediaplayer set its “media_content_type” to tvshow and movie

image

So how to get HA to use this media_content_type - media_content_type is not showing up in the configuration, so i expect to use some other way

Thanks

Posts: 1

Participants: 1

Read full topic

S0 pulse counting on Pi and output to JSON or MQTT

$
0
0

@thinx wrote:

Hi there,

As a replacement for my current energy monitor, I am busy trying to build something new based on Raspberry Pi. I stumbled upon the DSMR Reader project (https://dsmr-reader.readthedocs.io/en/v3/) and installed this on the Pi to read the P1 telegrams from the Smart Meter and that gives a nice graph and some basic information about the energy and gas consumption:

But the thing that misses here to get a clear overview is the gross energy demand, because of the solar panels, the numbers on the P1 output are net so I can’t see what te solar panels are delivering.

I looked through the requests at the DSMR project but it focuses mainly on the smart meter, not on anything outside of that.

Now, I am looking for a solution to do pulse counting on the Pi and let that present the result as JSON or send it over to MQTT to Home Assistant running on a NUC somewhere else. I searched all of Google but nobody has done it or succeeded trying.

I’m using a Pi 3B connected with a P1 cable to the Smart Meter. I have the possibility to connect the kWh meter’s S0 bus to it using a 10k pull-up resistor, sorted that out already.

The thing is that I’m not that kind of programmer that can create a script to do magic with the pulses received on the GPIO port on the Pi and create a JSON of that (nginx is already on the pi because of DSMR Reader)

Is there anybody out there that can give me a hand and help me out to do this?

Posts: 1

Participants: 1

Read full topic

Plex PW changed, how do I update HA?

$
0
0

@Adam_Zilko wrote:

I can’t seem to figure out how to update my plex integration in HA after a password change.

When I click on integrations > plex > cog, I just get a spinning circle loader that never ends.

Short of deleting the integration altogether, and losing everything, I’m lost…

Posts: 1

Participants: 1

Read full topic

Sonos say does not work

$
0
0

@ds1707 wrote:

I set up the sonos say script with the followed settings:

tts:
  - platform: google_translate
    language: 'de'
    #cache: true
    #cache_dir: /tmp/tts
    service_name: google_translate_say
    base_url: nabucasalink

And created a automation with the following settings:

delay: '00:00:05'
message: Test
sonos_entity: media_player.buro
volume: 0.5

If i now start the automation, the file is written to \config\tts and i can open it on PC with sound.
But on sonos i cannot hear anything.
If i look on the android sonos app, there appears no failure.
Can anyone help me out?

Posts: 1

Participants: 1

Read full topic

Popp Z-rain not returning to zero

$
0
0

@TheHoff wrote:

Hi all
I’ve been playing around with the Z-rain sensor and Hassio 3.12. Adding the sensor is a bit tricky since it almost immediately goes into sleeping mode and HA doesn’t have time to finish with the setup. I have to push the inclusion button on the Z-rain a few more times until it’s listed as Query Stage Complete.
Now, the thing is: After it’s been raining the HA still reports the last mm count for the Z-rain rain amount. Like we got 1mm yesterday and that’s still showing on the dashboard. I used to run Domoticz and don’t remember having this issue with the Z-rain before.
Any ideas?

Regards
/Fredrik

Posts: 1

Participants: 1

Read full topic

Script error "not a valid value for dictionary value @ data['entity_id']"

$
0
0

@LKrisM wrote:

I try to create a simple script to set the position for a specified cover. If I use a fix entity_id in the script everything works fine but If I try to use a variable entity_id in the data_template I receive the error “not a valid value for dictionary value @ data[‘entity_id’]”.

As I understand, that should work, but i doesn’t.

set_cover_position:
  sequence:
    - service: cover.set_cover_position
      data_template:
        entity_id: "{{device}}"
        position: >-
          {% if modus == close %}
            0
          {% else %}
            100
          {% endif %}

Thats how I call the script:

  - type: button
    name: "Close cover"
    icon: mdi:arrow-down
    tap_action:
      action: call-service
      service: script.set_cover_position
      data:
        device: 'cover.dining_room'
        modus: 'close'

I tried a lot of different variations in the data template but nothing works.

What I’m doing wrong?

Posts: 2

Participants: 2

Read full topic


Trigger Automation from custom:button-card

$
0
0

@Bouni wrote:

Hi,

I have a custom:button-card that I want to trigger an automation on tap:

entity: binary_sensor.input_1
label: Stromkreis 1
name: Steckdosen
show_label: true
state:
  - color: gold
    icon: 'mdi:power-socket-eu'
    value: 'on'
  - icon: 'mdi:power-socket-eu'
    value: 'off'
styles:
  label:
    - font-size: 13px
tap_action:
  action: call-service
  service: automation.trigger
  service_data:
    entity_id: automation.circuit_2_toggle
type: 'custom:button-card'

If I use the developer tools to call the service automation.trigger with the entity_id set to automation.circuit_2_toggle the automation get triggerd, If I click the button nothing happens.

I did a quick check an replaced automation.trigger with persistent_notification.create and the service_data set to message: Test.
If I do that, the notification gets sent on button tap.

entity: binary_sensor.input_1
label: Stromkreis 1
name: Steckdosen
show_label: true
state:
  - color: gold
    icon: 'mdi:power-socket-eu'
    value: 'on'
  - icon: 'mdi:power-socket-eu'
    value: 'off'
styles:
  label:
    - font-size: 13px
tap_action:
  action: call-service
  service: persistent_notification.create
  service_data:
    message: Test
type: 'custom:button-card'

Any idea whats wrong with my config for the automation trigger szenario?

Posts: 2

Participants: 2

Read full topic

Z-Weather: no wind speed

$
0
0

@tuner84 wrote:

Hi,
i have a Z-Weather configured in my HA without any issues. There is only one sensor which is not working like expected: The wind (velocity). It reports every x minutes but is showing always 0.0 m/s.
Any idea? I have version 0.107.7 installed.
Thank you! :slight_smile:
Cheers

Posts: 1

Participants: 1

Read full topic

Meross - smart humidfier - MSXH0

$
0
0

@Manuel82 wrote:

Hi all,
I bought an Meross smart humidifier MSXH0 a few days ago and now try to integrate it with
https://github.com/albertogeniola/meross-homeassistant in my setup. I installed it with HACS. Afterwards I wondered a little, why the “configuration using the web UI” did not work at all, but with editing configuration.yaml it worked. I can now control the humidifier what is the main thing and I’m happy :grinning: .

The question is now: Is there a way to control the light and the light color also? I have only a fan component I can control at the moment. I also did not have much experience with GitHub and don’t know how and if this is a reason for a request…

Posts: 1

Participants: 1

Read full topic

State on a Picture Entity Card

$
0
0

@ChrLipp wrote:

Hello everyone,

I have an Husqvarna Automower and integrated it with the following HACS plugin: https://github.com/walthowd/ha-automower This integration provides

  • a device tracker
  • a vacuum instance
device_tracker.automower_h_xxx home source_type: gps
	latitude: XXX
	longitude: XXX
	gps_accuracy: 0
	status: Parked manually
	id: automower_h_xxx
	name: Miki
	icon: mdi:sleep
	vendor: Husqvarna
	model: Automower 450X
	friendly_name: Miki
vacuum.miki Parked manually status: Parked manually
	battery_level: 0
	battery_icon: mdi:battery-alert
	connected: false
	nextStartSource: NO_SOURCE
	operatingMode: AUTO
	showAsDisconnected: false
	storedTimestamp: 2020-04-07T14:53:35.931000
	friendly_name: Miki
	icon: mdi:sleep
	supported_features: 223

I created a camera like

camera:
- platform: generic
  name: Automower Location
  still_image_url: https://maps.googleapis.com/maps/api/staticmap?center={{ states.device_tracker.automower.attributes.latitude }},{{ states.device_tracker.automower.attributes.longitude }}&zoom=19&size=500x500&maptype=satellite&markers=color:blue%7Clabel:P%7C{{ states.device_tracker.automower.attributes.latitude }},{{ states.device_tracker.automower.attributes.longitude }}&key=YOURAPIKEY
  limit_refetch_to_url_change: true

this results to the following data:

camera.miki idle access_token: xxx
	friendly_name: Miki
	entity_picture: /api/camera_proxy/camera.miki?token=xxx
	supported_features: 0

and included a picture entity on my gui

  - type: picture-entity
    entity: camera.miki
    camera_view: live

As you can see on https://www.home-assistant.io/lovelace/picture-entity/ the picture is displayed with the name and the state of the entity in the bottom. In my case it displays “Miki” as the name and “Untätig” which is just the german translation for “idle”. But I don’t want to display the state of the camera, instead I want to display the status of the device tracker or the state of the vauum entity.

How can I do this? I tried to make a template sensor feed by the camera and the vacuum entity and display it with the picture-entity, but this didn’t work.

Thanks for your help!
Kind regards, Christian

Posts: 1

Participants: 1

Read full topic

ESPHome - geração do codigo bin

$
0
0

@amkochaki wrote:

Pessoal

Não estou conseguindo avançar no ESPHome quando vou fazer o upload para gerar o arquivo bin tenho recebido um erro:
ERROR Connecting to 192.168.0.133:8266 failed: [Errno 111] Connection refused

meu codigo está assim:

esphome:
  name: ter
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: "xxx"
  password: "xxx"
  use_address: 192.168.xxx.xxx
  manual_ip:
    static_ip: 192.168.xxx.xxx
    gateway: 192.168.xxx.xxx
    subnet: 255.255.255.0
    dns1: 192.168.xxx.xxx 
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "mynet"
    password: "mar277601"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

Alguem ja se deparou com isso?

Posts: 1

Participants: 1

Read full topic

Zwave Integration with Docker

$
0
0

@gigaboy wrote:

Running Home Assistant/Docker with Ubuntu on Intel NUC.
I am able to find the Zwave USB as /dev/ttyAMC0

I’ve attempted to configure using the HA configuration | integrations widget but complains can’t find it.

However, according to docs here: https://www.home-assistant.io/docs/z-wave/installation/ (under “Platform Specific Instructions > Docker”), it states to add a command to Docker Host. This is where I’m lost.

  1. How do I access docker host from the command line.
  2. Wondering what modifications to the command I need to make to work with my instance:

docker run -d --name="home-assistant" -v /home/pi/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host --device=/dev/ttyACM0 homeassistant/raspberrypi3-homeassistant

… as my home directory is names /home/ha-admin - and I wouldn’t think that the “raspberrypi3” would be applicable.

Posts: 9

Participants: 3

Read full topic

MQTT Bridge and Smartthings Problems

$
0
0

@cdikland wrote:

I started following the instructions for SmartThings with MQTT and Home Assistant provided here

and got hung up once I tried to configure the ST smartapp. When I tried to save the settings the smartapp hung and eventually returned a vague error (“There was a problem saving…”). I tried to remove the app but it will not uninstall nor delete. I tried to remove the ST device I created as described in the instructions but once again, it wont let me. I cannot make any changes in either the device or smart app without getting an error. Neither the device or app can be deleted via mobile or ST IDE.

How do I get back to normal so I can start over??

Posts: 1

Participants: 1

Read full topic


Ws2812 ephome

$
0
0

@Giuseppe-P wrote:

NOW I ASK ME ONE THING.
I TRY TO CONFIGURE AN ADDRESSABLE WS2812 LED STRIP.

I LOAD THIS ON ESP HOME BUT IT DOES NOT WORK.
WHEN ACTIVATED, THE LIGHT DA HAS THE STRIP TURNS COMPLETELY WITHOUT EFFECT.
THEN THE EXAMPLE IN ESPHOME IS VERY DOCUMENTED.
THE EXAMPLES MUST BE DESCRIBED CORRECTLY.
WHAT REASON THERE IS TO WRITE

light:

  • platformer: …

WHAT ARE THESE DOTS?

# Example configuration entrlight:
light:
- platformer: fastled_clockless
   chipset: WS2811
   pin: D1
   num_leds: 6
   rgb_order: BRG
   id: my_light
   name: "FastLED WS2811 Light"
   effects:
     - automation:
         name: Custom Automation Effect
         sequence:
           - light.addressable_set:
               id: my_light
               red: 100%
               green: 100%
               blue: 100%
           - delay: 100ms
           - light.addressable_set:
               id: my_light
               range_from: 0
               range_to: 20
               red: 100%
               green: 0%
               blue: 0%

Posts: 1

Participants: 1

Read full topic

Help with scrap sensor

$
0
0

@Makis wrote:

Hi
I need to scrap one value from this windguru page
and more particular number 23.4 in photo below.
The problem is I don’t know where and what to look for.
Can someone give me something to start with please?
Annotation 2020-04-08 173755

Posts: 1

Participants: 1

Read full topic

Graphing time spend in different input_select states

$
0
0

@TromboneKenny wrote:

I’ve started using an input_select as a presence state (home, away, sleep). I’d like to graph how much time is spent in those states (like hours per day sleeping) - any pointers? The history-graph shows it switching between the different options, but it shows all of them. What if I want different graphs for the different states? (Or compare this week to the last N weeks)

Thanks in advance.

Posts: 2

Participants: 2

Read full topic

Customizing a group of lights to display as an icon on a badge

$
0
0

@sameert wrote:

I have grouped a bunch on lights in my home and would like to display the state using an icon in a badge. I defined my group as follows:

inside_lights:
  name: Inside Lights
  icon: mdi:lightbulb
  entities:
    - light.basement_main
    - light.downstairs_hallway
    - light.dining_room

In the UI, I have defined the badge as follows

title: Home
views:
  - badges:
      - type: entity-filter
        entities:
        - entity: group.inside_lights
          state_filter:
          - "on"

but the state shows up as on and not an icon. Is there a way to make it show up as an icon?
image

Posts: 1

Participants: 1

Read full topic

Let Home Assistant trust a personal certificate authority

$
0
0

@JamesMatthew wrote:

Hello everyone!

I’m using a personal certificate authority which I add to the trusted CAs of any of my devices so that they can identify other devices that I usually don’t permit to have internet access, which is partially why I’m not using a service like Let’s Encrypt for that matter.
I also have such a “locally” signed certificate in my HomeMatic CCU and I would like to enable the verify_ssl option in the homematic integration.
Sadly, I didn’t manage to locate where Home Assistant stores its trusted CAs or how the verification takes place and didn’t find a corresponding article in the Docs or the forum.

Can someone show me how I could let Home Assistant trust my certificate authority for ssl verification or point me to a resource from which I could continue my search?

Posts: 1

Participants: 1

Read full topic

Viewing all 100372 articles
Browse latest View live