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

Always used Node-Red thought about moving to native HA but unsure where to start

$
0
0

I thought I would give HA automations/scripts a go but really have no idea where I should do this and how to start.

I thought I would start with script but then saw in the GUI there is no conditions but in the documentation there are, this got me wondering if scripts is the right place.

I have provided a picture of a 2 simple flows I would like to migrate over to HA, a pointer on what should be a script and what should be an automation process would help a lot and if I should be looking at YAML to achieve it instead of the GUI.

From a very high level I was looking at the start of each process to be a Automation and the rest scripts (can I do split conditions in the same script?)

image

1 post - 1 participant

Read full topic


Rolling integral of power over the last hour

$
0
0

I have a sensor reporting instantaneous power usage and I’d like home assistant to report the integral of that power over the last hour on every input sample.

So at any point I can see how many kWh this device was using over the last hour.

Integration - Riemann sum integral - Home Assistant seems to be it but it’s actually increasing seemingly forever. Like it gives the total kWh used since the sensor inception. This is not what I’m aiming for.

Does the thing I’m describing exist?

1 post - 1 participant

Read full topic

Custom-Button-Card: Size Grid Area

$
0
0

Hello,
I have created a grid with a title and 2 columns and 2 rows.
I have assigned each area an exact height and width (65x65). But it is not converted. Where is my thinking error?
Here is my Code

type: custom:button-card
name: Preise E10
styles:
  grid:
    - grid-template-columns: 1fr 1fr
    - grid-template-rows: 1fr 1fr 1fr
    - grid-template-areas: ' "n n" "ijet pjet" "iaral paral"'
    - column-gap: 5px
    - row-gap: 5px
    - border: solid 1px
    - height: 135px
    - height: 135px
  card:
    - border-radius: 0%
    - width: 135px
    - height: 135px
    - padding: 1%
    - font-size: 10px
  custom_fields:
    pjet:
      - border: solid 1px
      - justify-self: center;
      - align-self: center;
      - grid-area: paral;
      - width: 65px;
      - height: 65px;
      - padding: 2px
    ijet:
      - border: solid 1px
      - justify-self: center;
      - align-self: center;
      - grid-area: ijet;
      - width: 65px;
      - height: 65px;
      - padding: 2px
    iaral:
      - border: solid 1px
      - justify-self: center;
      - align-self: center;
      - width: 65px;
      - height: 65px;
      - justify-self: center;
      - align-self: center;
      - padding: 2px
    paral:
      - border: solid 1px
      - justify-self: center;
      - align-self: center;
      - grid-area: paral;
      - width: 65px;
      - height: 65px;
      - padding: 2px
  name:
    - font-weight: bold
    - border: solid 1px
    - color: '#000'
    - font-size: 12px
    - padding: 2px
    - justify-self: middle
    - align-self: top
    - width: 65px;
    - height: 65px;
custom_fields:
  pjet: >
    [[[ return
    states['sensor.tankerkoenig_jet_wuelfrath_wilhelmstr_34_38_e10'].state; ]]]
  ijet: |
    [[[
      return ' Logo Jet' 
    ]]]
  paral: |
    [[[
      return states['sensor.tankerkoenig_aral_tankstelle_e10'].state
    ]]]
  iaral: |
    [[[
      return ' Logo ARAL' 
    ]]]

HAforum6
Thanks and kind regards,

Andreas

1 post - 1 participant

Read full topic

Help with secrets.yaml esphome

$
0
0

Just realize that I should add secrets.YAML and base on information the way to do it is adding esphome/secrets.YAML with this <<: !include ../secrets.yaml

I reboot my HA and the ESPHome Addon, on my ESPHome I already see secrets editor,
however, when I add !secret on my ESPHome device I got a red X on the first line saying it did not find secrets.YAML or error.

So I did not dare to go through worrying my device will become disabled.

Does anyone know what I did wrong?

Running HA 2021.7.4 with supervised + ESPHome AddOn. The ESPHome Directory is inside the config directory.

3 posts - 3 participants

Read full topic

Using Modbus RTU over TCP to change settings of MUST brand Split Phase Inverter

$
0
0

Where I’m stuck:
I have setup a sensor in Home Assistant that can poll a value from the inverter, however I haven’t been able to figure out how to change an inverter setting. I assume this is a register value not a coil value (not a binary value).

