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

KNX Scenes read

$
0
0

Hi,
i configured some scenes on my knx ets software and start those scenes through a gira touch button.

How can i react on a scene which is started through my gira touch button and do automations in node red, after the scene is started?

Thanks

1 post - 1 participant

Read full topic


Helper button to trigger node in node-red

$
0
0

Hello,

I’ve created a helper button in Lovelace of Home Assistant using the Helpers config UI.
I would like to know how can I use it to trigger a node in node-red if possible.
I managed to do it with Helper Toggles using Events: State node, but I have no lack with momentary buttons… Please help!

Thank you.

System Health

version core-2022.2.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.92-v8
arch aarch64
timezone Europe/Athens
Home Assistant Community Store (click for more details) AccuWeather (click for more details) Home Assistant Cloud (click for more details) Home Assistant Supervisor (click for more details) Lovelace (click for more details)

1 post - 1 participant

Read full topic

Automation Android TV Power

$
0
0

Hi Guys,

my tv is pluged in outlet which is the most of the time off. After the outlet is switched to on, i want to power on my android tv automatically after a delay of X seconds. I added the integration androidtv and configured everything. So i have a entinity called media_player.android_tv_IPADRESS.

So i have created this automations:

alias: Test
description: ''
trigger:
  - platform: state
    entity_id: switch.tv_socket_1
    to: 'on'
    from: 'off'
condition: []
action:
  - delay:
      hours: 0
      minutes: 0
      seconds: 45
      milliseconds: 0
  - service: androidtv.adb_command
    data:
      command: POWER
    target:
      entity_id: media_player.android_tv_192_168_178_64
mode: single

So the problem is now, that the power command is ON and OFF at the same time. Everytime my automation triggered and the tv is reachable the command turns off instead on.

A few weeks ago i tried the media_player.turn_on command unsuccesfull.

Is there a solution to fix this issue?

1 post - 1 participant

Read full topic

HA Core task exit with error on server restart via UI

$
0
0

Hi. Please help me, a week ago my system became unstable. I’m on HA Core 2022.2.4, Python 3.9.7 and Raspberry OS Buster on a Pi4 (armv7l).
When I restart HA server from the UI “something bad happens”, and I need to manually start it from the terminal.
I’ve launched hass in debug mode and when I restart the server from the UI here are the console messages that hass outputs:

