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

MQTT cant automate entity

$
0
0

MQTT discovers switches i populate into it, from a raspberry pi via node-red.

From Lovelace i can turn the switch on and off ok.

When i create an automation though i cant select the switch as a device and don’t know how to turn it on and off, i tried setting the entity state to on, but that didn’t work.

Ideas?

1 post - 1 participant

Read full topic


MQTT switch set value when offline

$
0
0

Hello community,

this is my first post, so please appologise me, if i made something wrong :wink:

i’m searching for a solution to toggle a MQTT (to be more detailed a Tasmota relay) device to “off” or “on” even when they are offline.

Background:
The MQTT device will be powered by a ordonary lightswitch and will be powered off in the evening and powered on every morning. I have automations to switch this Tasmota switch to Off/On by several conditions whitch can happen even when the Switch is offline and should happen when the Switch becomes online again.

Example:
the Tasmota relay is “on” and will be powered off by the lightswitch. Meanwhile the Tasmota is offline, the condition changes and the automation should change him to “off”. When power comes back the Tasmota should change to “off”. Normally the last state (on/off) of the Relay will be set when the Tasmota gets power again.

Is there any simle solution for this?

Thanks and greetings from Germany!

Joerg

1 post - 1 participant

Read full topic

Time taken to reach target temperature

$
0
0

I’d like to measure the time taken for a temperature sensor to reach a particular value, hoping that I’d be able to cleverly turn the heating on and it would be warm for when we get out of bed, or return home for example.

So far searches have been fruitless, and before I go down the route of Python I wanted to see if anyone has been able to achieve this natively with HASS. Thanks for any tips!

3 posts - 2 participants

Read full topic

Climate with mqtt - case sensitive modes

$
0
0

Hi. I’m trying to integrate a zwave eurotronic trv actually part of a zwave controller that publish on mqtt broker.
I configured the climate in that way:

climate:
  - platform: mqtt
    name: radiatore asia
    modes: 
      - "auto"
      - "heat"
      - "off"
    temperature_command_topic: zipato/zipabox/request/attributes/af304b23-d8c0-4fd6-b08e-db83568beeeb/textValue
    temperature_state_topic: zipato/zipabox/attributes/af304b23-d8c0-4fd6-b08e-db83568beeeb/value
    temperature_state_template: "{{value_json.value}}"
    temp_step: 0.1
    mode_state_topic: zipato/zipabox/attributes/59e5d4bb-7f4e-4c10-b403-10dc1780b8f5/value
    mode_command_topic: zipato/zipabox/request/attributes/59e5d4bb-7f4e-4c10-b403-10dc1780b8f5/textValue
    mode_state_template: >-
      {% set values = { 'AUTO':'auto', 'HEAT':'heat', 'OFF':'off'} %}
      {{ values[value] if value in values.keys() else 'off' }}
    current_temperature_topic: zipato/zipabox/attributes/90392298-595f-4030-9e58-7b2dda812d04/value
    current_temperature_template: "{{value_json.value}}"
    value_template: "{{value_json.value}}"

Unfortunately if I publish the mode listed in the config, I have no reaction from the controller and valve.
Publishing manually in uppercase from dev tools works… so to get it works I have to send the mode value in the mode_command_topic in uppercase… but: it’s possibile? how to do it?

1 post - 1 participant

Read full topic

Trying to display Sonos album art from a sensor

$
0
0

I’m creating an interface completely based on Picture Element Cards and one of my pages is a custom layout for music control. I want to display the album art for the current song playing on Sonos and I feel like I’m SO CLOSE but don’t know how to finish…

I created a sensor (two of them actually, just to be sure I was doing this right) to grab the url of the art:

- platform: template
  sensors:
    album_art:
      friendly_name: "Album Art"
      value_template: "http://192.168.2.98:8123{{ state_attr('media_player.tv_room_sonos', 'entity_picture') }}.jpg"

- platform: template
  sensors:
    sonos_art:
      friendly_name: "Sonos Art"
      value_template: "{{ state_attr('media_player.tv_room_sonos', 'entity_picture') }}"