Project overview:
Trying to setup an inverter/charger that can charge a battery during off-peak electricity hours and utilize battery to power an air conditioner for a few hours during peak hours.

I have a Windows application and captured the data of changing the settings I need. Here are some notes from that:
Shutdown Voltage To 44
0a 10 79 1a 00 01 02 01 b8 3e 7f
31003

Absorption to 56
0a 10 79 1b 00 01 02 02 30 3f 38
31004

Max Charge Current to 55
0a 10 79 1d 00 01 02 00 37 7f fc
31005

Enable Grid Charge
0a 10 79 1f 00 01 02 00 00 3f c8
31007

Disable Grid Charge
0a 10 79 1f 00 01 02 00 01

I know that 0a is the slave address and 10 is the “function” such as “I’m trying to write a value/array”. Last two pairs are the CRC and the two pairs before that are the value I’m pushing. “440” is 44.0v as an example on the first one I captured above. I realize some of this is probably over sharing, but did want to share I have made some progress and have simply hit a wall.

I’m also green in Home assistant, not just modbus. Just as a reference point.

I have a raspberry pi connected to the modbus port of the inverter. I’m running a serial to tcp program there that appears to be working fine. I’m able to run a tcpdump and see traffic back and forth that looks like modbus.

I have home-assistant running in an ESX VM (Ubuntu server).

I think the ideal solution here is if I have items (devices?) - I don’t know the nomenclature in HA - that I can call based on other data the HA knows about. Calling for setting changes on the inverter. Most important would be enabling and disabling grid charge. And It appears I’m missing one which would be solar priority or grid priority. But if I have something to work off of I should be able to create what I need in that respect.

Thank you for any help or direction!

1 post - 1 participant

Read full topic

Issues after upgrade to core-2021.7.4 HELP!

$
0
0

I have no idea what caused this, just upgraded now I’m seeing a ton of errors also Logbook and history do not load.
The first error says this:
Invalid config
The following integrations and platforms could not be set up:

  • history
  • logbook
  • default_config
    Please check your config and logs.

Below are a few error logs:

Logger: homeassistant.components.recorder
Source: components/recorder/init.py:939
Integration: recorder (documentation, issues)
First occurred: 9:18:48 PM (10 occurrences)
Last logged: 9:24:30 PM

