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

Kodi power icon seems to trigger ON even though it's ON

$
0
0

I can’t turn Kodi/HTPC off after migrating my Kodi configuration from YAML to UI.
This is my old config:

- platform: kodi
  host: 192.168.0.36
  username: !secret kodi_username
  password: !secret kodi_password
  turn_on_action:
    service: wake_on_lan.send_magic_packet
    data:
      mac: 00:01:2e:1f:c4:50
  turn_off_action:
    service: kodi.call_method
    data:
      entity_id: media_player.kodi
      method: System.Shutdown
  enable_websocket: 'false'
  timeout: 7

After following the documentation for creating on/off automations, these are the resulting automations:

- id: '1604398438605'
  alias: Kodi ON
  description: WOL for Kodi/ht
  trigger:
  - platform: device
    device_id: 9ef48db7cfca59f4e368ab64673b7ba8
    domain: kodi
    entity_id: media_player.kodi
    type: turn_on
  condition: []
  action:
  - service: wake_on_lan.send_magic_packet
    data:
      mac: 00:01:2e:1f:c4:50
  mode: single
- id: '1604398977874'
  alias: Kodi OFF
  description: ''
  trigger:
  - platform: device
    device_id: 9ef48db7cfca59f4e368ab64673b7ba8
    domain: kodi
    entity_id: media_player.kodi
    type: turn_off
  condition: []
  action:
  - service: kodi.call_method
    data:
      method: System.Shutdown
      entity_id: media_player.kodi
  mode: single

Using the entity cards power button to turn it on works - the card says “idle” after my HTPC has started. At this point I can’t turn it off by clicking the power button on the card, as this seems to still trigger the turn-on-automation (I’m seeing the “triggered” time update on that automation but not the turn-off-one).

Any advice on this?

1 post - 1 participant

Read full topic


Raspberry Pi and PIR sensor

$
0
0

Hi all

I changed the file configuration.yaml according to the pattern from: https://www.home-assistant.io/integrations/rpi_gpio/
It looks like this:

binary_sensor:
  - platform: rpi_gpio
    ports:
      22: PIR hall

Why does it show high status in the dashboard if I haven’t connected anything? I measured the voltage on pin 22 and it shows 3.3V

Przechwytywanie

How to connect the PIR sensor HC-SR501 there, which will be activated, has 3.3V

I’m doing something wrong. Please help.

1 post - 1 participant

Read full topic

Mounting NFS share

$
0
0

Im trying to mount an NFS share in Homeassistant. Im running it from a virtual machine / vmdk. The mount location is a nfs.

Ive tried through both ssh and shell_command.

This is my shell command:

shell_command:
  mount_ai: mount 192.168.2.244:/mnt/ai /config/www/img 

The folder exists. It eorks from other systems.
Home assistant gives error 255 in the log, or permission denied from SSH.

What am i overlooking?

1 post - 1 participant

Read full topic

Template cover for garage door

$
0
0

Hello
I have just looked into Template cover for my garage door. I have a magnet sensor that has the states “on” and “off”, on being an open door. I have made a sensor of it that returns “Åpen” and “Lukket”.

When I hen try to use that sensor in my template cover nothing happens. The state of the cover is “open” whatever I do.

This is in my configuration.yaml

cover:
  - platform: template
    covers:
      garage_door:
        device_class: garage
        friendly_name: "Garage Door"
        position_template: "{{ states('sensor.garage_door') }}"
        open_cover:
          service: switch.turn_on
          data:
            entity_id: switch.garasjeport
        close_cover:
          service: switch.turn_on
          data:
            entity_id: switch.garasjeport
        stop_cover:
          service: switch.turn_on
          data:
            entity_id: switch.garasjeport
        icon_template: >-
          {% if states('sensor.garage_door', 'Åpen') %}
            mdi:garage-open
          {% else %}
            mdi:garage
          {% endif %}

2 posts - 2 participants

Read full topic

AEON Labs DSA02203 Z-Stick S2

$
0
0

Hi,
I have the AEON Labs DSA02203 Z-Stick S2 connected to my proxmox setup. It is seen in HA but I can’t add z-wave device. None of them are being added. Should this stick work or should I buy the white one Z-Stick Gen5+ ?

If it should work, what do I need to do to get it working?

Thanks in advance!

1 post - 1 participant

Read full topic

RfxCom with Kaku acd200

$
0
0

I’ve a question about the RFXCOM integration.
I’ve a KlikAanKlikUit ACD200 (dimmer) but it’s only showing in Home Assistant with the switch. I can make it like a “light” bit still no dimming there. I see that it’s possible with changing a bit, but I don’t see the referenced event codes mentioned in the documenatation.
Edit: The device Id which was set before the last Home Assistant update in the configuration.yaml was: “0710010044030050”