So now I have two sensors: sensor.sonos_art and sensor.album_art and either will return a path like this:
/api/media_player_proxy/media_player.tv_room_sonos?token=e0159aa4d5be2e848cdd1dfbde076eb2435fc1b146eea24d6a4ee4f21e1bf129&cache=eb2f5a426813b506

But how do I use that sensor to show the image in my Picture Elements Card?

If I just paste the path from the sensors above, it displays the image - so I know that the path works - but I need it to update with the media player. Below is the code that works with just the path.

What do I need to put in the image line to pull from one of the sensors I created?

      - type: picture-elements
        elements:
          - image: /api/media_player_proxy/media_player.tv_room_sonos?token=e0159aa4d5be2e848cdd1dfbde076eb2435fc1b146eea24d6a4ee4f21e1bf129&cache=eb2f5a426813b506
            style:
              left: 50.1%
              top: 40.3%
              width: 24%
            # tap_action: none
            type: image

1 post - 1 participant

Read full topic

Aeotec Wallmote Quad ZW130 help

$
0
0

Hi all,

I’ve purchased a Wallmote quad, and looking through the other threads seemed fairly straight forward to setup in HA, however, does not seem to be the case.

I’ve added it to the network, and it showed as complete, and as per the instruction here I updated the config after shutting down HA.
Now in the config, the device is stuck as Initilizing, see the image


And this in the log:
2020-10-25 13:16:32.842 Detail, Node003, Queuing (WakeUp) SwitchBinaryCmd_Set (Node=3): 0x01, 0x0a, 0x00, 0x13, 0x03, 0x03, 0x25, 0x01, 0xff, 0x25, 0x0c, 0x14
2020-10-25 13:16:32.842 Info, Node003, SwitchBinaryCmd_Get Not Supported on this node
2020-10-25 13:17:17.005 Detail, Node003, AdvanceQueries queryPending=0 queryRetries=0 queryStage=ProtocolInfo live=1
2020-10-25 13:17:17.005 Detail, Node003, QueryStage_Probe
2020-10-25 13:17:17.005 Info, Node003, NoOperation::Set - Routing=true
2020-10-25 13:17:17.005 Detail,
2020-10-25 13:17:17.005 Detail, Node003, Queuing (WakeUp) NoOperation_Set (Node=3): 0x01, 0x09, 0x00, 0x13, 0x03, 0x02, 0x00, 0x00, 0x25, 0x0d, 0xcc
2020-10-25 13:17:17.005 Info,
2020-10-25 13:17:17.005 Detail, Node003, Queuing (WakeUp) Query Stage Complete (Probe)

Not sure what to do here, I’ve tried starting and stopping the Z-Wave network, restarting HA and nothing.

I seem unable to set any of the configuration values, but button presses do appear to register:

2020-10-25 13:23:07.818 Info, Node003, Received Central Scene set from node 3: scene id=1 in 0 seconds. Sending event notification.
2020-10-25 13:23:07.818 Detail, Node003, Refreshed Value: old value=0, new value=0, type=int
2020-10-25 13:23:07.818 Detail, Node003, Changes to this value are not verified
2020-10-25 13:23:07.818 Detail, Node003, Notification: ValueChanged

Any ideas what to do next?

1 post - 1 participant

Read full topic

RS232 Alarm Keypad

$
0
0

Greetings All,
I have a Alarm System that has a RS232 interface board that replicates everything you would see and use on a fully functional keypad. For example, you could connect this device to HyperTerminal and see all the LCD text that you’d expect to see on a normal LCD keypad.
The standard physical keypad has 2 lines of 16 characters that scroll through the menus.
In all it has 20 buttons on the keypad and a LCD with 2 lines of text, all which can be emulated in a serial console. (HyperTerminal, Putty etc)
What integration should I be looking at to attempt to link a USB RS232 on a Pi to my Interface Board to get a fully functioning replication of my Alarm Keypad?

