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

Hue Dimmer Double Tap and Smooth Dimming

$
0
0

Hello,
I have currently a Hue Dimmer in my bedroom but since i have a new Lifx Strip i want to handle it via Home Assistant. I want a first tap to enable the led strip and a second tap to enable the hue bulb but how can i do this because i can only select a long tap en a single tap.
Also is there a way to keep the light dimming while the dim button is pressed?

Regards,
Kuno

1 post - 1 participant

Read full topic


How to detect offline devices

$
0
0

I have a number of door sensors which are Zigbee. I use ZHA. If I remove the battery from 1, it never reports it is offline. There is no information that the battery is dead, it just doesn’t report anything. Is there anyway to ping the network, or get an update from devices to make sure that there is no offline devices? It seems to do this when it restarts, but not under normal activity.

I am trying to figure out how to report when a device needs battery changed or checked up on for a security system, but it seems ZHA doesn’t care that a device is offline. Also, the batteries don’t report well, so I don’t want to use battery percentage.

Devices:
Iris 3320-L door sensors
Ecolink 4655BC0-R door sensors

1 post - 1 participant

Read full topic

Initial help to access sensors for newbie

$
0
0

I’m trying out Home Assistant for the first time, so a complete newbie, and can’t get my sensors to provide data.The overview page shows the Energy Meter sensor but the entities are in a red circle with “unavailable”, or in the case of the Temperature sensors, a “-” sign.
The more important one at the moment is the Energy Meter.
I’ve added to the configuration.yaml file:

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

default_config:

Text to speech

tts:

  • platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

Iammeter Energy Meter entry

sensor:

  • platform: iammeter
    host: b0:f8:93:2b:b6:d2
    name: Energy Meter

temp/humidity sensor entry

sensor:

  • platform: mitemp_bt
    mac: a4:C1:38:02:F1:6E
    name: Temp Humidity Sensor 1
    force_update: true
    median: 1
    monitored_conditions:
    • temperature
    • humidity
    • battery

And tried both the IP address and the mac address for the iammeter host, but both give the same “unavailable” state, see here for the States snapshot:

Am I doing (or not doing) something really obvious?

2 posts - 2 participants

Read full topic

Need host reboot for new z-wave devices to be recognized? (or old to be deleted)

$
0
0

using an Aeotec z-wave stick, I always need to reboot the host to add/delete devices after re-attaching the stock to the rPi. is this as designed? I would have hoped a mere refresh of the z-wave network would suffice, or a restart at most.

btw, I dont have zwave: in the configuration.yaml, only have installed the core integration

thanks for having a look

1 post - 1 participant

Read full topic

Emulated Hue errors

$
0
0

After updating to version 118.4 my Emulated Hue is no longer working. I am getting the following error in the log.