2022-02-09 10:25:42 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved:   File "/srv/homeassistant/bin/hass", line 8, in <module>
    sys.exit(main())
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/__main__.py", line 191, in main
    exit_code = runner.run(runtime_conf)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/runner.py", line 119, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 629, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1882, in _run_once
    handle._run()
  File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 965, in _onetime_listener
    self._hass.async_run_job(listener, event)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 569, in async_run_job
    return self.async_run_hass_job(HassJob(target), *args)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 529, in async_run_hass_job
    return self.async_add_hass_job(hassjob, *args)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 445, in async_add_hass_job
    task = self.loop.run_in_executor(
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 813, in run_in_executor
    return futures.wrap_future(
  File "/usr/local/lib/python3.9/asyncio/futures.py", line 412, in wrap_future
    new_future = loop.create_future()
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 424, in create_future
    return futures.Future(loop=self)
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/.homeassistant/custom_components/localtuya/__init__.py", line 218, in _shutdown
    discovery.close()
  File "/home/homeassistant/.homeassistant/custom_components/localtuya/discovery.py", line 59, in close
    transport.close()
  File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 700, in close
    self._loop.call_soon(self._call_connection_lost, None)
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 748, in call_soon
    self._check_thread()
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 785, in _check_thread
    raise RuntimeError(
RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one
Found 2 non-daemonic threads.

I haven’t found any solution by googling. Maybe it could be an issue related to the python version I’m switched to? Said, I have installed hass in python 3.9.7 more than two months ago and the issue has happened only few days ago.
Thanks for your help!

1 post - 1 participant

Read full topic

Light motion automation

$
0
0

I copied the following automation and then changed it slightly so the lights would turn off after 1 minute if no motion detected (if motion or door opened then light would stay on until no motion or door closed). Ubfortunatly the light just stays on, I tried adding a light_off command after the “until” loop but I get a block error…any ideas on what needs changing?

- alias: auto hallway lights motion
  trigger:
    - platform: state
      entity_id: &sensors
        - binary_sensor.motion_sensor_hallway
        - binary_sensor.front_door
      to: "on"
    - platform: state
      entity_id: *sensors
      to: "off"
      for:
        seconds: 15
  condition:
    - condition: template
      value_template: "{{ state_attr('sun.sun', 'elevation') < 0 }}"
    - condition: state
      entity_id: alarm_control_panel.yale_smart_alarm
      state: "disarmed"
  action:
    repeat:
      sequence:
        - service: "light.turn_{{ trigger.to_state.state }}"
          entity_id: light.hallway_lights
      until:
        - condition: state
          entity_id: binary_sensor.motion_sensor_hallway
          state: "off"
          for: 00:00:15

2 posts - 1 participant

Read full topic

Switchs toogled on HA start-up

$
0
0

For unknown reason, some of my switches, regardless it is SONOFF or IKEA, are switch-on and switch-off sometimes switch-off or on a third time during HA start-up.

so first they toggled with no reason and second in some situation they are not even back to their initial status which is even more a problem.

This is not only cumbersome but quite scaring.
Any idea how to fix and have my switches left alone during HA reboot?

1 post - 1 participant

Read full topic

Virtual sensors (or: How to model a derived attribute)

$
0
0

Hello,

I am heaving the same use case over and over again.

I derive new information from my real sensors. Let’s say from measuring the power of my washing machine I derive it’s operation_mode (is it idle, tumbling or heating).
So now my naive thought is: In addition to the measured dimensions current, voltage and power I now also have it’s “operation_mode”. Voltage, current and power are modeled as sensors that are connected to the same device “washing_machine” So “operation_mode” should be a sensor too because that way all the washing machines dimensions are accessible the same way.

I got it that this is (sadly) not how you do it in Home Assistant. But what is the most natural way to publish a derived value like my washing machines “operation mode”?

1 post - 1 participant

Read full topic

Octoprint Webhooks plugin and Home Assistant

$
0
0

I am using Octoprint with the Webhooks plugin. I’d like to send a Webhooks to Home Assistant on specific events.

I was able to get Home Assistant to receive the Webhooks, but I’m getting an error when it parses them.

Error processing webhook WEBHOOKID

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 121, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/config/custom_components/nodered/websocket.py", line 157, in handle_webhook
    body = await request.text()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_request.py", line 658, in text
    return bytes_body.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 3237: invalid start byte

I have tried sending the same Webhooks with Insomnia and that works as expected. I’m not able to figure out why Home Assistant doesn’t like the webhook from the plugin.

Thanks!

1 post - 1 participant

Read full topic


Energy configuration option missing in config menu

$
0
0

Hi all,

Bit of a weird thing: when I dive into the configuration menu (not the file) I cannot find the “energy” option anymore. It seems to have disappeared. The energy dashboard is available however, I set it up a month ago. Does anyone know what’s wrong? I have tried to rename the energy file to energy
.old, but that only resets the dashboard and does not bring back the configuration menu option.

Some extra info:
|Version |core-2022.2.5|
|Installation Type |Home Assistant OS|
|Host Operating System |Home Assistant OS 7.3|
|Update Channel |stable|
|Supervisor Version |supervisor-2022.01.1|

1 post - 1 participant

Read full topic

Badges colour icon from entity status

$
0
0

Hi,

I created a few badges.
Now I would like the badges to change the color of the icon when the sensor changes status.

Example:
Garage is open

  • card element icon changes and turns to yellow
  • bagde icon changes, but not colour
    LEDs:
  • card element icon shows the color of the current LED
  • badge icon is just status “on/off” no icon - no color

How can I change your badges informations…?
Do I have to edit the badges directly in the dashboard raw editor?
Or is that an entity configuration?

Dashboard raw editor

    badges:
      - entity: binary_sensor.garage
      - entity: light.bath

entity garage yaml

device_class: garage_door
friendly_name: Garage

entity led yaml

effect_list:
  - Music
supported_color_modes:
  - hs
friendly_name: Bath
supported_features: 21

badges
entity

1 post - 1 participant

Read full topic

How to import a script that is used in a blueprint

$
0
0

Heya all,

I found this really neat blueprint for Fibaro smoke sensors here https://community.home-assistant.io/t/fibaro-smoke-sensor-notification/310909 and it makes use of a script for some actions https://gitlab.com/irgusite/ha-config/-/blob/master/script/notification_script.yaml

I managed to import the blueprint just fine, but I can’t figure out how to import the script ? I tried copy/pasting the content in the scripts.yaml file but home assistant doesn’t seem to recognize it. What am I missing here or what am I doing wrong ?
There seems not to be a lot of information on importing scripts so perhaps it’s not possible ?

Thanks for all the help!

Tom

1 post - 1 participant

Read full topic

Aqara Roller Shade Driver E1

$
0
0

hello,
I got this (model RSD-M01) and connected it ZHA integration through a ConBee 2 usb adapter.
The pairing worked smoothly.

However the device’s controls are not working.
The Open cover button (UP) is greyed

εικόνα

I tried to see if it works via the Manage Clusters and it does.

Using the cluster WindowCovering and the cluster command up_open (id: 0x0000) I can open the shades!!!

I tried to do the same with services under /config/services but I get unknown error.

service: zha.issue_zigbee_cluster_command
data:
  ieee: "54:ef:44:10:00:32:9d:ad"
  endpoint_id: 1
  cluster_id: 0x0102
  cluster_type: in
  command: 0x0000
  command_type: client

Has anyone managed to make it work this way?
Please help

1 post - 1 participant

Read full topic

Apexchart - in_chart: false removes all graphs

$
0
0

Hi,

As the chart enclosed shows, the blue line shows daily costs. The problem is that it messes up my view of kW per day columns. I tried;
show:
hidden_by_default: true
but this only makes the line invisible. It still affects the view.
So I tried to use the
show:
in_chart: false
but this removes all graphs.
Does anyone know how to remove the blue line so that it does not mess up the view, but still shows the value in the top (blue text)
ddd

Code can be seen here.

1 post - 1 participant

Read full topic

General light scene for lights

$
0
0

Hi,
is it possible to set up general scenes for lights including their settings for e.g. brightness and color and to apply this scene to several individual lights.

The idea is to generate one scene for lets say sleep mode with color and brightness settings and then to call the scene by include the entity_id on which light the scene shall be applied. That would avoid to create for every light its own scene with always the same setting.

Thank you in advance.
Chris

1 post - 1 participant

Read full topic

Best way to connect SMA SB 4000TL-20 to HA

$
0
0

Hello everyone,
I just moved from OpenHAB to HA on a Raspberry Pi, integrated a small Z-wave network with thermostats and plugs together with mobile access and I am quite pleased about convenience of progress.
Next step is to connect at least one of my inverters (SMA SB 3800 & SB 4000TL-20) to HA.
The latter one offers bluetooth interface and the possibility to add a RS485 data module.
Attaching of SWDM-10 to get a speedwire connection supposed to be not compatible!?!
After having read many posts, I see the following options:

  1. connect it via Bluetooth e.g. using SBFspot (is there no direct integration of bluetooth in HA possible?)
  2. buying the RS485 data module and attach it via a two wire cable to a RS485ToUSB-converter plugged in the Raspberry Pi. Still there supposed to be two options for configuration:
    2a) Modbus integration
    2b) SMA Solar integration, or does it work just with US inverters?
  3. Measuring AC currents with an Energy Meter of both inverters in the fuse box

Currently I tend towards option 2 since wiring to my Raspberry Pi is not a big deal.
Any recommendations, hints or other possibilities are welcome!
Eberhard

1 post - 1 participant

Read full topic


Zooz USB Z-Wave Plus S2 Stick ZST10 Functionality

$
0
0

I purchased a Zooz USB Z-Wave Plus S2 Stick ZST10 from Amazon last year. I set it up on my pi using the old ZWave Addon without much issue. I later migrated to Zwave JS. According to my Amazon order, I purchased a 700 series with Z-Wave Plus. However, when i bring up the device I get the following:

Firmware: 2.3

Z-Wave Info

Device ID: 1
Device Status: Alive
Device Ready: Yes
Highest Security: Unknown
Z-Wave Plus: No

I do not know if this is because it is not captured because it is the “hub”, or if there is something else going on. The Zwave network works, although I don’t seem to be getting the functions out of my Kwikset SmartCode 888 that others have obtained.

I do know that during the migration to JS, some of the nodes were depreciated and I had to remove them and add them to capture some of their settings.

My questions are if the device information above is correct or match others. Is the firmware up to date compared with others (zero help at ZooZ). I do not want to start over if nothing is wrong, but I will if I have to.

Thank you.

2 posts - 2 participants

Read full topic

Octopus Energy Automation for Peak Time Trial

$
0
0

Hi,

I received an email from Octopus Energy advising of a trial to meet target energy usage by reducing usage at key times, and thought this would be a good way to make use of HA automations.

However, being fairly new to all this, would like to get your thoughts.

I have key offender devices on smart plugs for energy monitoring with the ability to power on / off.

Im thinking an automation to power the devices down ahead of the ‘key times’ when we’re supposed to be using less energy. But then also thought, I’d need to check the devices weren’t already on, and ideally power the devices down x mins/hours ahead of time so they’re not mid-cycle when the ‘key times’ window opens. Let’s say the key times are between 1700 - 1900hrs.

The washing machine and dishwasher are the key offenders, and I’d likely link in the heat pump too and maybe drop the target temps / hot water demand during those times.

Before I start to build the automation. Does anyone else have any thoughts / ideas to make this really work?

Cheers

1 post - 1 participant

Read full topic

Home assistent hikvision stream for a newbie/noob

$
0
0

Hello guys,

I like a tablet on the wall with a dashboard.
So i bought a pi4 and installed home assistant, after a few hours of playing with pictogram and devices everything works so the next step i create a dash.
It is a little bit of practicing with the dash but that wil work, i only have a problem with my hikvision camera.

after a lot of youtube videos and reading a lot but i cant get my camera in the dash.

I have the rtsp link of my camera and that wil work, when i write the in the internet browser on the pc it open vlc player and it works.
But how do i integrate it in home assistant and set it on a dash.

I have no experience with command and yaml but i have the file editor, hacs, ssh installed in home assistent.

This is the configuration yaml the camera yaml is empty yet because i tried a lot and now i start blank.

Configure a default setup of Home Assistant (frontend, api, etc)

default_config:

Text to speech

tts:

  • platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
camera: !include cameras.yaml


2 posts - 2 participants

Read full topic

Script Idea.. can anyone help please?

$
0
0

Hi All,

I’m wondering if it is possible to have a script that basically has an if then function ( as far as I can see) here is what I want…

for my 3D printer I’m looking for a button that I can press to turn it on but if it is on and running then a press would check the status of the printer and the tool temp and if they are ok then it would turn it off… the way I see it is

check the status of switch.3d_printer
if off then switch.turn_on
if on then check print status
if printing then end (no action or a popup/alexa message saying cannot turn off, printer is busy)
if else then check tool temp
if tool temp > 35 then end (no action or a popup/alexa message saying cannot turn off, the tool is to hot)
if tool temp < 35 then switch.turn_off

but how do I turn that into a script?

any help greatly appretiated

Robin

1 post - 1 participant

Read full topic

Exclude Zwave device without accidentally removing another node

$
0
0

I’m running Zwave JS. I inherited a couple plug-in Jasco modules that I can’t get paired. I suspect that they weren’t excluded from the network that they were previously on. I’d like to try excluding them using “remove node” on the Zwave JS config screen, but I’m wary of accidentally removing a working node from my network. Is there a recommended way to do that?

1 post - 1 participant

Read full topic

Viewing all 105697 articles
Browse latest View live


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