1 post - 1 participant

Read full topic

Light.turn_on service no longer working

$
0
0

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

1 post - 1 participant

Read full topic


When to add to config.yaml or sensor.yaml?

$
0
0

I’m still playing around with things am I’m starting to get the hang of things,but I do have a question. I’ve created a template so I can see the battery level of the Wyze sensors,so I figured it goes into the sensor.yaml. I put it there and it didn’t work. I put the file in the configuration.yaml under a sensor I had already and it worked. Are there certain times that the template goes into one or another? If I missed that info,sorry for that. My config looks like this…

  • platform: template
    sensors:
    laundry_motion_battery:
    friendly_name: ‘Laundry Motion Battery’
    value_template: ‘{{ state_attr(“binary_sensor.wyzesense_77a5d940”,“battery_level”) }}’
    unit_of_measurement: ‘%’

1 post - 1 participant

Read full topic

Live Camera Feed Issue

$
0
0

So I’ve just set up my Nest cameras using the new API and overall it seems to work really well, what I don’t understand though is the following

This works standalone:

  - camera_image: camera.nest_hello
    camera_view: live
    entity: camera.nest_hello
    type: picture-entity

But this does not work as part of a picture elements card:

  - camera_image: camera.nest_hello
    camera_view: live
    entity: camera.nest_hello
    type: image

Any ideas?

1 post - 1 participant

Read full topic

HAAS Docker Hierarchy

$
0
0

I am planning to install HomeAssistant to my OMV NAS where i run all my HA related applications as dockers, including a centralised database MySQL. Based on some comments i’ve seen in this forum, it is my understanding that HaasIO is just another docker and when we add a plugin through HaasIO, it spin up new docker containers. I am trying to understand the Hierarchy of these docker containers and am wondering if these HaasIO plugins that are running as dockers on my NAS will be able to communicate with the other dockers managed my my openmediavault application or not? Also, will the kubernatics running on OMV would be able to manage these HaasIO plugins or not ? I will probably start testing this myself in few days time but thought I will pose the question here first in case someone has already tried this setup.

1 post - 1 participant

Read full topic

Telegram stopped working recently?

$
0
0

Telegram was working great until a few weeks ago. Now Hassio won’t send any messages. My other applications using the same telegram account are still sending messages. Has anyone else had problems recently? Here’s my config:

telegram_bot:
  - platform: polling
    api_key: [APIKEY]
    allowed_chat_ids:
      - [CHATID]

notify:
  - name: telegram_notify
    platform: telegram
    chat_id: [CHATID]

alert:
  doors:
    name: Door Open
    entity_id: group.doors
    state: 'open'
    repeat: 
     - 5
     - 30
    skip_first: True
    notifiers: 
      - telegram_notify

The only telegram error I’ve found in the logs is this:
Logger: telegram.vendor.ptb_urllib3.urllib3.connectionpool
Source: /usr/local/lib/python3.8/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py:689
First occurred: 4:15:44 AM (24 occurrences)
Last logged: 4:45:57 AM

Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connectionpool.HTTPSConnectionPool object at 0x6a9245c8>, 'Connect timed out. (connect timeout=5.0)')': /bot1028239664:AAEdBkJw7658XokHliHkK4sMlY_Mojmz6ko/getUpdates
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connectionpool.HTTPSConnectionPool object at 0x6a9245c8>, 'Connect timed out. (connect timeout=5.0)')': /bot1028239664:AAEdBkJw7658XokHliHkK4sMlY_Mojmz6ko/getUpdates
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connectionpool.HTTPSConnectionPool object at 0x6a9245c8>, 'Connect timed out. (connect timeout=5.0)')': /bot1028239664:AAEdBkJw7658XokHliHkK4sMlY_Mojmz6ko/getUpdates

1 post - 1 participant

Read full topic

One Z-wave device timeouts when sending lots of messages in a small timespan

$
0
0

Hello,

