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

Any way to combine multiple entities into one garage door entity?

$
0
0

Hi folks, I made a DIY smart garage door with a relay running from a smart zigbee outlet to mimic pushing the garage door open button and then a zigbee door/window sensor to know when the garage door is open. (And I’m using ZHA FWIW).

Is there a way I can make these separate components seem like one smart garage door entity in home assistant? So that I will see a garage door listed there with appropriate icons (open or closed) instead of seeing two separate entities (the smart plug and the open/closed sensor. (And the automation I added to operate the door).

Ideally this would show up in the iOS Home app via the HomeKit integration as one entity too. (Although I imagine if I can figure this out in home assistant then iOS will just copy that).

1 post - 1 participant

Read full topic


Control remote PulseAudio volume

$
0
0

Hi! I’m using the PulseAudio Loopback switch to connect a pulseaudio source to a sink on a remote raspberry pi (I have it connecting a record player preamp to a HifiBerry Amp2).

Does anyone know of a way I could control the pulseaudio source or sink volume from Home Assistant? Perhaps via a third party addon or somehow using the audio plugin which has pulse running?

1 post - 1 participant

Read full topic

How to supress dot x value display in front end on input_number

$
0
0

I would like to remove ,0 from 75,0 display of an input_number (float). How can i archive to remove that in the front end?

grafik

1 post - 1 participant

Read full topic

Fibaro fgbs 222 volt set to m/s

$
0
0

Hi, All i have recently started with Homeassistant .
i just had an fibaro fgbs 222 (smart implant) added to my system .
on the In1 input of the fibaro i have an windmeter.
i have added the fibaro and homeassistant says 0,39v
but i want to set the 0,4 to 2 v to the wind speed how can i do this ?

some specs

fibaro fgbs 222
analog input 0-10v set whitout pull up resistor

wind speed sensor
measurement range :0-32.4 s/m
presicion : +0.3 m/s
start wind speed <0.8m/s

output signal 0.4-2volt
wind speed value=(output voltage - 0.4)/1.6*range

sorry for my bad english

1 post - 1 participant

Read full topic

Automations just once a day!

$
0
0

Hi all,

How to set an automation to trigger just once a day.

I coming from SmartThings, there it where just a switch to get the automations to trigger just once.

Help needed, thanks!

/Thekholm

1 post - 1 participant

Read full topic

Cant upgrade home assistant + errors in log

$
0
0

So I am a newbie, appologies for that. I have searched the forum first but did not find anything that could help me. Systems seems to be running fine.

I am on core 2021.3.4 and cant upgrade anymore. Update trough GUI failes without error. In my log file I have loads of warnings like this:

‘’’
21-04-18 18:52:19 WARNING (MainThread) [supervisor.host.network] Can’t update connectivity information: Error connecting: GDBus.Error:org.freedesktop.DBus.Error.LimitsExceeded: The maximum number of active connections for UID 0 has been reached
‘’’

also these errors

‘’’
21-04-18 19:14:12 ERROR (MainThread) [supervisor.hassos] Rauc communication error
‘’’
‘’’
21-04-18 19:35:41 WARNING (MainThread) [supervisor.jobs] ‘HomeAssistantCore.update’ blocked from execution, no host internet connection
‘’’

I can reach my system fine over lan. Any suggestions?

1 post - 1 participant

Read full topic

HA most devices unavailable after restore

$
0
0

It took my a week to replace a broken HDD in the old host machine and when I finally fixed it and restored my HA installation most devices are unavailable. Is there any way to fix them?

It looks like the Innovelli switches are not working as well as the motion sensors.

1 post - 1 participant

Read full topic

Music stops on Sonos speakers while using Cloud TTS

$
0
0

Total newb here especially when it comes to programming (but willing to learn), please bear with me!

I want to be able to listen to music using my Sonos speakers and Plex integration, while also receiving TTS announcements. As it is now, the TTS announcement replaces the music being played, and I will then have to pick a new song from Plex manually in order to keep listening.

I realize this has been discussed here before, but the solutions appear mostly quite old and possibly no longer functional. I also didn’t see anything specific to using Cloud TTS instead of Google TTS. I found an integration solution made by kevinvincent. in one of the threads, but while it works great for Google TTS, the problem is that I much, much prefer to instead use the more natural and nicer sounding Cloud TTS that comes with the Nabu Casa subscription.

kevinvincent’s above solution relies on a server being created alongside HA that processes the TTS, and that way as I understand it, it works more or less by simultaneously playing both files, my music on Plex with Sonos, and the TTS clip processed on the lateral server. I can’t find any way to change the setting to Cloud TTS, though.

I’ve been trying to come up with a solution… To start with, there are a few issues that come to mind:

  • I have seen no way of editing an integration within HA in order to try and change the TTS service used. It’s currently looking like it’s not worth attempting, considering the below point.
  • Ability to use Cloud TTS is tied to my Nabu Casa subscription, which is single user. I would guess that means that this server wouldn’t be able to access it as it isn’t freely available.
  • Use “pre-printed” TTS clip sound files. This would sadly remove the ability for the TTS to announce any real time things such as outside temperatures - not ideal.

Two possible solutions come to mind:

  1. Process the TTS within my HA instance, then send the file over to the server, from where it will then be played over the Plex music playing on Sonos speakers. This seems like a fiddly solution, possibly causing tons of latency on the TTS announcements, but I imagine it’s at least possible?
  2. Abandon the idea of using this solution and try another script. I have little experience working with scripts so I would have to largely rely on the good community here.

Speaking of trying a script, I found the following from here, posted by @ianadd :

test_tts:
  alias: Test for TTS
  sequence:
    - service: script.turn_on
      entity_id: script.say
      data:
        variables:
          where: 'office'
          what: 'Test.'


say:
  alias: Sonos Text To Speech
  sequence:
  - service: sonos.snapshot
    data_template:
      entity_id: "{{ 'media_player.' ~ where }}"
  - service: tts.google_translate_say
    data_template:
      entity_id: "{{ 'media_player.' ~ where }}"
      message: "{{ what }}"
  - delay:
      seconds: 1
  - delay: >-
      {% set duration = states.media_player[where].attributes.media_duration %}
      {% if duration > 0 %}
        {% set duration = duration - 1 %}
      {% endif %}
      {% set seconds = duration % 60 %}
      {% set minutes = (duration / 60)|int % 60 %}
      {% set hours = (duration / 3600)|int %}
      {{ [hours, minutes, seconds]|join(':') }}
  - service: sonos.restore
    data_template:
      entity_id: "{{ 'media_player.' ~ where }}"

It looks like it could work according to my limited knowledge, but I keep getting an error saying “extra keys not allowed”. It could be any mistake, but I’m also wondering if a script all the way back from '19 would still work today as HA is constantly being updated.

I would love some help on this! At this point this feature is pretty much the only major thing I’m missing at the moment. Thanks in advance!

1 post - 1 participant

Read full topic


Tuya Fan Control - Missing Light

$
0
0

Hi friends,

Just bought a tuya fan switch with light switch embedded. When i set it up with Google home, both controllers are there but when I integrate it with HA only shows the Fan controller, no light switch. I use the Tuya Integration and the fan appeared automatically. How can I have the light switch on HA?

Thanks in advance

1 post - 1 participant

Read full topic

Integrate openWB Wallbox via MQTT

$
0
0

Hello,

after some struggle I was finally able to integrate the openWB into Home Assistant via MQTT. For my fellow openWBlers I wanted to document the status here.

  1. Have MQTT set up from the addon store
  2. Have SSH access to HA
  3. create a openwb.conf file under /share/mosquitto with belows content
  4. Restart mosquitto and check if you find in the logs Connecting bridge openwb (your.ip.of.openwb:1883)
  5. check with a MQTT (e.g. MQTT Explorer) client of the data arrives in MQTT

I hope you find this useful.

openwb.conf

connection openwb
address your.ip.of.openwb:1883
topic openWB/# both 2
local_clientid rem.mosquitto

config.yaml

sensor:
  - platform: mqtt
    name: "openWB Stellplatz Charged Since Plugged"
    state_topic: "openWB/lp/2/kWhChargedSincePlugged"
    unit_of_measurement: "kWh"
    device_class: energy
  - platform: mqtt
    name: "openWB Stellplatz Zähler"
    state_topic: "openWB/lp/2/kWhCounter"
    unit_of_measurement: "kWh"
    device_class: energy
  - platform: mqtt
    name: "openWB Stellplatz Leistung"
    state_topic: "openWB/lp/2/W"
    device_class: power
    unit_of_measurement: "W"
  - platform: mqtt
    name: "openWB Stellplatz Strom Phase 1"
    state_topic: "openWB/lp/2/APhase1"
    unit_of_measurement: "A"
  - platform: mqtt
    name: "openWB Stellplatz Strom Phase 2"
    state_topic: "openWB/lp/2/APhase2"
    unit_of_measurement: "A"
  - platform: mqtt
    name: "openWB Stellplatz Strom Phase 3"
    state_topic: "openWB/lp/2/APhase3"
    unit_of_measurement: "A"
  - platform: mqtt
    name: "openWB Stellplatz Phasen in Benutzung"
    state_topic: "openWB/lp/2/countPhasesInUse"
    unit_of_measurement: ""
  - platform: template
    sensors:
      openwb_ladeparameter:
        friendly_name: "openWB Stellplatz Ladeparameter"
        unit_of_measurement: ''
        value_template: >-
          {{ 
            states('sensor.openwb_stellplatz_leistung') | int / 1000 | float | round(1)
          }}kW/({{
            states('sensor.openwb_stellplatz_phasen_in_benutzung') | int 
          }}){{ 
            [
              states('sensor.openwb_stellplatz_strom_phase_1') | float,
              states('sensor.openwb_stellplatz_strom_phase_1') | float,
              states('sensor.openwb_stellplatz_strom_phase_1') | float
            ] | max | round(0)
          }}A

As the Audi SOC detection from openWB is not working atm I configured the MQTT SOC and created

  - alias: "Audi - Link SOC from Audi Integration to openWB"
    id: 6137bd88-e910-4149-a6e1-c96124c15177
    trigger:
      - platform: state
        entity_id: sensor.angelina_state_of_charge
    action:
      - service: mqtt.publish
        data_template:
          topic: 'openWB/set/lp/2/%Soc'
          retain: true
          payload: "{{ states('sensor.angelina_state_of_charge') | int }}"

1 post - 1 participant

Read full topic

Onvif problem

$
0
0

Sorry for my english. I just bought an onvif camera. It works perfectly in other systems I have integrated it with, but using integration in homeassistant I get this error.

Logger: homeassistant.config_entries
Source: components/onvif/event.py:154
First occurred: 22:36:58 (1 occurrences)
Last logged: 22:36:58

Error setting up entry ONVIF_CAMERA - 44:01:bb:a8:75:be for onvif
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 249, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/onvif/__init__.py", line 74, in async_setup_entry
    if not await device.async_setup():
  File "/usr/src/homeassistant/homeassistant/components/onvif/device.py", line 107, in async_setup
    self.capabilities = await self.async_get_capabilities()
  File "/usr/src/homeassistant/homeassistant/components/onvif/device.py", line 252, in async_get_capabilities
    pullpoint = await self.events.async_start()
  File "/usr/src/homeassistant/homeassistant/components/onvif/event.py", line 86, in async_start
    await self.async_renew()
  File "/usr/src/homeassistant/homeassistant/components/onvif/event.py", line 154, in async_renew
    await self._subscription.Renew(termination_time)
  File "/usr/local/lib/python3.8/site-packages/zeep/proxy.py", line 64, in __call__
    return await self._proxy._binding.send_async(
  File "/usr/local/lib/python3.8/site-packages/zeep/wsdl/bindings/soap.py", line 164, in send_async
    return self.process_reply(client, operation_obj, response)
  File "/usr/local/lib/python3.8/site-packages/zeep/wsdl/bindings/soap.py", line 229, in process_reply
    return self.process_error(doc, operation)
  File "/usr/local/lib/python3.8/site-packages/zeep/wsdl/bindings/soap.py", line 381, in process_error
    subcode_qname = as_qname(
  File "/usr/local/lib/python3.8/site-packages/zeep/utils.py", line 36, in as_qname
    raise XMLParseError("No namespace defined for %r (%r)" % (prefix, value))
zeep.exceptions.XMLParseError: No namespace defined for 'wsrf-rw' ('wsrf-rw:ResourceUnknownFault')


1 post - 1 participant

Read full topic

Help with automation based in three triggers. don't know how to make as conditions

$
0
0

Hi,
I currently have an ESPHOME divice, battery powered, that I want to turn off based on a Mqtt command, the problem is that I can’t get, because I don’t know how, to turn of when all the values are sent and not just one.
I want to send the MQTT command once home assistant receives the THREE values, not just one. This must be done via conditions, but don’t know how to enter a condition as such as “being updated in the last 20 seconds”

Code here;

id: '16186466'
alias: Apagar pool temp after data received
description: ''
trigger:
  - platform: mqtt
    topic: /poolthermometer/sensor/bateria_/state
  - platform: mqtt
    topic: /poolthermometer/sensor/bateria_v/state
  - platform: mqtt
    topic: /poolthermometer/sensor/pool_temperature/state
condition: []
action:
  - service: mqtt.publish
    data:
      payload: 'ON'
      topic: poolthermometer/sleep_mode
  - delay:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
  - service: mqtt.publish
    data:
      topic: poolthermometer/sleep_mode
      payload: 'OFF'
mode: single

1 post - 1 participant

Read full topic

Compact these 2 small automations using numeric_state?

$
0
0

though very basic, I must confess I am struggling to find a way how to compress this into 1 automation using a trigger.below and trigger.above on the -3.5…

can we do that at all since the trigger cant be both below and above? or should I write it verbosely

    trigger:
      - platform: numeric_state
        entity_id: sun.sun
        attribute: elevation
        below: -3.5
      - platform: numeric_state
        entity_id: sun.sun
        attribute: elevation
        below: -3.5
  - alias: Sun elevation sets outside motion sensors
    id: Sun elevation sets outside motion sensors
    trigger:
      platform: numeric_state
      entity_id: sun.sun
      attribute: elevation
      below: -3.5
    action:
      service: homeassistant.turn_on
      entity_id: group.philips_buiten_motion_sensor_switches

  - alias: Outside motion sensors off when light outside
    id: Outside motion sensors off when light outside
    trigger:
      platform: numeric_state
      entity_id: sun.sun
      attribute: elevation
      above: -3.5
    action:
      service: homeassistant.turn_off
      entity_id: group.philips_buiten_motion_sensor_switches

goal is obvious: turn_on when below -3.5, turn_off when above -3.5 … so how to write the service template

 service: homeassistant.turn_{{'off' if trigger.above else 'on'))

please have a look?
thanks

3 posts - 2 participants

Read full topic

TensorFlow Errors - image_processing.py

$
0
0

Since upgrading to 2021.4.1 (I believe that’s when it started). I am getting this error and my Tensorflow image processing doesn’t work.
I’m running 2021.4.5 on Debian 10 Supervised.
I coming from a longtime VENV install so I haven’t had to do much troubleshooting in a supervised environment, so I’m not really sure the best way to troubleshoot/reinstall packages in supervised… anyone have any suggestions?


2021-04-18 12:44:09 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tensorflow/image_processing.py", line 176, in tensorflow_hass_start
    model(input_tensor)
  File "/usr/local/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 780, in __call__
    result = self._call(*args, **kwds)
  File "/usr/local/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 823, in _call
    self._initialize(args, kwds, add_initializers_to=initializers)
  File "/usr/local/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 696, in _initialize
    self._stateful_fn._get_concrete_function_internal_garbage_collected(  # pylint: disable=protected-access
  File "/usr/local/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 2855, in _get_concrete_function_internal_garbage_collected
    graph_function, _, _ = self._maybe_define_function(args, kwargs)
  File "/usr/local/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 3213, in _maybe_define_function
    graph_function = self._create_graph_function(args, kwargs)
  File "/usr/local/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 3065, in _create_graph_function
    func_graph_module.func_graph_from_py_func(
  File "/usr/local/lib/python3.8/site-packages/tensorflow/python/framework/func_graph.py", line 986, in func_graph_from_py_func
    func_outputs = python_func(*func_args, **func_kwargs)
  File "/usr/local/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 600, in wrapped_fn
    return weak_wrapped_fn().__wrapped__(*args, **kwds)
  File "/usr/local/lib/python3.8/site-packages/tensorflow/python/framework/func_graph.py", line 973, in wrapper
    raise e.ag_error_metadata.to_exception(e)
NotImplementedError: in user code:

    /usr/src/homeassistant/homeassistant/components/tensorflow/image_processing.py:91 detect_fn  *
        prediction_dict = model.predict(image, shapes)
    /config/tensorflow/object_detection/meta_architectures/faster_rcnn_meta_arch.py:827 predict  *
        prediction_dict.update(
    /config/tensorflow/object_detection/meta_architectures/faster_rcnn_meta_arch.py:1003 _predict_second_stage  *
        prediction_dict = self._box_prediction(rpn_features_to_crop,
    /config/tensorflow/object_detection/meta_architectures/faster_rcnn_meta_arch.py:1065 _box_prediction  *
        flattened_proposal_feature_maps = (
    /config/tensorflow/object_detection/meta_architectures/faster_rcnn_meta_arch.py:1958 _compute_second_stage_input_feature_maps  *
        cropped_regions = self._flatten_first_two_dimensions(
    /config/tensorflow/object_detection/utils/spatial_transform_ops.py:520 multilevel_matmul_crop_and_resize  *
        return multilevel_roi_align(images,
    /config/tensorflow/object_detection/utils/spatial_transform_ops.py:349 multilevel_roi_align  *
        feature_coordinates = ravel_indices(feature_grid_y, feature_grid_x,
    /config/tensorflow/object_detection/utils/spatial_transform_ops.py:187 ravel_indices  *
        batch_dim_indices = (
    /usr/local/lib/python3.8/site-packages/tensorflow/python/util/dispatch.py:201 wrapper  **
        return target(*args, **kwargs)
    /usr/local/lib/python3.8/site-packages/tensorflow/python/ops/array_ops.py:3041 ones
        output = _constant_if_small(one, shape, dtype, name)
    /usr/local/lib/python3.8/site-packages/tensorflow/python/ops/array_ops.py:2732 _constant_if_small
        if np.prod(shape) < 1000:
    <__array_function__ internals>:5 prod
        
    /usr/local/lib/python3.8/site-packages/numpy/core/fromnumeric.py:3030 prod
        return _wrapreduction(a, np.multiply, 'prod', axis, dtype, out,
    /usr/local/lib/python3.8/site-packages/numpy/core/fromnumeric.py:87 _wrapreduction
        return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
    /usr/local/lib/python3.8/site-packages/tensorflow/python/framework/ops.py:845 __array__
        raise NotImplementedError(

    NotImplementedError: Cannot convert a symbolic Tensor (MultiLevelMatMulCropAndResize/MultiLevelRoIAlign/strided_slice_5:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported

I tried uninstalling and reinstalling numpy but I get this on reinstall:


  Downloading numpy-1.20.2.zip (7.8 MB)
     |████████████████████████████████| 7.8 MB 2.2 MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python /usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp3xrt62cm
         cwd: /tmp/pip-install-pgas2zyk/numpy
    Complete output (226 lines):
    Processing numpy/random/_bounded_integers.pxd.in
    Processing numpy/random/mtrand.pyx
    Processing numpy/random/_pcg64.pyx
    Processing numpy/random/bit_generator.pyx
    Processing numpy/random/_sfc64.pyx
    Processing numpy/random/_common.pyx
    Processing numpy/random/_bounded_integers.pyx.in
    Processing numpy/random/_philox.pyx
    Processing numpy/random/_generator.pyx
    Processing numpy/random/_mt19937.pyx
    Cythonizing sources
    blas_opt_info:
    blas_mkl_info:
    customize UnixCCompiler
      libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    blis_info:
      libraries blis not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    openblas_info:
      libraries openblas not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_3_10_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries tatlas not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_3_10_blas_info:
      libraries satlas not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_blas_info:
      libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    blas_info:
      libraries blas not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    blas_src_info:
      NOT AVAILABLE
    
      NOT AVAILABLE
    
    non-existing path in 'numpy/distutils': 'site.cfg'
    lapack_opt_info:
    lapack_mkl_info:
      libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    openblas_lapack_info:
      libraries openblas not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    openblas_clapack_info:
      libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    flame_info:
      libraries flame not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
      libraries lapack_atlas not found in /usr/local/lib
      libraries tatlas,tatlas not found in /usr/local/lib
      libraries lapack_atlas not found in /usr/lib
      libraries tatlas,tatlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      NOT AVAILABLE
    
    atlas_3_10_info:
      libraries lapack_atlas not found in /usr/local/lib
      libraries satlas,satlas not found in /usr/local/lib
      libraries lapack_atlas not found in /usr/lib
      libraries satlas,satlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_3_10_info'>
      NOT AVAILABLE
    
    atlas_threads_info:
    Setting PTATLAS=ATLAS
      libraries lapack_atlas not found in /usr/local/lib
      libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
      libraries lapack_atlas not found in /usr/lib
      libraries ptf77blas,ptcblas,atlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_threads_info'>
      NOT AVAILABLE
    
    atlas_info:
      libraries lapack_atlas not found in /usr/local/lib
      libraries f77blas,cblas,atlas not found in /usr/local/lib
      libraries lapack_atlas not found in /usr/lib
      libraries f77blas,cblas,atlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_info'>
      NOT AVAILABLE
    
    lapack_info:
      libraries lapack not found in ['/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    lapack_src_info:
      NOT AVAILABLE
    
      NOT AVAILABLE
    
    numpy_linalg_lapack_lite:
      FOUND:
        language = c
        define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
    
    running dist_info
    running build_src
    build_src
    building py_modules sources
    creating build
    creating build/src.linux-x86_64-3.8
    creating build/src.linux-x86_64-3.8/numpy
    creating build/src.linux-x86_64-3.8/numpy/distutils
    building library "npymath" sources
    Could not locate executable gfortran
    Could not locate executable f95
    Could not locate executable ifort
    Could not locate executable ifc
    Could not locate executable lf95
    Could not locate executable pgfortran
    Could not locate executable nvfortran
    Could not locate executable f90
    Could not locate executable f77
    Could not locate executable fort
    Could not locate executable efort
    Could not locate executable efc
    Could not locate executable g77
    Could not locate executable g95
    Could not locate executable pathf95
    Could not locate executable nagfor
    Could not locate executable frt
    don't know how to compile Fortran code on platform 'posix'
    Running from numpy source directory.
    setup.py:485: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
      run_build = parse_setuppy_commands()
    /tmp/pip-install-pgas2zyk/numpy/numpy/distutils/system_info.py:1989: UserWarning:
        Optimized (vendor) Blas libraries are not found.
        Falls back to netlib Blas library which has worse performance.
        A better performance should be easily gained by switching
        Blas library.
      if self._calc_info(blas):
    /tmp/pip-install-pgas2zyk/numpy/numpy/distutils/system_info.py:1989: UserWarning:
        Blas (http://www.netlib.org/blas/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [blas]) or by setting
        the BLAS environment variable.
      if self._calc_info(blas):
    /tmp/pip-install-pgas2zyk/numpy/numpy/distutils/system_info.py:1989: UserWarning:
        Blas (http://www.netlib.org/blas/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [blas_src]) or by setting
        the BLAS_SRC environment variable.
      if self._calc_info(blas):
    /tmp/pip-install-pgas2zyk/numpy/numpy/distutils/system_info.py:1849: UserWarning:
        Lapack (http://www.netlib.org/lapack/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [lapack]) or by setting
        the LAPACK environment variable.
      return getattr(self, '_calc_info_{}'.format(name))()
    /tmp/pip-install-pgas2zyk/numpy/numpy/distutils/system_info.py:1849: UserWarning:
        Lapack (http://www.netlib.org/lapack/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [lapack_src]) or by setting
        the LAPACK_SRC environment variable.
      return getattr(self, '_calc_info_{}'.format(name))()
    /usr/local/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    Traceback (most recent call last):
      File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
        main()
      File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 133, in prepare_metadata_for_build_wheel
        return hook(metadata_directory, config_settings)
      File "/tmp/pip-build-env-us8uxf2i/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 157, in prepare_metadata_for_build_wheel
        self.run_setup()
      File "/tmp/pip-build-env-us8uxf2i/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 248, in run_setup
        super(_BuildMetaLegacyBackend,
      File "/tmp/pip-build-env-us8uxf2i/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 142, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 513, in <module>
        setup_package()
      File "setup.py", line 505, in setup_package
        setup(**metadata)
      File "/tmp/pip-install-pgas2zyk/numpy/numpy/distutils/core.py", line 169, in setup
        return old_setup(**new_attr)
      File "/tmp/pip-build-env-us8uxf2i/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 165, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/lib/python3.8/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/lib/python3.8/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-env-us8uxf2i/overlay/lib/python3.8/site-packages/setuptools/command/dist_info.py", line 31, in run
        egg_info.run()
      File "/tmp/pip-install-pgas2zyk/numpy/numpy/distutils/command/egg_info.py", line 24, in run
        self.run_command("build_src")
      File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/tmp/pip-install-pgas2zyk/numpy/numpy/distutils/command/build_src.py", line 144, in run
        self.build_sources()
      File "/tmp/pip-install-pgas2zyk/numpy/numpy/distutils/command/build_src.py", line 155, in build_sources
        self.build_library_sources(*libname_info)
      File "/tmp/pip-install-pgas2zyk/numpy/numpy/distutils/command/build_src.py", line 288, in build_library_sources
        sources = self.generate_sources(sources, (lib_name, build_info))
      File "/tmp/pip-install-pgas2zyk/numpy/numpy/distutils/command/build_src.py", line 378, in generate_sources
        source = func(extension, build_dir)
      File "numpy/core/setup.py", line 676, in get_mathlib_info
        raise RuntimeError("Broken toolchain: cannot link a simple C program")
    RuntimeError: Broken toolchain: cannot link a simple C program
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp3xrt62cm Check the logs for full command output.

1 post - 1 participant

Read full topic

Actions templates - Help request - can't get it running anymore

$
0
0

Hi there,

I’m struggling with getting my automations work as I would like to.
1st of all I can’t make it working anymore to increase/decrease color temp of my lights and I can’t recall what have I done to make it stop…

This is how I was trying to make it working:

service: light.turn_on
  target:
    entity_id: light.duze
  data:
    entity_id: light.duze
    color_temp: "{{states.light.duze.attributes.color_temp | int - 30}}"

While trying to make it running it gives back this error:

UndefinedError: 'mappingproxy object' has no attribute 'color_temp'

2nd part is with my Aqara Cube controlling my sun screen.
Aqara Cube’s values are degrees which goes beyond 100 and sun screen position is limited to 100.
How to limit my cover position to max 100% even when Aqara Cube’s degress are going above100?

My code right now:

service: cover.set_cover_position
data_template:
  entity_id: cover.ekran_sloneczny
  position: >-
    {% if trigger.payload_json.action_angle | int > 0 %} {{ 
    states.cover.ekran_sloneczny.attributes.position | int +
    (trigger.payload_json.action_angle | int) /2 }} {% else %} {{ 
    states.cover.ekran_sloneczny.attributes.position | int +
    (trigger.payload_json.action_angle | int) /2 }} {% endif %}  

Really appreciate any help!

1 post - 1 participant

Read full topic


SmartThings integration broke when upgrading to 2021.4.4

$
0
0

ST integration broken when I moved to 2021.4.4. Fortunately switching back to 2021.1.5 resolved it. Something has changed with the ST Integration?

Logger: homeassistant.setup
Source: helpers/network.py:123
First occurred: 3:21:03 PM (1 occurrences)
Last logged: 3:21:03 PM

Error during setup of component smartthings
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 241, in _async_setup_component
    result = await task
  File "/usr/src/homeassistant/homeassistant/components/smartthings/__init__.py", line 58, in async_setup
    await setup_smartapp_endpoint(hass)
  File "/usr/src/homeassistant/homeassistant/components/smartthings/smartapp.py", line 275, in setup_smartapp_endpoint
    else webhook.async_generate_url(hass, config[CONF_WEBHOOK_ID]),
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 60, in async_generate_url
    get_url(hass, prefer_external=True, allow_cloud=False),
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 83, in get_url
    request_host = _get_request_host()
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 123, in _get_request_host
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError

1 post - 1 participant

Read full topic

Ecolink PIR Device Found - No Motion or Tamper Sensor

$
0
0

Hello all,

I wonder if someone could assist me with a problem I’m having with my ZWave Motion Sensors. I am migrating from SmartThings to Home Assistant. I have a Nortek for ZWave and a Conbee for Zigbee. I had zero success with the Nortek and Zigbee. I tried for several days to get the Zigbee device configured using the “Zigbee Home Automation” Integration with no success. While the device would show in the Hardware list, ZHA would not see it. Using the dresden ConBee II and DConf, I have Zigbee devices working now. I’ve been concerned about the Nortek and Conbee both broadcasting frequency, but since I haven’t had any issues - Yet…

I’m currently trying to Exclude all of my ZWave devices from ST. First working on the Ecolink PIR Motion Sensors. The first three sensors worked without any issue. The forth/last one isn’t recognized the same and is missing the Motion and Tamper sensors. And yet, in the “Binary Sensor” dropdown for ID 10, the state changes to “true” when motion is sensed. I’ve not hit on any forum post that would move in the direction to resolve this. I don’t know where to go from here. Any guidance from your experience would be awesome.

Note: I had included several images but… new users can only post w/ one image

Installation:
Debian 10/Docker Supervised
core-2021.4.5

My list of sensors. ID 10 is the device giving me the issue.

Removed additional images in order to post

1 post - 1 participant

Read full topic

Error message Property use_blueprint is not allowed in Visual Studio Code

$
0
0

I created an automation from a blueprint and it works fine.
When editing the automations.yaml file in Visual Studio Code, it shows me a red background in the ‘use_blueprint’ lines, containing the error message ‘Property use_blueprint is not allowed’. It also complains about all the ‘alias:’ and ‘description:’ lines, as duplicate keys, probably because they appear in the other automations in the file.
Is there a way to properly configure Visual Studio Code so that it recognizes these parts of the automation?

1 post - 1 participant

Read full topic

Uncaught Error: Suspend promise not set

Z-Wave.js - can I replace raspberry pi and usb to serial?

$
0
0

I run Home Assistant in a HyperV VM. I have a zwave stick in a Raspberry Pi and at present am running a USB to serial connection between the two, so that the conventional zwave integration can see the stick via this serial connection.

It mostly works, occasional startup issues, but…

If I switch to zwave.js, can I simply run zwave.js on the Raspberry Pi (which does NOT have home assistant installed) and let it serve up the zwave data via the web service to/from the VM?

Has someone tried that?

Any pointers before I break everything to give it a try?

Linwood

1 post - 1 participant

Read full topic

Viewing all 107753 articles
Browse latest View live


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