1 post - 1 participant

Read full topic

Notifcation on different email addresses using only one script & notify

$
0
0

Hello

I have for 20 sensors, 20 automations. Every automation calls a script witch are all the same beside of the notification, the script call the service notication, and the notification send the mail.
how can i reuse the code, instead of copy&paste it for every sensor?

it would be cool to have only 1 script and 1 notification for all of the automations, but every automation need to send to a different mailadress…

Thanks for any help!

my config files so far:
automation.yaml

id: '1603195752548'
  alias: Sensor 01
  description: ''
  trigger:
  - platform: numeric_state
    entity_id: sensor.netatmo_01_co2
    above: '900'
  condition: []
  action:
  - service: script.send_mail_01
    data: {}
  mode: single

scripts.yaml

send_mail_01:
  alias: Send Mail 01
  sequence:
    - service: notify.sendmail01
      data:
        title: Test
        message: Test
        data:
            html: "<html> <body>Hello</body> </html>


            "

notify.yaml

- name: sendmail01
  platform: smtp
  server: !secret mail_server
  port: !secret mail_port
  sender: mail@abc.abc
  encryption: starttls
  username: !secret mail_user
  password: !secret mail_password
  recipient:
    - recp01@abc.abc
  sender_name: Home Assistant

1 post - 1 participant

Read full topic

Dasboard Button with symbol changing upon feedback

$
0
0

Hi!
I’m rather new on HA and have searched for a solution in HA Dashboard Lovelace together with Node Red that do the following:

Momentary output (Pulse output)
Feedback (Icon/Symbol change, or at least the switch symbol) from input

For example there will be a button for locking and arming the house. But this will also be done from a RFID reader at the door, and some other devices.
I have this running in Node Red, that is controlling 8 Siemens PLC’s in my house, but now when i’m moved the Dashboard from Node Red’s dashboard to HA Dashboard i can’t find a suitable solution. If anyone interested, i can attach the Node Red code.

Any Ideas?
Thanks // Petter in Sweden

1 post - 1 participant

Read full topic


Grafana Alerting - SMTP Configuration

$
0
0

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

1 post - 1 participant

Read full topic

Grafana SMTP Configuration

$
0
0

Hello, how do I configure the Grafana SMTP for email alerting?

I tried this way, but when testing in Grafana UI, it says no SMTP is configured.

Here is the configuration:

plugins: []
env_vars: []
ssl: false
certfile: fullchain.pem
keyfile: privkey.pem
smtp:
  enable: true
  host: 'server.com:25'
  user: user@server.com
  pass: Pass
  from_address: user@server.com

1 post - 1 participant

Read full topic

HEOS plugin keeps logout

$
0
0

Hi guys,
I’m trying to work with the HOES integration and evert week (sometimes even more) it keeps on logging out of my user account.
The issue is that then I can’t use my favorites.
I checked that the system is doing any reboots.
Any idea?

Thanks, Itai

1 post - 1 participant

Read full topic

Struggling with templating for a "Last Changed" sensor

$
0
0

Hi all,

I’m trying to create a sensor that shows the last triggered motion sensor. I’ve managed to get the last state change using this:

                    {%- set pirs = [states.binary_sensor.back_room_motion, states.binary_sensor.downstairs_toilet_motion, states.binary_sensor.hallway_motion, states.binary_sensor.kitchen_motion, states.binary_sensor.landing_motion] %}
                    {% for pir in pirs %}
                      {% if as_timestamp(pir.last_changed) == as_timestamp(pirs | map(attribute='last_changed') | max) %}
                        {{ pir.name }}
                      {% endif %}
                    {% endfor %}

But obviously that counts every state change, rather than the last sensor to have changed to an “on” status so it also triggers when a motion sensor resets to off, which is not what I want.

I’ve tried the following:

                    {%- set pirs = [states.binary_sensor.back_room_motion, states.binary_sensor.downstairs_toilet_motion, states.binary_sensor.hallway_motion, states.binary_sensor.kitchen_motion, states.binary_sensor.landing_motion] %}
                    {% for pir in pirs %}
                      {% if is_state(pir.state, 'on') %}
                        {% if as_timestamp(pir.last_changed) == as_timestamp(pirs | map(attribute='last_changed') | max) %}
                          {{ pir.name }}
                        {% endif %}
                      {% endif %}
                    {% endfor %}

My thinking here was that it would first check if the state had turned to “on” before comparing timestamps but this doesn’t return anything at all, so i’ve obviously ballsed that one up!

Is someone kindly able to point me in the wrong direction please?