Every time I’m sending lots of commands at once (for example turning multiple lights at once on or just turning single light on or off very fast), there is a high chance one of the devices will throw Dropping command, expected response not received after 1 attempt(s). error. And since it seems like Z-wave network can only handle one command at a time, this error consequently completely backs up the network (I can’t turn on any lights until this timeout is resolved).

  • Controller is Aeotec Stick Gen 5 that is roughly in the center of the apartment. Stick is plugged into repurposed PC running Linux and hass/openzwave-qt via Docker (directly, no supervisor).
  • I have pretty small apartment (No device is more than 6m and 2 walls away from the Z-stick)
  • Network works perfectly well when sending commands one at a time (instant responses)
  • All devices are latest gen Aeotec and Fibaro devices (so all have Z-wave plus and presumably have best available Z-wave chips?)
  • All devices are paired as non-secure (pairing them securely exacerbates the issue since even more packets have to be sent)
  • There is fairly big density of various mains devices throughout the apartment (so all messages are bouncing between multiple devices, for better or for worse)
  • This happened with both old Z-wave integration and new beta ozw integration.

Is this just the reality of the Z-wave protocol or it’s something wrong with my network?

Thanks.

1 post - 1 participant

Read full topic

Recorder problems with MariaDB

$
0
0

Hi all,

Didn’t find a lot of time to bring my HA projects forward lately and check in here often. However I want to change that again :slight_smile: and already have a problem I would like to ask you for support about.

To eliminate the need to change my SD card in regular intervals, I started the MariaDB that is integrated on my QNAP NAS and configured the recorder to use it. It seemed to work fine, however after a while it stopped working. I checked on the SQL server and it told me that the host was banned because of too many connection errors. Of course I can raise that limit on the SQL server to an insane high number, but it will still drop out when it reaches that number.

Are there any known problems with recorder / MariaDB ? If so, is there a fix? Should I maybe install another database server? Which one would be recommended?

1 post - 1 participant

Read full topic

Help to create 2 templates or sensors - I don't know how to start

$
0
0

Hi
I need to create 2 sensors or templates not sure yet.
The first one is regarding my hot water temperature sensor. = sensor.temperature_purifier
Right now is at 65.
I need to make a trigger when its temperature raise to 66 for example.(template or sensor?)
I only need to triiger once when and if it’s value raised.
Either way I don’t know how to start.

The second one I find it even more difficult.
I have a start point at 21 of December. Its value is 133,44. I want each day to add 0.25 so 22 Dec = 133,69 and so on. From 21 of June I would like to the value of 20th of June to reduce for 0.25 and keep reducing for 0.25 until the 21 of December.

This I guess should be a sensor (I?) in order to compare it with sun azimuth.

My problem is as I mention that I don’t know how to begin. If someone can give me an example it would be very helpful.

2 posts - 2 participants

Read full topic


Unreliable Hue Scenes/Commands

$
0
0

Hi all! I’ve noticed recently that issuing commands to activate Hue scenes has become increasingly unreliable.

Sometimes single bulbs don’t change colors, don’t adjust to the correct brightness, or even turn on/off. Most of the automations I’m using are driven through NodeRED and I’ve got about 40 bulbs connected to the Hue Hub.

Any thoughts on what to check? Thanks!

1 post - 1 participant

Read full topic

Imported IKEA group will not work with color temp

$
0
0

To solve some communication issues with larger light groups I turned on this feature to make use of the groups defined in the IKEA app:

tradfri:
  host: 192.168.x.y
  allow_tradfri_groups: true

After a reboot of HA/reconfigure IKEA integration the groups are discovered. However the only options available is to turn them on/off and set the brightness.

I can’t set the color temperature!

The groups only exist of the same lamp type that do have this capability. It is working via the IKEA app or using HA light groups. (Only the last one I want to avoid because of the communication issues with larger groups)

In developer tools the imported IKEA group is reporting for supported featured: 33, all lamps that are part of this group have 35.

Any idea how to set the color temp to imported Ikea lamp groups?

1 post - 1 participant

Read full topic

Google calendar event not working 2

$
0
0