2020-12-01 11:30:48 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py”, line 422, in _handle_request
resp = await self._request_handler(request)
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py”, line 499, in _handle
resp = await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 126, in handle
result = handler(request, **request.match_info)
File “/usr/src/homeassistant/homeassistant/components/emulated_hue/hue_api.py”, line 215, in get
return self.json(create_list_of_entities(self.config, request))
File “/usr/src/homeassistant/homeassistant/components/emulated_hue/hue_api.py”, line 819, in create_list_of_entities
json_response[number] = entity_to_json(config, entity)
File “/usr/src/homeassistant/homeassistant/components/emulated_hue/hue_api.py”, line 701, in entity_to_json
state = get_entity_state(config, entity)
File “/usr/src/homeassistant/homeassistant/components/emulated_hue/hue_api.py”, line 612, in get_entity_state
data[STATE_BRIGHTNESS] = hass_to_hue_brightness(
File “/usr/src/homeassistant/homeassistant/components/emulated_hue/hue_api.py”, line 831, in hass_to_hue_brightness
return max(1, round((value / 255) * HUE_API_STATE_BRI_MAX))
TypeError: unsupported operand type(s) for /: ‘NoneType’ and ‘int’

Any suggestions? Thanks.

1 post - 1 participant

Read full topic

Always need a second save in the secrets file to pass config check?

$
0
0

whenever I add something in the config, that needs a new entry in the secrets.yaml file, (and after saving both the new configuration entry And the relevant section in secrets.yaml) I need to re-save that for it to be able to pass the config check.

No need to change anything, a mere re-save does the trick and allows for the HA system to restart.
before, there’s a config error in the notification tray.

is this to be expected?

1 post - 1 participant

Read full topic

Simplify automation

$
0
0

Hi,
I have three automations for my shutters.
When the roller shutter is closed and the window is tilted, the roller shutter moves to POS 15.
If the window is now closed again, the roller shutter goes down completely.
So far so good … it works wonderfully.
But I have such an automation for each of my roller shutter / window combinations.
Is it possible to summarize and simplify that?

- id: '1606840461286'
  alias: cover close tilt @ window (Ki_Windows) close
  description: ''
  trigger:
  - platform: state
    entity_id: binary_sensor.ki_fenster2_state
    to: 'off'
    from: 'on'
  condition:
  - condition: numeric_state
    entity_id: cover.ki_rollo
    attribute: current_position
    above: '9'
    below: '16'
  action:
  - service: cover.close_cover
    data: {}
    entity_id: cover.ki_rollo
  mode: single
- id: '1606840522874'
  alias: cover open tilt @ window  (Ki_Fenster) open
  description: ''
  trigger:
  - platform: state
    entity_id: binary_sensor.ki_fenster2_state
    to: 'on'
    from: 'off'
  condition:
  - condition: state
    entity_id: cover.ki_rollo
    state: closed
  action:
  - service: cover.set_cover_position
    data:
      entity_id: cover.ki_rollo
      position: 15
  mode: single

any ideas?
best regards, Dominik

1 post - 1 participant

Read full topic

Missing zwcfg_....xml file

$
0
0

Hi
Looking for help as I read a lot here and there and tried many things over the last 3 weeks without success.

Target
I’m migrating my fully operational Zwave network operated under Jeedom towards HA.
I want to handle automations triggered from zwave peripherals in NodeRed.
In particular, I need to be able to read the scene_data so i can define which type of press occured on the ZRC-90.

My config
RPI3
HassOS 4.17

Achievements so far
It took me some time to figure out that there are several ways to run Zwave (native Zwave / openzwave beta / zwave to mqtt).
I tried the 2 first ones and got it working up to a certain level:

  • USB stick well recognize
  • remotec ZRC-90 and Fibaro motion sensor added and reporting well to HA. With OpenZwave, I can even see the scene data (1 press, 2 press, key hold and key released).
    When I tail -f the OZW_log.txt logfile, I can see the node_id of each zwave device and I see activity when I press a button or shake the motion sensor…

What I fail to achieve
in order to get the scene_data from ZRC-90, I followed these instructions: https://www.home-assistant.io/docs/z-wave/device-specific/#remotec-zrc-90-scene-master
I therefore wanted to edit the zwcfg_xxx.xml file, but I can’t find it in /config, nor in any other folder.

Strangely enough, in my very first attempts, I was able to see the file and edit it. But for some reason, I decided to re-install HA and since then I can’t see the file anymore. I re-installed several times HA but without success, including testing older versions of HA…

I’m running out of ideas. If someone does, I will be grateful …

thanks

1 post - 1 participant

Read full topic


How to connect to my arkteos/ajtech heat pump

$
0
0

Hi,

I would like to integrate my heat pump to HA.
It is an Arkteos Zuran 3. Based on external module Mitshubishi, and an AJtech internal module.
2 zones controlled by 2 RF thermostats.
I got a web monitoring through ethernet.But it is Java app.
I got an private IP address with 3 ports (http, IHM, Applet).
But I cannot read anything.

I am looking for how to integrate data (sensor, climate) to HA.
I do not find anything on docs, or on Google about it, except ajtech and jeedom on the Jeedom forum…
But it does not help me.

1 post - 1 participant

Read full topic

Tts.google_translate_say service doesn't work

$
0
0

Hi everyone,

Since a while the “tts.google_translate_say” no longer works for me. It always used to work fine, but at a certain moment it just stopped working and I have no idea why. I got the following in my config:

tts:
  - platform: google_translate
    language: 'nl'

And this is what I do:


entity_id: media_player.nest_woonkamer
message: Test

Or in a automation:

  action:
  - data:
      entity_id: media_player.nest_woonkamer
      message: Test
    service: tts.google_translate_say

I got 3 Google devices, and they all behave the same.

What I see is the following: When I fire the service, I see the entity in Home Assistant switching from “off” to “idle”. Also I see the media_content_id, and if I copy that address in the browser the sound file is good. In some way that would suggest that the problem isn’t within Home Assistant… but the fact that I experience this on all my Google devices, and that is suddently stopped working makes me think it does…

So I’m not sure what to do here. Any ideas?

1 post - 1 participant

Read full topic

Alexa Integration Password Reset Page Issue

$
0
0

I am having an issue with Alexa Integration. I am trying to log in and add it and getting the following error. It is important to note I have had this working for years. I needed to delete it recently to work out some issues I was having with a different part of the alexa integration.

image

1 post - 1 participant

Read full topic

How to describe "when crossing a value" in an automation

$
0
0

I would like to automate some lights when the luminosity in the room crosses a certain threshold (say, 30 lux).

By “crosses” I mean that the trigger would be the fact that the luminosity was < 30 lux, and then becomes > 30 lux. I do not want to continuously switch on the lights when it is > 30 lux because someone may have decided they want to have the lights switched off (and switch them off after the automation switched them on). If the condition was simply > 30 lux, then the lights would get back on in the next cycle check.

What kind of trigger should I look at to do this?

2 posts - 2 participants

Read full topic

Markdown formatting (bold) not working

$
0
0

I have this code that returns some descriptive text from my weather sensors. I have it set so that the temperature values are in bold using ** and it used to work fine. I just noticed yesterday that the temps are no longer in bold but that the ** are showing in the card. Did something change that I missed? I am on 118.3 if that matters.

content: >-
  <font size="3">{{ states('sensor.dark_sky_summary_0d') }}  The high is **{{ states('sensor.dark_sky_daytime_high_temperature_0d') | round(0) }}&deg;**
  with an overnight low of **{{ states('sensor.dark_sky_overnight_low_temperature_0d') | round(0) }}&deg;** 
  and a **{{ states('sensor.dark_sky_precip_probability_0d') | round(0) }}%** chance of {% if is_state('sensor.dark_sky_precip_0d', "unknown") %} precipitation{% else %} 
  {{ states('sensor.dark_sky_precip_0d') }}{% endif %}.</font>
type: markdown

Showing as:

image

1 post - 1 participant

Read full topic

Change text in my language file

$
0
0

Hello! i wanna change some text for my language…
My HA is installed on rpi3 Raspbian.

Someone could point me in the right direction???

Thanks a lot

1 post - 1 participant

Read full topic

Zha sonoff cc2531

$
0
0

Hello,

I purchased a pre-flashed sonoff cc2531 dongle that I installed on my raspberry pi hosting home assistant.
I have successfully installed the zha integration and am trying to pair an AQARA zigbee but here is the LOG:
Ignoring message (b’18030a00001801’) on cluster 1030: unknown endpoint or cluster id: 1
Ignoring message (b’18040a00001801’) on cluster 1030: unknown endpoint or cluster id: 1
Device 0x1c24 (00:15:8d:00:04:7d:93:a6) left the network
Device 0xdd84 (00:15:8d:00:04:7d:93:a6) joined the network
Device 00:15:8d:00:04:7d:93:a6 changed id (0x1c24 => 0xdd84)
[0xdd84] Requesting ‘Node Descriptor’
Tries remaining: 2
[0xdd84] Extending timeout for 0x0a request
[0xdd84:zdo] ZDO request ZDOCmd.Device_annce: [0xDD84, 00:15:8d:00:04:7d:93:a6, 128]
Ignoring message (b’18000a050042126c756d692e73656e736f725f6d6f74696f6e’) on cluster 0: unknown endpoint or cluster id: 1
Ignoring message (b’18010a0100200b’) on cluster 0: unknown endpoint or cluster id: 1
Ignoring message (b’1c3412020a02ff4c0600100121ef0b21a8012400000000002113002068’) on cluster 0: unknown endpoint or cluster id: 1
Tries remaining: 1
[0xdd84] Extending timeout for 0x0b request
[0xdd84] Requesting Node Descriptor failed
[0xdd84] Discovering endpoints
Tries remaining: 3
[0xdd84] Extending timeout for 0x0c request
Tries remaining: 2
[0xdd84] Extending timeout for 0x0d request
Tries remaining: 1
[0xdd84] Extending timeout for 0x0e request
[0xdd84] Failed to discover active endpoints

What’s wrong to discover my sensor ?

Thank you

1 post - 1 participant

Read full topic


Automation help: time_pattern trigger for multiple hours and minutes

$
0
0

Hey there,

It’s me again with a weird / complex automation/trigger question :wink:

I’m trying to get one or two automations done that will control my X-Mas lights on the balcony. To not blind my neighbors and make them get epileptic attacks, I want to enable an effect every 10 minutes and let it run for just 5 minutes. So I was planning to have two automations:

  • One that sets an effect every 10 minutes
  • One that resets it to a solid color / disables the effect
  • Aaaaand both of these only between 6 and 10pm

So I found the time_pattern platform and thought that would be it. As somebody who’s used to write crontab entries in his past, that sounded like it.
If the time_pattern would work as I expected it to work (== like crontab), there are basically two solutions to my requirement:

  1. Have two automations: One running every 10 minutes that sets an effect and one every 5 minutes that disables any effect. But the issue here is, that I can’t guarantee the execution order, so the activate might run first and a second after the deactivate automation. So I thought solution two is more suitable:
  2. Again two automations: One runs at minute 0, 15, 30, 45 to activate an effect and one that runs at minutes 5, 20, 35, 50 to deactivate any effect. This would work perfectly.

Of course, both would also have a condition to run only between 6 and 10pm. Somehow.

Unfortunately, all my attempts fail to use the time_pattern platform. My first try was this:

trigger:
- platform: time_pattern
  hours: [18,19,20,21,22]
  minutes: [0,15,30,45]

This is not throwing any error and I can successfully reload the automations. But it doesn’t work. It’s doing something “random”. Maybe it’s just executing the last working state of that automation. I actually don’t know. But it’s not doing what I expected it to do.
I also tried specifying it as a comma separated string, but that even results in an error when trying to reload the automation.
So despite it being “hours” and “minutes” (plural!), it seems to only accept a single minute or hour!?

Also, is it even possible to specify both “hours” and “minutes” in the same trigger? Or do I need to specify two triggers with an “and”?

I know, that there are probably other ways to solve this with weird template triggers (found something close to that I want to do in the forums already) or maybe even combining the time_pattern trigger with one or more conditions and probably also here template comparisons…

I’m just wondering what the limits of the time_pattern trigger are and if somebody managed to do something more complex than just a single minute/hour or using the “/x” pattern. The docs are not that helpful, as they don’t give too many examples: https://www.home-assistant.io/docs/automation/trigger/#time-pattern-trigger

Or maybe somebody even has an automation that does something similar to what I want to do :wink:

Thanks and greetings,

Andy!

1 post - 1 participant

Read full topic

Could not connect to the Telldus Service (-6) on Home Assistant on Docker

$
0
0

(I know there are alot of topics around this subject, but I can’t find any with my preconditions.)

I am running Home Assistans on Docker, on an Ubuntu 20 machine and am trying to configure my old Tellstick Duo. I have the Tellstick running on my host after custom building it (as the official build is outdated for latest versions of Ubuntu) and it’s working fine on the host.

However, when trying to install it into my Home Assistant docker I get the error: “Could not connect to the Telldus Service (-6)”.

How can I make Home Assistant use my custom build of the Tellstick tools? Or is it just a configuration error on my part? I’m not proficient enough on Docker…

Error during setup of component tellstick
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
    result = await task
  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/tellstick/__init__.py", line 112, in setup
    tellcore_devices = tellcore_lib.devices()
  File "/usr/local/lib/python3.8/site-packages/tellcore/telldus.py", line 173, in devices
    count = self.lib.tdGetNumberOfDevices()
  File "/usr/local/lib/python3.8/site-packages/tellcore/library.py", line 257, in check_int_result
    raise TelldusError(result)
tellcore.library.TelldusError: Could not connect to the Telldus Service (-6)

My docker-compose.yml reads:

version: '3'
services:
  homeassistant:
    container_name: home-assistant
    image: homeassistant/home-assistant:stable
    volumes:
      - ~/homeassistant-config:/config
      - /etc/tellstick.conf:/etc/tellstick.conf
    devices:
      - /dev/bus/usb:/dev/bus/usb
    restart: always
    network_mode: host
    privileged: true

My homeassistant/configuration.yaml reads:

tellstick:
  signal_repetitions: 3

From what I gather that should be enought for the Tellstick Duo(?)

1 post - 1 participant

Read full topic

Homeassistant.check_config service: show result?

$
0
0

Hi there.
I’m in the process of building myself an admin panel that has all the actions I frequently use but that I’m too lazy to access through the UI (e.g. Restart/Reboot, etc).
Now I’m calling the “homeassistant.check_config” service to quickly check my config. But unfortunately, I can’t seem to find a way to show the actual result. Having the button turn green or red would be enough, or one could also get a popup or have a message appear on screen. But how do I get the output from the service? Maybe I can configure the logger to also log the output from that function and then have it trigger an event that I can use? But then, I can’t seem to find the appropriate component to activate logging for. Does anyone know either the correct component/namespace for the logger or another appropriate way to show the result?

1 post - 1 participant

Read full topic

How can I use automation to set attribute value of thermostat

$
0
0

I want to use an automation to set the attribute of a thermostat to make it orange in lovelace.

One of my thermostats is a Heatit Z-trm 3 which support COMMAND_CLASS_THERMOSTAT_OPERATING_STATE, and it changes icon color to orange when it is on in lovelace.

However, my second Heatit thermostat is a bit older, Z-trm2fx, and does not have the command class COMMAND_CLASS_THERMOSTAT_OPERATING_STATE, and does not change color automatically. I therefore wanted to make an automation for this purpose.

Can anyone help with the service to set the attribute? And help me with the code?

Pseudo code:
If switch.bathroom_thermostat goes from off to on
Then set attribute of climate.bathroom_thermostat, ‘hvac_action: heating’

If switch.bathroom_thermostat goes from on to off
Then set attribute of climate.bathroom_thermostat, ‘hvac_action: idle’

1 post - 1 participant

Read full topic

Read data from a packet

$
0
0

I have a IDlock150 lock which reports if the door is open or closed. I can find the right values in byte 6 (0x01) but in none of the zwave methods of getting data (zwave, zwave beta and zwavetomqtt) i cant pick up that particular byte. How do i fix this?

OpenZWave Detail, Node006, Decrypted Packet: 0x00, 0x62, 0x03, 0xff, 0x00, 0x01, 0xfe, 0xfe

1 post - 1 participant

Read full topic

Viewing all 106269 articles
Browse latest View live


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