1 post - 1 participant

Read full topic

Help: showing attribute in picture element state badge?

$
0
0

Hi,
I’m curious if this is in any way possible? (The below doesn’t work…)

  - type: state-badge
    entity: climate.badkamer
  	attribute: temperature

I need it to be within Picture Elements Card along with many other things…

Thanks if anybody knows!

1 post - 1 participant

Read full topic

Issues with TP-Link switches

$
0
0

So I just re-ip’d my IOT network and set everything up with static IP’s and now for some reason the TP-Link integration will not work at all. I have it setup manually in my configuration.yaml,and it was working fine until I re-IP’d my network. I’ve removed the integration, restarted Home-Assistant and it gives the error below for some reason.

I’m running hassio 117.02 supervisor 2020.10.1.

Any ideas?

Logger: homeassistant.config_entries
Source: components/tplink/common.py:122
First occurred: 10:40:51 AM (1 occurrences)
Last logged: 10:40:51 AM

Error setting up entry TP-Link Smart Home for tplink
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 234, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File “/usr/src/homeassistant/homeassistant/components/tplink/init.py”, line 82, in async_setup_entry
static_devices = get_static_devices(config_data)
File “/usr/src/homeassistant/homeassistant/components/tplink/common.py”, line 122, in get_static_devices
for plug in SmartStrip(host).plugs.values():
File “/usr/local/lib/python3.8/site-packages/pyHS100/smartstrip.py”, line 44, in init
self.num_children = len(children)
TypeError: object of type ‘NoneType’ has no len()

1 post - 1 participant

Read full topic

Homebridge & Home assistant on same pi. Only 1 of 24 switches showing up?

$
0
0

I’ve added my homebridge via integration however it has 24 switches defined on it which all work fine both in it’s own UI and via alexa/google assistant using homebridge’s integration. Only 1 of the 24 switches shows up in home assistant. It works as it should to toggle a lamp on and off but why only 1 of the 24? They are not hidden/disabled (or at least I didn’t set them to that).

If you are wondering why I’m running homebridge rather than just using homekit…I’s using homebridge’s homebridge-http webhook service to send on/off commands to an android app’s api which ties in to my broadlink rm pro’s (rf/ir transmitter). Ironically I’m all android so don’t even have access to the apple home app.

Homebridge does everything just fine but it does not allow for scenes/automation.

1 post - 1 participant

Read full topic


Darksky stopped working? Config check going on a never ending loop

$
0
0

Is it just me or Darksky just stopped working?

I am aware that Darsky was acquired by Apple as noted here, although it should still be available to existing users like myself.

However now if I check the config it keeps going in a loop.

I isolated the issue by commenting everything in my config and uncommenting bit by bit while performing a config check at each step and that led to Darsky being the problem.

Darksky free trial states that 1000 calls/day (snapshot from Darsky dashboard below) are allowed and I am definitely below that threshold so that can’t be the issue.

Is anybody else experiencing this issue?
What weather platform is reliable in your experience?

1 post - 1 participant

Read full topic

InfluxDB, Grafana, Tor Access

$
0
0

Hi, I’m using Tor Add-on to remotely acces my HA and everything works fine except access to influxDB. I can see my data in Grafana but can’t see any in Influx interface. When I open Influx it seems to working but never get to the point when I can see dashboard. I can access config panel only and set some changes but it is not possible to create queries.
Is there anybody who can explain this?

1 post - 1 participant

Read full topic

Curtain slider opposite

$
0
0

hello guys
I have made a DIY curtain controller relay board for my dooya curtains. I am using esphome as firmware and it works great but the slider in the UI is opposite how can I change it?
YAML config is fine and also when I say google assistant to open curtains its perfect I mean its not opposite, so the problem is the only slider.
how do I change it?

1 post - 1 participant

Read full topic

Translation error intl.pluralrules in latest update

Simple device tracking using the companion app on android - what have I missed

$
0
0

Hassio on RP3. Android Companion App. Standard home Wifi. Local install only. No external access.

I installed the Companion app, and the GUI works flawlessly. Entities were made in HA for many sensors, also a device_tracker. I want to use this in automations and scripts, but I have never seen the state change from “home”, and automations seem to trigger even when I’m physically away even if I have conditions set.

I was hoping the simplest use of this was «when the phone is not on the same wifi as the hass server, we consider it as “not home”». It seems I’m missing something, Sensors such as battery state are visible and have content. The state of the device_tracker.phone_model does not appear in the logbook at all. When I turn off wifi on the phone, it is not reflected in the state.

Any ideas? I’m probably just missing something basic.

2 posts - 2 participants

Read full topic

Viewing all 105614 articles
Browse latest View live


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