Error during connection setup to mysql://homeassistant:PASSWORD@core-mariadb/homeassistant?charset=utf8mb4: (MySQLdb._exceptions.OperationalError) (2005, “Unknown MySQL server host ‘PARTIALPASSWORD@core-mariadb’ (-3)”) (Background on this error at: http://sqlalche.me/e/14/e3q8) (retrying in 3 seconds)
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py”, line 3212, in _wrap_pool_connect
return fn()
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 301, in connect
return _ConnectionFairy._checkout(self)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 761, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 419, in checkout
rec = pool._do_get()
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py”, line 145, in do_get
self.dec_overflow()
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py”, line 70, in exit
compat.raise
(
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py”, line 207, in raise

raise exception
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py”, line 142, in _do_get
return self._create_connection()
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 247, in _create_connection
return _ConnectionRecord(self)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 362, in init
self.__connect()
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 605, in connect
pool.logger.debug(“Error on connect(): %s”, e)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py”, line 70, in exit
compat.raise
(
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py”, line 207, in raise

raise exception
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 599, in __connect
connection = pool._invoke_creator(self)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/create.py”, line 578, in connect
return dialect.connect(*cargs, **cparams)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py”, line 584, in connect
return self.dbapi.connect(*cargs, **cparams)
File “/usr/local/lib/python3.9/site-packages/MySQLdb/init.py”, line 130, in Connect
return Connection(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/MySQLdb/connections.py”, line 185, in init
super().init(*args, **kwargs2)
MySQLdb._exceptions.OperationalError: (2005, “Unknown MySQL server host ‘#V!ax@core-mariadb’ (-3)”)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/recorder/init.py”, line 655, in _setup_recorder
self._setup_connection()
File “/usr/src/homeassistant/homeassistant/components/recorder/init.py”, line 939, in _setup_connection
Base.metadata.create_all(self.engine)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/schema.py”, line 4744, in create_all
bind._run_ddl_visitor(
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py”, line 3078, in _run_ddl_visitor
with self.begin() as conn:
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py”, line 2994, in begin
conn = self.connect(close_with_result=close_with_result)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py”, line 3166, in connect
return self._connection_cls(self, close_with_result=close_with_result)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py”, line 96, in init
else engine.raw_connection()
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py”, line 3245, in raw_connection
return self._wrap_pool_connect(self.pool.connect, _connection)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py”, line 3215, in _wrap_pool_connect
Connection.handle_dbapi_exception_noconnection(
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py”, line 2068, in handle_dbapi_exception_noconnection
util.raise
(
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py”, line 207, in raise

raise exception
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py”, line 3212, in _wrap_pool_connect
return fn()
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 301, in connect
return _ConnectionFairy._checkout(self)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 761, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 419, in checkout
rec = pool._do_get()
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py”, line 145, in do_get
self.dec_overflow()
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py”, line 70, in exit
compat.raise
(
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py”, line 207, in raise

raise exception
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py”, line 142, in _do_get
return self._create_connection()
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 247, in _create_connection
return _ConnectionRecord(self)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 362, in init
self.__connect()
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 605, in connect
pool.logger.debug(“Error on connect(): %s”, e)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py”, line 70, in exit
compat.raise
(
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py”, line 207, in raise

raise exception
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py”, line 599, in __connect
connection = pool._invoke_creator(self)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/create.py”, line 578, in connect
return dialect.connect(*cargs, **cparams)
File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py”, line 584, in connect
return self.dbapi.connect(*cargs, **cparams)
File “/usr/local/lib/python3.9/site-packages/MySQLdb/init.py”, line 130, in Connect
return Connection(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/MySQLdb/connections.py”, line 185, in init
super().init(*args, **kwargs2)
sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) (2005, “Unknown MySQL server host ‘#V!ax@core-mariadb’ (-3)”)
(Background on this error at: http://sqlalche.me/e/14/e3q8)

21-08-01 21:24:25 ERROR (SyncWorker_3) [supervisor.docker] Can’t start hassio_audio: 500 Server Error for http+docker://localhost/v1.40/containers/f71edffdee3940609636ad6741bb2a6f79f6ad753ebd834177ba63d3d29a7c37/start: Internal Server Error (“OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:326: applying cgroup configuration for process caused: failed to write “190000” to “/sys/fs/cgroup/cpu,cpuacct/docker/f71edffdee3940609636ad6741bb2a6f79f6ad753ebd834177ba63d3d29a7c37/cpu.rt_runtime_us”: write /sys/fs/cgroup/cpu,cpuacct/docker/f71edffdee3940609636ad6741bb2a6f79f6ad753ebd834177ba63d3d29a7c37/cpu.rt_runtime_us: invalid argument: unknown”) 21-08-01 21:24:25 ERROR (MainThread) [supervisor.plugins.audio] Can’t start Audio plugin 21-08-01 21:24:25 ERROR (MainThread) [supervisor.misc.tasks] PulseAudio watchdog reanimation failed!

Log Details (ERROR)
Logger: homeassistant
Source: components/recorder/init.py:516
First occurred: 9:24:33 PM (1 occurrences)
Last logged: 9:24:33 PM
Error doing job: Exception in callback Recorder.async_connection_failed()Traceback (most recent call last): File “/usr/local/lib/python3.9/asyncio/events.py”, line 80, in _run self._context.run(self._callback, *self._args) File “/usr/src/homeassistant/homeassistant/components/recorder/init.py”, line 516, in async_connection_failed self.async_db_ready.set_result(False) asyncio.exceptions.InvalidStateError: invalid state

2 posts - 2 participants

Read full topic

Automation runs when it shouldn't

$
0
0

I don’t understand why this runs every time I walk away from my car.

The conditions should limit it.

id: '1627374681490'
alias: Andreas high accuracy walking home
description: ''
trigger:
  - platform: numeric_state
    entity_id: proximity.home
    below: '200'
  - platform: state
    entity_id: sensor.andreas_bluetooth_connection
    attribute: connected_paired_devices
condition:
  - condition: or
    conditions:
      - condition: and
        conditions:
          - condition: state
            entity_id: sensor.wifi_connection
            state: <not connected>
          - condition: numeric_state
            entity_id: proximity.home
            below: '200'
      - condition: and
        conditions:
          - condition: template
            value_template: >-
              {{ '4E:C3:9E:5B:9C:86' in
              trigger.from_state.attributes.connected_paired_devices }}
          - condition: template
            value_template: >-
              {{ not '4E:C3:9E:5B:9C:86' in
              trigger.to_state.attributes.connected_paired_devices }}
          - condition: numeric_state
            entity_id: proximity.home
            below: '200'
          - condition: state
            entity_id: sensor.wifi_connection
            state: <not connected>
action:
  - delay:
      hours: 0
      minutes: 0
      seconds: 3
      milliseconds: 0
  - service: notify.mobile_app_andreas
    data:
      message: command_high_accuracy_mode
      title: turn_on
mode: single

proximity.home is currently about 48200
sensor.wifi_connection is currently <not connected>
sensor.andreas_bluetooth_connection does change when I walk away from the car and the mac address is the one I want it to trigger on.

Since the proximity is condition then it shouldn’t trigger, or is there something wrong with this condition?

This is the trace I get (I have never read one of these before).

Executed: 2 August 2021, 6:32:57
Result:

result: true

## conditions/0

Executed: 2 August 2021, 6:32:57
Result:

result: true

## conditions/0/conditions/0

Executed: 2 August 2021, 6:32:57
Result:

result: true

## conditions/0/conditions/0/entity_id/0

Executed: 2 August 2021, 6:32:57
Result:

result: true state: <not connected> wanted_state: <not connected>

## conditions/0/conditions/1

Executed: 2 August 2021, 6:32:57
Result:

result: true

## conditions/0/conditions/1/entity_id/0

Executed: 2 August 2021, 6:32:57
Result:

result: true state: 0

4 posts - 2 participants

Read full topic

Cannot setup UniFi integration - unknown error occurred

$
0
0

Hello,

I have a USG3 along with a 1st-gen CloudKey, and I’m trying to get the UniFi integration working. I put in my IP address, and I made a specific admin username/password for this integration. Clicking OK then results in a “Unknown error occurred” message at the top. If I check the logs, I see:

    Logger: aiohttp.server
    Source: components/unifi/controller.py:493
    First occurred: 4:45:59 PM (6 occurrences)
    Last logged: 4:55:16 PM
    
    Error handling request
    Traceback (most recent call last):
      File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
        resp = await self._request_handler(request)
      File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
        resp = await handler(request)
      File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl
        return await handler(request)
      File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
        return await handler(request)
      File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 77, in forwarded_middleware
        return await handler(request)
      File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 24, in request_context_middleware
        return await handler(request)
      File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
        return await handler(request)
      File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 144, in auth_middleware
        return await handler(request)
      File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 135, in handle
        result = await result
      File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 155, in post
        return await super().post(request, flow_id)
      File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 63, in wrapper
        result = await method(view, request, *args, **kwargs)
      File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
        result = await self._flow_mgr.async_configure(flow_id, data)
      File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 202, in async_configure
        result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
      File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 260, in _async_handle_step
        result: FlowResult = await getattr(flow, method)(user_input)
      File "/usr/src/homeassistant/homeassistant/components/unifi/config_flow.py", line 93, in async_step_user
        controller = await get_controller(
      File "/usr/src/homeassistant/homeassistant/components/unifi/controller.py", line 493, in get_controller
        await controller.login()
      File "/usr/local/lib/python3.9/site-packages/aiounifi/controller.py", line 108, in login
        await self._request("post", url=url, json=auth)
      File "/usr/local/lib/python3.9/site-packages/aiounifi/controller.py", line 274, in _request
        async with self.session.request(
      File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 1117, in __aenter__
        self._resp = await self._coro
      File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 542, in _request
        resp = await req.send(conn)
      File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 668, in send
        await writer.write_headers(status_line, self.headers)
      File "/usr/local/lib/python3.9/site-packages/aiohttp/http_writer.py", line 118, in write_headers
        buf = _serialize_headers(status_line, headers)
      File "aiohttp/_http_writer.pyx", line 137, in aiohttp._http_writer._serialize_headers
      File "aiohttp/_http_writer.pyx", line 109, in aiohttp._http_writer.to_str
    TypeError: Cannot serialize non-str key None

Am I doing something wrong? Or is something funky with my Controller? Any help is appreciated here. Thanks! Could this be a bug in some component used by HA?

Alternatively, if I can’t get this working - I used to have an auto-discovered integration with my Ubiquiti gateway, which I accidentally deleted - and now I cannot get to show up again, even with HA reboots. It used to show up as “ugw3” in my logs. Any idea how to get this integration again? I really just want to monitor internet traffic…

2 posts - 2 participants

Read full topic


Front path sequential motion sensors trigger doorbell

$
0
0

Hi all,
I have 2x Hue outdoor motion sensors to trigger hue outdoor lights on our garden path to/from the front door. I was thinking of using the gate and then door sensors to trigger a door bell or announcement of approaching person.
Obviously would need to differentiate between the directions (gate to door incoming vs door to gate leaving).
This seems relevant, but not sure the approach to take here. I’ve only written a couple scripts to turn on and cast to our garden speakers.

Thank you in advance :slight_smile:

2 posts - 2 participants

Read full topic

Server error response 500, appliance finished blueprint

$
0
0

When I try to create an automation from a blueprint, I get error 500. My logging shows the following:

Logger: aiohttp.server
Source: components/config/automation.py:60
First occurred: 1:58:44 PM (1 occurrences)
Last logged: 1:58:44 PM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 77, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 24, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 144, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 135, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/__init__.py", line 160, in post
    self._write_value(hass, current, config_key, data)
  File "/usr/src/homeassistant/homeassistant/components/config/automation.py", line 60, in _write_value
    cur_value[CONF_ID] = uuid.uuid4().hex
TypeError: 'str' object does not support item assignment

I’m trying to create an automation from the blueprint this blueprint: Notify or do something when an appliance like a dishwasher or washing machine finishes - Blueprints Exchange - Home Assistant Community (home-assistant.io)

alias: Appliance has finished
description: ''
use_blueprint:
  path: >-
    Sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
  input:
    power_sensor: sensor.wasmachine_wattage
    actions:
      - service: notify.mobile_app_huawei_rick
        data:
          message: Wasmachine is klaar
          title: 'Let op:'

When I hit save it gives me the above error 500.

1 post - 1 participant

Read full topic

Linux command via HA

$
0
0

Hello,

I have read and researched the various post on this forum related to that topic without much success.

My scenario: I have a server PC on Proxmox running two VMs: Ubuntu server and HA. I also have a NAS which is mounted on the Ubuntu where I run Plex reading media files on the NAS via the mount. I noticed constant CPU load on the NAS so I wanted a button in HA where I can mount only when I am going to use Plex or else unmount it.

working linux command:
Mounting: sudo mount -a
Unmounting: sudo umount -a -t cifs -l

Steps followed:

  1. Install SSH & Web Terminal Addon

  2. generated keygen
    ssh-keygen -t rsa -b 4096

  3. copying keys for ubuntu server
    ssh-copy-id ubntsrv@192.168.3.12

  4. copying keys to config folder to avoid override during HA update
    cp /root/.ssh/id_rsa /config

  5. Created the HA button:

- platform: command_line
  switches:
    mount_media_nas:
      command_on: "ssh -i /config/ssh_keys/ubntsrv -o 'StrictHostKeyChecking=no' ubntsrv@192.168.3.12 sudo mount -a'"
      command_off: "ssh -i /config/ssh_keys/ubntsrv -o 'StrictHostKeyChecking=no' ubntsrv@192.168.3.12 sudo umount -a -t cifs -l'"

I get the following error:

Logger: homeassistant.components.command_line.switch
Source: components/command_line/switch.py:109
Integration: command_line (documentation, issues)
First occurred: 11:04:00 AM (1 occurrences)
Last logged: 11:04:00 AM

Command failed: ssh -i /config/ssh_keys/ubntsrv -o 'StrictHostKeyChecking=no' ubntsrv@192.168.3.12 sudo mount -a'

My conclusion is the ssh keys are not being found in the right place? Any help please.

1 post - 1 participant

Read full topic

Automation Closing Roller Shutters via Temperature Sensor

$
0
0

Hi!

I installed some electric roller shutters and would like to close them to 60 percent via an automation, which is triggered by an outdoor temperature sensor, but only those roller shutters, that are currently above 60 % open.

At the moment, the automation triggers if the temperature gets above 25°C and only if one of the roller shutters is open.
This results in all roller shutters opening, even if some of them are closed.

How can I make an automation, which only sets those roller shutters to 60% that are currently set at > 60 %, whithout having to make a separate automation for each of them?

Thanks!

1 post - 1 participant

Read full topic

Turn on heating when conditions are reached

$
0
0

so im having an issue when I tried to automate the my heating turning on in the room if the door is open and the extractor is on can anybody assist please

- id: '1627785560558'
  alias: Bedroom heating
  description: ''
  trigger:
  - type: opened
    platform: device
    device_id: f0c8adf788eb7fcc67743a4d5868b343
    entity_id: binary_sensor.tybf2e3af81e86a36a34sru4
    domain: binary_sensor
  condition:
  - condition: device
    type: is_on
    device_id: 817e86efdfd856d3464bdc8c104fe32d
    entity_id: switch.ty48324655dc4f22a690f5
    domain: switch
  action:
  - service: climate.set_aux_heat
    target:
      entity_id: climate.bedroom_wall_unit
  - wait_for_trigger:
    - type: not_opened
      platform: device
      device_id: f0c8adf788eb7fcc67743a4d5868b343
      entity_id: binary_sensor.tybf2e3af81e86a36a34sru4
      domain: binary_sensor
  - service: climate.turn_off
    target:
      entity_id: climate.bedroom_wall_unit
  mode: single

3 posts - 2 participants

Read full topic

History list card for binary sensor?

$
0
0

I have a binary sensor for a door. In the lovelace ui, I would like to see a list of datetimes when the door was open. Is there a custom card for this?
(using a history graph is not what I want)

2 posts - 2 participants

Read full topic

Aeotec multisensor 6 continually firing burglar alarm

$
0
0

I have a MS 6 which has been in place for a year or so - running on standard CR123 batteries. Yesterday I changed it to use 3.0V (NOT 3.7v) rechargeable batteries - no other change.

Now every 15 minutes (wake up interval) it will always see that burglar state as 8, triggering a notiification alert I have set up on that condition.

4 minutes later, it will get a state 0 and then again on the wake up, go round again.

Could this be something to do with the batteries affecting the sensor in some way?

I’ve not tried putting back standard batteries, but does seem odd…

Here’s the log from OZW log file.

Currently running HA core 2021.5.5 version, OS 3.13 and the deprecated Z-Wave integration.

I’m not confident to upgrade to either the Z-save JS or new OS 6.1 - any thoughts?

2021-08-02 19:42:58.069 Detail, Node009,   Received: 0x01, 0x0c, 0x00, 0x04, 0x10, 0x09, 0x06, 0x31, 0x05, 0x01, 0x22, 0x00, 0x9a, 0x65
2021-08-02 19:42:58.070 Info, Node009, Received SensorMultiLevel report from node 9, instance 1, Temperature: value=15.4C
2021-08-02 19:42:58.070 Detail, Node009, Refreshed Value: old value=15.6, new value=15.4, type=decimal
2021-08-02 19:42:58.070 Detail, Node009, Changes to this value are not verified
2021-08-02 19:42:58.070 Detail, Node009, Notification: ValueChanged
2021-08-02 19:42:59.546 Detail, Node009,   Received: 0x01, 0x0b, 0x00, 0x04, 0x10, 0x09, 0x05, 0x31, 0x05, 0x05, 0x01, 0x4b, 0x97
2021-08-02 19:42:59.546 Info, Node009, Received SensorMultiLevel report from node 9, instance 1, Relative Humidity: value=75%
2021-08-02 19:42:59.546 Detail, Node009, Refreshed Value: old value=73, new value=75, type=decimal
2021-08-02 19:42:59.546 Detail, Node009, Changes to this value are not verified
2021-08-02 19:42:59.546 Detail, Node009, Notification: ValueChanged
2021-08-02 19:43:02.004 Detail, Node009,   Received: 0x01, 0x09, 0x00, 0x04, 0x10, 0x09, 0x03, 0x80, 0x03, 0x64, 0x0f
2021-08-02 19:43:02.004 Info, Node009, Received Battery report from node 9: level=100
2021-08-02 19:43:02.004 Detail, Node009, Refreshed Value: old value=100, new value=100, type=byte
2021-08-02 19:43:02.004 Detail, Node009, Changes to this value are not verified
2021-08-02 19:43:02.004 Detail, Node009, Notification: ValueChanged
2021-08-02 19:43:06.271 Detail, Node009,   Received: 0x01, 0x09, 0x00, 0x04, 0x10, 0x09, 0x03, 0x30, 0x03, 0xff, 0x24
2021-08-02 19:43:06.271 Info, Node009, Received SensorBinary report: Sensor:36 State=On
2021-08-02 19:43:06.271 Detail, Node009, Refreshed Value: old value=false, new value=true, type=bool
2021-08-02 19:43:06.271 Detail, Node009, Changes to this value are not verified
2021-08-02 19:43:06.271 Detail, Node009, Notification: ValueChanged
2021-08-02 19:43:07.805 Detail, Node009,   Received: 0x01, 0x10, 0x00, 0x04, 0x10, 0x09, 0x0a, 0x71, 0x05, 0x00, 0x00, 0x00, 0xff, 0x07, 0x08, 0x00, 0x00, 0x7c
2021-08-02 19:43:07.805 Info, Node009, Received Alarm report: type=0, level=0, sensorSrcID=0, type:Burglar event:8, status=255
2021-08-02 19:43:07.805 Detail, Node009, Refreshed Value: old value=0, new value=0, type=byte
2021-08-02 19:43:07.805 Detail, Node009, Changes to this value are not verified
2021-08-02 19:43:07.806 Detail, Node009, Refreshed Value: old value=0, new value=0, type=byte
2021-08-02 19:43:07.806 Detail, Node009, Changes to this value are not verified
2021-08-02 19:43:07.806 Detail, Node009, Refreshed Value: old value=0, new value=0, type=byte
2021-08-02 19:43:07.806 Detail, Node009, Changes to this value are not verified
2021-08-02 19:43:07.806 Detail, Node009, Refreshed Value: old value=0, new value=8, type=byte
2021-08-02 19:43:07.807 Detail, Node009, Changes to this value are not verified
2021-08-02 19:43:07.807 Detail, Node009, Notification: ValueChanged
2021-08-02 19:43:07.831 Detail, Node009, Notification: ValueChanged
2021-08-02 19:43:07.844 Detail, Node009, Notification: ValueChanged
2021-08-02 19:43:07.857 Detail, Node009, Notification: ValueChanged
2021-08-02 19:43:10.299 Detail, Node009,   Received: 0x01, 0x0c, 0x00, 0x04, 0x10, 0x09, 0x06, 0x31, 0x05, 0x03, 0x0a, 0x00, 0x00, 0xd5
2021-08-02 19:43:10.300 Info, Node009, Received SensorMultiLevel report from node 9, instance 1, Luminance: value=0lux
2021-08-02 19:43:10.300 Detail, Node009, Refreshed Value: old value=0, new value=0, type=decimal
2021-08-02 19:43:10.300 Detail, Node009, Changes to this value are not verified
2021-08-02 19:43:10.301 Detail, Node009, Notification: ValueChanged
2021-08-02 19:43:12.019 Detail, Node009,   Received: 0x01, 0x0b, 0x00, 0x04, 0x10, 0x09, 0x05, 0x31, 0x05, 0x1b, 0x01, 0x00, 0xc2
2021-08-02 19:43:12.020 Info, Node009, Received SensorMultiLevel report from node 9, instance 1, Ultraviolet: value=0
2021-08-02 19:43:12.020 Detail, Node009, Refreshed Value: old value=0, new value=0, type=decimal
2021-08-02 19:43:12.022 Detail, Node009, Changes to this value are not verified
2021-08-02 19:43:12.023 Detail, Node009, Notification: ValueChanged
2021-08-02 19:43:13.307 Detail, Node009,   Received: 0x01, 0x08, 0x00, 0x04, 0x10, 0x09, 0x02, 0x84, 0x07, 0x6b
2021-08-02 19:43:13.310 Info, Node009, Received Wakeup Notification from node 9
2021-08-02 19:43:13.311 Detail, Node009, Queuing (WakeUp) WakeUpCmd_NoMoreInformation (Node=9): 0x01, 0x09, 0x00, 0x13, 0x09, 0x02, 0x84, 0x08, 0x25, 0xe2, 0xa5
2021-08-02 19:47:04.284 Detail, Node009,   Received: 0x01, 0x09, 0x00, 0x04, 0x10, 0x09, 0x03, 0x30, 0x03, 0x00, 0xdb
2021-08-02 19:47:04.284 Info, Node009, Received SensorBinary report: Sensor:219 State=Off
2021-08-02 19:47:04.284 Detail, Node009, Refreshed Value: old value=true, new value=false, type=bool
2021-08-02 19:47:04.285 Detail, Node009, Changes to this value are not verified
2021-08-02 19:47:04.285 Detail, Node009, Notification: ValueChanged
2021-08-02 19:47:06.089 Detail, Node009,   Received: 0x01, 0x10, 0x00, 0x04, 0x10, 0x09, 0x0a, 0x71, 0x05, 0x00, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0x00, 0x74
2021-08-02 19:47:06.089 Info, Node009, Received Alarm report: type=0, level=0, sensorSrcID=0, type:Burglar event:0, status=255
2021-08-02 19:47:06.090 Detail, Node009, Refreshed Value: old value=0, new value=0, type=byte
2021-08-02 19:47:06.090 Detail, Node009, Changes to this value are not verified
2021-08-02 19:47:06.090 Detail, Node009, Refreshed Value: old value=0, new value=0, type=byte
2021-08-02 19:47:06.090 Detail, Node009, Changes to this value are not verified
2021-08-02 19:47:06.090 Detail, Node009, Refreshed Value: old value=0, new value=0, type=byte
2021-08-02 19:47:06.090 Detail, Node009, Changes to this value are not verified
2021-08-02 19:47:06.090 Detail, Node009, Refreshed Value: old value=8, new value=0, type=byte
2021-08-02 19:47:06.090 Detail, Node009, Changes to this value are not verified
2021-08-02 19:47:06.090 Detail, Node009, Notification: ValueChanged

2 posts - 2 participants

Read full topic


Input_number

$
0
0

Why does input_number display numbers with tenths ("…,0") on lovelace? The step = 10;

input_number:
  u_s_air_quality_critical_level:
    name: Крит уровень
    min: 10
    max: 100
    step: 10
    unit_of_measurement: AQI

1

1 post - 1 participant

Read full topic

Cannot change color Zigbee Bulb

$
0
0

I cannot change the colour of the tuya based Zigbee bulb (https://www.ikuu.com.au/product/classic-colour-globe-b22-rgb-cct-2/). Below is the device signature

{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.0: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0101",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0008",
        "0x0300",
        "0x1000"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZ3000_hodifxa9",
  "model": "TS0501B",
  "class": "zigpy.device.Device"
}

1 post - 1 participant

Read full topic

Set state by irrecieve ir code

$
0
0

I have Geeklink IR blaster (tasmota fw, mqtt enabled) and with mqtt integration in HA and with some code I can turn on/off my AC, set cool, change fan speed…
Question is:
Is it possible somehow to use irrecieve code that i see in tasmota console to set AC state (on or off)?
If someone use original AC remote then AC state in HA will be wrong.
In tasmota console I can se if original remote is used by irrecieve command.
It will be nice if I can use this to set real state to my AC in HA if orginal remote is used.

2 posts - 2 participants

Read full topic

Display history of entities that got a specific values whenever in the past 2 weeks

$
0
0

Hello,

I’m looking for a way to filter and display history of entites that took a specific values somewhere in the past. For instance, I have 30 Shelly modules with 30 entities for “overheating” that are recorded on 2 weeks, and I want to display the history graph only of the modules for which the entity “overheating” had value “on” at some time.

I’ve spent some time with “custom:auto-entities”, “history-graph” or “custom:apexcharts-card” but can’t find a way to achieve this ‘simple’ task… :frowning:

Any idea ? :slight_smile:

Thanks,
David

2 posts - 2 participants

Read full topic

KNX connection Issue with old MTN680329 ver0B

$
0
0

Hello,

I was using OpenRemote since 10 years now and I wanted to try other alternatives for my home integration.

I’ve got a MTN680329 ver0B (I think that can’t use tunneling)
ETS4.

I’ve tried Jeedom for few weeks and I wanted to try HA to see if I would not prefer this one. The problem is that I was not able to set up the connection with the KNX router. I don’t know why. I had also some difficulty to make it work with Jeedom where I will put the setup that make it works:

None of the option I’ve tried allow me to connect my KNX.

HA is new for me.

Any tips that could allow me to make the connection working ?

Thanks in advance

1 post - 1 participant

Read full topic

Viewing all 105786 articles
Browse latest View live


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