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

Detect Playstation Profile

$
0
0

Hey guys,

I’m trying to work out a way to detect what profile is logged into the playstation. My kids have a habit of going over their allowed time, and rather then just setting a default automation to turn off the PS4 after a certain amount of time over their limit, I’d like to have it know who’s logged in and adjust time limits according to who is on, and what day of the week it is.

Is this possible? I’ve not been able to find a way, but I could be missing something, so thought I’d ask.

1 post - 1 participant

Read full topic


Fire alarms! Not nest

$
0
0

So my fire alarms are all expiring end of the month (6 nest ones) given they are pricy and the shambolic google-nest api ah it down I don’t want to purchase nest again!

I’ve been looking at off the shelf interlinked alarms which transmit on 868 and 915mhz.

So what is everyone else doing and recommending, I’m after a cheaper solution with local integration!

1 post - 1 participant

Read full topic

Using a Sensor through MQTT

$
0
0

Hi all,

I just installed HA (based on image on Raspberry Pi) and it looks pretty nice.

Now I have a CO2. humidity and temperature sensor which sends its data through MQTT.

So I installed the MQTT broker (Mosquitto) on my HomeAssistant and configured it correctly. Additionally I configured my sensor to send its data to the broker.

So far this works fine. I can even connect with mosquitto_sub and see the messages from my sensor dropping in:

root@zentrale:~# mosquitto_sub -h hass -t hass/sensor/schlafzimmer/luftsensor -u mqtt -P "xxxxxxx"
{"meta":{"sn":75,"ip":"192.168.22.60","name":"Unipi IAQ Sensor RW-THC","desc":"IAQ RW-THC Schlafzimmer","fw_version":"3.4","uptime":1533,"heap_size":123.184,"heap_size_min":93.184,"rst_0":12,"rst_1":12,"http_server_state":5,"http_server_counter":42,"wifi_rssi":-78.200088500976562},"temperature":24.15,"relative_humidity":43.72,"absolute_humidity":9.57,"dew_point":11.03,"CO2":463.69,"atm_pressure":1003.56,"ambient_light":20.88,"VOC_index":42.08,"VOC_equiv_CO2":529.84,"VOC_accuracy":1}

Even I did a lot of reading about MQTT autodiscovery and al lot of related stuff I am absolutely unsure how to go from here.

I would guess I have to configure it somehow in configuration.yaml. Regarding to read the json data correctly as shown here.

sensor:
    platform: mqtt
    state_topic: 'hass/sensor/schlafzimmer/luftsensor'
    name: 'temp_sz'
    unit_of_measurement: '°C'
    value_template: '{{ value_json.temperature }}'   

In the logs I see:



Logger: homeassistant.components.sensor
Source: components/mqtt/__init__.py:368
Integration: Sensor (documentation, issues)
First occurred: 09:50:55 (8 occurrences)
Last logged: 09:51:18

    Error adding entities for domain sensor with platform mqtt
    Error while setting up mqtt platform for sensor

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 587, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 697, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 588, in async_added_to_hass
    await self._subscribe_topics()
  File "/usr/src/homeassistant/homeassistant/components/mqtt/sensor.py", line 249, in _subscribe_topics
    self._sub_state = await subscription.async_subscribe_topics(
  File "/usr/src/homeassistant/homeassistant/components/mqtt/subscription.py", line 93, in async_subscribe_topics
    await requested.resubscribe_if_necessary(hass, current)
  File "/usr/src/homeassistant/homeassistant/components/mqtt/subscription.py", line 48, in resubscribe_if_necessary
    self.unsubscribe_callback = await mqtt.async_subscribe(
  File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 368, in async_subscribe
    async_remove = await hass.data[DATA_MQTT].async_subscribe(
KeyError: 'mqtt'

Anyone having a clue what is wrong here? And yes, I tried to use the documentation but it does not explain how to add such a sensor at all :frowning:

I guess I have to create some sort of mapping. But hoe?

Thanks

/KNEBB

1 post - 1 participant

Read full topic

Issues using presence detection

$
0
0

Hi,
I can’t get presence detection working by using Home Assistant Companion app. I have allowed location from app and phone settings
Screenshot_20210924-105657
Screenshot_20210924-110505
Issues is that person state do not change even if I leave home. I have linked my phone to my user
puhelin
alex

but even after that state do not change. Example I left house yesterday for 3h hours but state says “Home”
home
location

1 post - 1 participant

Read full topic

Multiline template

$
0
0

Hello,
I want to send multiple commands with the Broadlink IR
I am trying to use something like this:

galaxy_channel:
  sequence:
  - service: remote.send_command
    target:
          entity_id: remote.kitchen_remote_remote
    data:
          device: kitchen_tv_box
          command: |
           - b{{- states('input_number.galaxy')[0] | int -}}
           {% if states('input_number.galaxy') | int >=10 -%}
           - b{{ states('input_number.galaxy')[1] | int }}
           {%- endif -%}
           {% if states('input_number.galaxy') | int >=100 -%}
           - b{{ states('input_number.galaxy')[2] | int }}
           {%- endif -%}
           {% if states('input_number.galaxy') | int >=1000 -%}
           - b{{ states('input_number.galaxy')[3] | int }}
           {%- endif -%}

But I got stuck with the right formatting. Can somebody help me? Thanks in advance.

1 post - 1 participant

Read full topic

Vacuum robot garage automation question

$
0
0

Hi everyone,

is the automation right.
I want the vacuum door to open automatically when the attribute status changes to returning home.

alias: Tür Roborock Stop
description: ''
trigger:
  - platform: template
    value_template: >-
      "{{ is_state_attr('vacuum.xiaomi_vacuum_cleaner', 'status', 'Returning
      home') }}"
condition: []
action:
  - type: turn_on
    device_id: 35e3a5f3c5559f46c3f0cbc75b404253
    entity_id: switch.switch_1
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 50
      milliseconds: 0
  - type: turn_on
    device_id: 35e3a5f3c5559f46c3f0cbc75b404253
    entity_id: switch.switch_2
    domain: switch
mode: single

1 post - 1 participant

Read full topic

Discover Enocean Devices?

$
0
0

Hi there,

ok, next step with HA. I enabled the Enocean Integration.

As far as I read there is no autodiscover of the devices? I have multiple In-Wall devices where I would need to pull them out to get the IDs. Is this how it is supposed to work? There is really no other way to get these devices in? (BTW: I had the in OpenHAB by autodiscover but my OpenHAB has been replaced with HA now.)

I mean, I have the needed USB300 dongle it should at least log information when a device send something, shouldn’t it?

Thanks!

/KNEBB

1 post - 1 participant

Read full topic

Spruce Soil Moisture Sensor Gen 3 unable to join to ZHA with ConbeeII

$
0
0

Found this device on Blakadder’s ZHA compatible list

So ordered one through Amazon, it arrived today but cannot get it to join the network.

Have tried all my tricks but can’t get it to happen.

Anybody got one of these and successfully added it to ZHA?

1 post - 1 participant

Read full topic


Remote Rpi

$
0
0

Hi,
can I control a second raspberry on the network through HA?
I built a dashboard with rpi 4 4gb with raspbian and 10 inch monitor: how can I control it from home assistant (hassio)?
For example, send a restart or update command from Home Assistant to be executed on a remote rpi (dashboard on the wall)?
Thanks so much

1 post - 1 participant

Read full topic

ZB-GW03 eWeLink Ethernet Zigbee Gateway now hacked with Tasmota ZBBridge so can be used via MQTT or as a remote Zigbee adapter with Home Assistant ZHA

$
0
0

FYI, ZB-GW03 eWeLink Ethernet Zigbee Gateway is a spiritual replacement of ITead Sonoff ZBBridge.

It features an ESP32 chip and a wired Ethernet port (instead of the older ESP8266/ESP8285 and WiFi).

The good news it that it has hacked with Tasmota ZBBridge firmware (using same process as hacking Tead Sonoff ZBBridge) so can be used either with Tasmota32’s own Zigbee2Tasmota (Z2T) to MQTT implementation or as a remote Zigbee coordinator adapter with native Home Assistant ZHA integration.

Hacking information posted on blakadder’s Zigbee compatibility database here:

https://templates.blakadder.com/ewelink_ZB-GW03

If you think of it as an ITead Sonoff ZBBridge clone with ESP32 and Ethernet then you should be able to follow guide from @digiblurHow to use the Sonoff Zigbee Bridge with Home Assistant - Tasmota

Tasmota discussion here where they want feedback for unofficial build of Tasmota ZigbeeBridge on it:

https://github.com/arendst/Tasmota/discussions/12764

Disclaimer! I don’t own a ZB-GW03 myself so I have not hacked it, but I collected this information so far:

ZB-GW03 v1.0 and ZB-GW03-V1.2 is apparently sold rebranded under many names, including EACHEN and SmartWise brands:

https://ewelink.eachen.cc/product/eachen-ewelink-zigbee-bridge-pro-zbbridge-pro/

https://www.okosabbotthon.hu/smartwise-zigbee-bridge-pro

https://ewelinkcommunity.net/device-lists/zigbee/eachen-zb-gw03/

https://www.aliexpress.com/item/4000459723849.html

https://www.amazon.de/APP-Fernbedienung-Sprachsteuerung-Funktioniert-Verbindung-Smart-Produkten/dp/B094JKVLNR/

Looks like it used the exact same “SM-011 V1.0” module by CoolKit as ITead Sonoff ZBBridge uses:

https://github.com/zigpy/zigpy/discussions/586

https://www.coolkit.cn/product/sm-011/

https://github.com/CoolKit-Technologies/DevDocs/tree/master/Zigbee

https://github.com/CoolKit-Technologies/DevDocs/blob/d5ad915ef57d78e071e812863dda38aa779d8d93/Zigbee/SM-011%E5%BA%94%E7%94%A8%E6%8C%87%E5%AF%BC%E4%B9%A6.md

https://translate.google.com/translate?hl=&sl=auto&tl=en&u=https%3A%2F%2Fgithub.com%2FCoolKit-Technologies%2FDevDocs%2Fblob%2Fmaster%2FZigbee%2FSM-011%E5%BA%94%E7%94%A8%E6%8C%87%E5%AF%BC%E4%B9%A6.md

Tip:

Know that the “SM-011 V1.0” module by CoolKit is based on the great EFR32MG21 SoC by Silicon Labs (Silabs), but unfortunatly this specific “SM-011 V1.0” module by CoolKit (as well as the first Zigbee 3.0 USB Dongle by ITead which is likley also design by CoolKit engineers) are known for being very susceptible to electromagnetic interference due to lack of RF shielding, and a relatively poor antenna design that has not been properly tuned in hardware for that specific integrated PCB antenna.

Because of this, you want to make sure to keep this Zigbee gateway away from other electronic appliances, especially other devices with WiFi radios, or other sources of EMI (electromagnetic interference) such as live electrical wires, etc., as well as try to place it in an optimal location a little bit away from walls, ceilings and floors built with dense building materials.

As always try to as soon as possible to add at least a few mains-powered Zigbee devices closer to the Zigbee gateway than wireless Zigbee devices so that mains-powered Zigbee devices can act as Zigbee routers for wireless Zigbee end-devices.

1 post - 1 participant

Read full topic

Smarthinq integration question about automation

$
0
0

I am a complete noob in HA
I have smarthinq integration pulling info from my LG dryer. I see the sensors in HA but I can’t seem to be able to get this automation to trigger
Can someone please tell me what’s wrong

alias: Dry clothes notification
description: Alert when dryer finishes
trigger:

  • entity_id: binary_sensor.my_dryer_dry_completed
    platform: state
    from: ‘off’
    to: ‘on’
    condition: []
    action:
  • service: notify.alexa_media_office_echo_dot
    data:
    message: The Dryer Cycle is finished!
    data:
    type: tts
    target: media_player.living_room_alexa
    mode: single

1 post - 1 participant

Read full topic

How to setup local ZHA quirks

$
0
0

Hi Everybody, I have use HA for a while and recently decided to move from deconz to ZHA to see if that would increase stability. Stability has improved, but I have one device which does not show up correctly in ZHA.

I would really appreciate if someone could explain which files (init.py, etc) to put where locally on my RPI such that I can use a local quirk for that device.

1 post - 1 participant

Read full topic

Installing Euotronic Spirit Zigbee Thermostat on ZHA Integration (SPZB0001)

$
0
0

Hi There,

I bougth a Eurotronic Spirit Zigbee Thermostat to test some smart home ideas by integrating a heater. Problem is, that device does not show up in pairing mode.

My setup consists of a Server running Proxmox with Home Assistant OS 9.7, Supervisor Version 6.2 and a CC-2251 stick on the Zigbee Home Automation (ZHA) integration. So far I got multiple switches and lamps integrated on this way (mostly plug and play). Any Ideas how to get the thermostat installed without buying a DezCone Stick?

1 post - 1 participant

Read full topic

SNMP: cannot get an SNMP value (timeout exceeded probably)

$
0
0

There is an ASUS AC66U router.
I would like to get info about NVRAM usage.

On the router side, there is a script which generates data which can be acquired via SNMP.
The script takes ~2 sec to be executed.
The data can be acquired by snmpwalk & ManageEngine MibBrowser.

On the HA side, there is a config:

  - platform: snmp
    host: !secret ip__ac66u
    port: 161
    community: !secret snmp_community
    accept_errors: true
    default_value: 0
    version: 2c
    scan_interval: 300
    baseoid: *ref_oid_nvram
    name: ac66u_snmp_nvram
    value_template: "{{ value }}"

And I keep getting 0 value…

I think that the reason is some timeout exceeded.
Is it possible to tune smth here?

1 post - 1 participant

Read full topic

Unable to load Frigate config.yml in Docker container

$
0
0

Hi i am struggling to load Frigate Config.Yml file into Docker container. I have followed the installation details n however i receive the following error`
Error parsing config: [Errno 21] Is a directory: ‘/config/config.yml’

  • Starting nginx nginx

    …done.

Error parsing config: [Errno 21] Is a directory: ‘/config/config.yml’

  • Starting nginx nginx

    …done.

Error parsing config: [Errno 21] Is a directory: ‘/config/config.yml’

  • Starting nginx nginx

    …done.

Error parsing config: [Errno 21] Is a directory: ‘/config/config.yml’

  • Starting nginx nginx

    …done.

Error parsing config: [Errno 21] Is a directory: ‘/config/config.yml’

I understand that the container believe this is a directory. I have tried to solve the problem by looking for solution but with out success. I am running the container on Proxmox in docker and portainer. On a mini pc designated to Proxmox .

My container setting are in container are :

Host/volume Path in container
/mnt/data/frigate/config.yml /config/config.yml
/etc/localtime /etc/localtime
/mnt/data/frigate /media/frigate

Any help would be appreciated as too where i am going wrong. I know that my frigate config.yml is working as it works fine in HA.

1 post - 1 participant

Read full topic


ZHA stuck. How to restart the integration?

$
0
0

After power outage HA rebooted but the ZHA stuck with an error and there is no option to restart just this integration. All zigbee devices not working…
Z2Mqtt addon could be rebooted but this integration runs w/o this option… crazy… HA restart does not help ZHA start with the same error…

Logger: homeassistant.components.zha.core.gateway
Source: components/zha/core/gateway.py:152
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 3:16:06 PM (5 occurrences)
Last logged: 3:20:53 PM

Couldn't start ZNP = Texas Instruments Z-Stack ZNP protocol: CC253x, CC26x2, CC13x2 coordinator
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/api.py", line 395, in request
    response = await response_future
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 152, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 69, in new
    await app.startup(auto_form)
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 196, in startup
    return await self._startup(
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 209, in _startup
    await znp.connect()
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/api.py", line 119, in connect
    await self.nvram.determine_alignment()
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/nvram.py", line 35, in determine_alignment
    value = await self.osal_read(nvids.OsalNvIds.NWKKEY, item_type=t.Bytes)
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/nvram.py", line 170, in osal_read
    length = (await self.znp.request(c.SYS.OSALNVLength.Req(Id=nv_id))).ItemLen
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/api.py", line 395, in request
    response = await response_future
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 55, in __aexit__
    self._do_exit(exc_type)
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 92, in _do_exit
    raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError

1 post - 1 participant

Read full topic

Add an icon based on state in a custom-button card

$
0
0

Gents,

i am currently trying to put together a card for my garage door

I want to show 3 States

  • When my garage door is closed and locked (using my door sensor and a sensor I added on the lock)
  • When my garage door is closed and unlocked
  • When my garage door is open

I created the custom button card as follows

entity: binary_sensor.door_window_sensor_158d0001de8a5c
type: custom:button-card
tap_action: more-info
name: garage
icon: kuf:fts_garage
show_state: false
show_name: false
styles:
  custom_fields:
    notification:
      - position: absolute
      - left: 70%
      - top: 10%
      - height: 20px
      - width: 20px
      - font-size: 12px
      - line-height: 20px
      - color: |
          [[[
            if (states['binary_sensor.verrousoussol'].state == 'on')
              return "red";
            return "white";
          ]]]
      - icon: |
          [[[
            if (states['binary_sensor.verrousoussol'].state == 'on')
              return 'mdi:lock-open-alert-outline';
            return 'mdi:lock-check-outline';
          ]]]
  card:
    - width: 100px
    - height: 100px
    - background-color: transparent
    - box-shadow: none
  icon:
    - width: 100%
    - justify-self: center
  grid:
    - padding-bottom: 0px
  name:
    - position: relative
    - bottom: 1em
state:
  - value: 'off'
    icon: kuf:fts_garage_door_100
    styles:
      card:
        - filter: opacity(100%)
      icon:
        - filter: grayscale(100%)
custom_fields:
  notification: |
    [[[
      return `${states['binary_sensor.verrousoussol'].state}`
    ]]]

And I am getting this which is pretty close to what I want:

image
The garage door is closed and locked

image
The garage door is closed and unlock

image
The garage door is open (and therefore unlocked)

I would like to replace those ON and OFF notifications by some Locks icons (as you can guess from my YAML)

What I am doing wrong here?

Thanks!

1 post - 1 participant

Read full topic

How to create a boolean sensor and then set it's attributes based on other entities states? Create an "any window open" sensor that contains open windows as attributes

$
0
0

I’m attempting to create a single template binary_sensor that is true when any of my windows are open, and false when all of my windows are closed, AND that contains a list of all open windows as a list in it’s Attributes.

Right now, I have a binary_sensor for each individual window. I have all of those binary_sensors in an entity_filter card that only displays them when a window is open. This shows me at a glance that I have window(s) open. The problem is that when I have all my windows open, I have 10 windows icons showing up, cluttering my screen. I’m looking to condense that down to a single entity that is true when any window is open and contains a list of all open windows, and false when all windows are closed. This will help me de-clutter my screen, and inform me which window is still open.

The Sonarr sensor is a great example of what I’m looking to do. The main value is the number of upcoming TV episodes, and then the ‘attribute’ field contains the list of upcoming TV episodes.

Here’s an image of my entity_filter card that has too many ‘open window’ icons, and then an image of the Sonarr sensor that shows the list of upcoming TV shows in the ‘attribute’ accordion.

So, in generic problem terms: I’m looking for how to set attribute fields of a boolean_sensor. Is that even possible?

Thanks!

1 post - 1 participant

Read full topic

[SOLVED] Xiaomi chuangmi.plug.m1 - cannot integrate

$
0
0

Weirdest thing - I have the classic Xiaomi Chuangmi M1 Wifi plug. I have had it integrated before.

Now, for the life of me, I can’t do it. I can add it in the Xiaomi app BUT it doesn’t show up in the app after successful setup. I do see its IP and token in the Get Mi Home token extractor app, tried to add it manually into config.yaml but to no avail (“The xiaomi_miio platform for the switch integration does not support platform setup. Please remove it from your config”). I tried the (not recommended) manual config in the Miio integration but again - the actual switch is inactive, greyed out.

Xiaomi Miio integration does not auto-detect it. Any tips?

EDIT: it did appear after some time with the manual install (via Integrations, the “not recommended” option)

1 post - 1 participant

Read full topic

Password incorrect

$
0
0

What the heck I can;t login to my HA. I’d like to enter it when I got my HA settings open and messing around but I wanted to enter it through IP and then they ask me for a login and password and even saved them on a paper and they are incorrect lol.
latest one firmware
got HAOS installed/ do I have to do sth in HA CLI?
BTW I was logged and changed the existing password to new and even then It was incorrect LOL (so the first password was correct but I couldn’t log in)!!! So then I log out and enter the login and password again and now I can;'t login to HA at all!

3 posts - 2 participants

Read full topic

Viewing all 109599 articles
Browse latest View live


Latest Images

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