Hello, I’m new to home assistant and I’d like to use google calendar event in automation, but it doesn’t work. I added google calendar to home assistant, but my automation doesn’t work. I have a calendar named “bojler” and there 2 events on the calendar (not on the same day). One of the events called “Fürdés” and the other “Hajmosás”. (Fürdés event start at 06:00 and ends at 08:40), and (Hajmosás start at 06:00 and ends at 09:40).


So basically I’d like to automate that when Fürdés event starts (at 06:00) based on calendar.bojler then turn on bojler(smart plug) and turn off after 2 hour 30 minutes.
The other “Hajmosás” is the same only difference it turns off after 3 hour 30 minutes.

I created 2 automation based on: https://www.home-assistant.io/integrations/calendar.google/
and it should activate Hajmosás because it’s in the calendar today, but it didn’t turned on bojler.

Fürdés automation:

- id: '1603527524327'
alias: Fürdés
description: Fürdéshez bekapcsolja a bojlert
trigger:
- platform: state
entity_id: calendar.bojler
to: ‘on’
condition:
- condition: template
value_template: ‘"{{is_state_attr(’‘calendar.bojler’’, ‘‘message’’, ‘‘Fürdés’’)
}}"’
action:
- type: turn_on
device_id: 3ead97ef12eb11eb92ddf31d451c055e
entity_id: switch.80820452bcddc226a269
domain: switch
- delay: 02:40:00
- type: turn_off
device_id: 3ead97ef12eb11eb92ddf31d451c055e
entity_id: switch.80820452bcddc226a269
domain: switch
mode: single

Hajmosás automation

- id: '1603527704795'
alias: Hajmosás
description: Hajmosáshoz bekapcsolja a bojlert
trigger:
- platform: state
entity_id: calendar.bojler
to: ‘on’
condition:
- condition: template
value_template: ‘"{{is_state_attr(’‘calendar.bojler’’, ‘‘message’’, ‘‘Hajmosás’’)
}}"’
action:
- type: turn_on
device_id: 3ead97ef12eb11eb92ddf31d451c055e
entity_id: switch.80820452bcddc226a269
domain: switch
- delay: 03:40:00
- type: turn_off
device_id: 3ead97ef12eb11eb92ddf31d451c055e
entity_id: switch.80820452bcddc226a269
domain: switch
mode: single!

1 post - 1 participant

Read full topic

Can't add my Huawei Router to HA for geofence

$
0
0

Hello HA-community,

What I really want to set up is a good geofencing for automations. I have tried “owntracker” but there is a big time difference between leaving and arriving home. So it ain’t reliable. I have read that you can add your router, when you leaving home you are not longer connected to router so HA thinks your are not at home. But my problem is that I can’t add my Huawei router. I tried several options from internet like this yaml:

device_tracker:
  - platform: huawei_router
    host: 192.168.1.1
    username: secret
    password: secret
    new_device_defaults:
      track_new_devices: true

This yaml won’t work, so I tried to replace “huawei_router” to “huawei_lte” with this I get the following error:
" Invalid config The following integrations and platforms could not be set up:

Who can help me with a good solution for my router or a good geofence idea.
All my phones have a “device_tarcker_…” but there is also a time difference.

I have hassio 4.15 on RPI 4 version 0.116.4

Thanks in advance.

Your sincerely
Bas

1 post - 1 participant

Read full topic

Multiple Actions with different delays in one Automation

$
0
0

Hi all,

I would like to model the following:

I have a motion sensor in the bathroom and would like ONE automation to do the following:

If no motion is detected:

  • turn off the lights after 5min
  • turn off the fan after 20min

It seems like the delay function I can use in the actions block is a root level element and therefore it gets applied to all actions which are defined? Or is this just a limitation of the UI that it gets rendered this way? But looking at the documentation (https://www.home-assistant.io/docs/scripts/#delay) it also looks like it is a root level element…

Thanks in advance,

Andreas

2 posts - 2 participants

Read full topic

Viewing all 106040 articles
Browse latest View live


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