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

Playing a url via nestmini

$
0
0

Hi,

If I pass a url via homeassistant to my nest mini it takes around 20-30 seconds for nest mini to start the stream. Whereas if I directly play that url via browser or vlc it plays instantly.

How do I fix this ? Kindly guide.

Below is how I am using it.

  • service: media_player.play_media
    data:
    media_content_id: https://myurl
    media_content_type: music
    target:
    entity_id: media_player.nestmini

1 post - 1 participant

Read full topic


Send notifications on all available updates

$
0
0

Hi there

So, the updater is deprecated, but we have the new update class. Amazing, but:

automation:
  - alias: "Send notification when update available"
    trigger:
      platform: state
      entity_id: update.my_light_bulb
      to: "on"
    action:
      alias: "Send notification to my phone about the update"
      service: notify.iphone
      data:
        title: "New update available"
        message: "New update available for my_light_bulb!"

Source: Update - Home Assistant
So this sends a notification for updates on a specific integration.
What about a generic solution?

automation:
  - alias: "Send notification when update available"
    trigger:
      platform: state
      entity_id: update.* #here, all update entities!
      to: "on"
    action:
      alias: "Send notification to my phone about the update"
      service: notify.iphone
      data:
        title: "New update available"
        message:  "{{ trigger.to_state.name | default('trigger is not defined') }} has updates! "

I know, I’ve created something earlier, but TBH, I forgot how to template that. Could one help out?

1 post - 1 participant

Read full topic

Gardena integration via HACS not working properly

$
0
0

Hi,
i cannot login into my gardena Smart System.
I am able to enter email, password and API Key, it takes it and then just resets the form.
Installed Gardena Smart System 0.2.5b4 via HACS, API is set via gardena Developers.
Thanks for the help.

1 post - 1 participant

Read full topic

Getting data from MQTT JSON message

$
0
0

Hi! I’m using Telegraf to create MQTT messages from Ubuntu to HASS Mosquito MQTT broker. I do this to get, amongst other things, hard drive temperatures.

The path is telegraf/my_home_server/hddtemp. It works nicely, but the JSON is for a single disk, where the device name (in this example “sdd”) is inside the JSON:

{"fields":{"temperature":0},"name":"hddtemp","tags":{"device":"sdd","host":"my_hist_name","model":"TOSHIBA MG07ACA14TE","source":"127.0.0.1","status":"SLP","unit":"*"},"timestamp":1651054380}

I get one such JSON message for each disk. I use the configuration below, but it will obviously get the temperature of each disk, and assign them one by one to the same entity, instead of getting one entity per disk. Which is not helpful.

 - platform: mqtt
     name: "HD temperature for /dev/sdc"
     unique_id: "hddtemp_sdc"
     state_topic: "telegraf/my_home_server/hddtemp"
     unit_of_measurement: "°C"
     value_template: "{{ value_json.fields.temperature }}"

So the question then becomes, how can I create one entity per JSON message. Or perhaps: how can I apply the temperature value ONLY if the the disk name in the JSON matches the entity?

2 posts - 2 participants

Read full topic

Strange Zigbee2MQTT behaviour

$
0
0

Hi all,
out of a sudden I am experiencing some strange behaviour with me Zigbee devices.

Everything worked fine until last night when 1 light would not switch off easily but I did not look into it then.
This morning, suddenly none of my devices (I have a couple of plugs, some smoke detectors and a few door/window sensors) showed any LQI value anymore.

What I find very confusing is that I can still send SOME commands. For example I manage to turn ON the plugs but then cannot turn them off again. Having said that, I just found out that this is only true from a Lovelace dashboard.
When I switch it on there, it actually switches ON the plug, but does not show that it is switched on. I can then not turn it off again.
When looking at the same device in the Zigbee2MQTT I can (sometimes) also switch it off again. Just now, while typing this, I tried it a few more times and suddenly the switch stayed on ON and also suddenly displayed the LQI again.

But all the other devices are still not connected, apparently.

Here is the log:

Zigbee2MQTT

debug Received MQTT message on 'zigbee2mqtt/Lidl Mehrfachstecker/l1/set' with data '{"state_l1":"ON"}'
debug Publishing 'set' 'state' to 'Lidl Mehrfachstecker'
debug Received MQTT message on 'zigbee2mqtt/Lidl Mehrfachstecker/l1/set' with data '{"state_l1":"ON"}'
debug Publishing 'set' 'state' to 'Lidl Mehrfachstecker'
error Publish 'set' 'state' to 'Lidl Mehrfachstecker' failed: 'Error: Command 0x842e14fffe52f06b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms)'
debug Error: Command 0x842e14fffe52f06b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms) at Timeout._onTimeout (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:46:35) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7)
info MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'state' to 'Lidl Mehrfachstecker' failed: 'Error: Command 0x842e14fffe52f06b/1 genOnOff.on({}, {\"timeout\":10000,\"disableResponse\":false,\"disableRecovery\":false,\"disableDefaultResponse\":false,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null,\"writeUndiv\":false}) failed (SRSP - AF - dataRequest after 6000ms)'","meta":{"friendly_name":"Lidl Mehrfachstecker"},"type":"zigbee_publish_error"}'
debug Received MQTT message on 'zigbee2mqtt/Lidl Mehrfachstecker/l1/set' with data '{"state_l1":"OFF"}'
debug Publishing 'set' 'state' to 'Lidl Mehrfachstecker'
error Publish 'set' 'state' to 'Lidl Mehrfachstecker' failed: 'Error: Command 0x842e14fffe52f06b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms)'
debug Error: Command 0x842e14fffe52f06b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms) at Timeout._onTimeout (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:46:35) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7)
info MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'state' to 'Lidl Mehrfachstecker' failed: 'Error: Command 0x842e14fffe52f06b/1 genOnOff.on({}, {\"timeout\":10000,\"disableResponse\":false,\"disableRecovery\":false,\"disableDefaultResponse\":false,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null,\"writeUndiv\":false}) failed (SRSP - AF - dataRequest after 6000ms)'","meta":{"friendly_name":"Lidl Mehrfachstecker"},"type":"zigbee_publish_error"}'
error Publish 'set' 'state' to 'Lidl Mehrfachstecker' failed: 'Error: Command 0x842e14fffe52f06b/1 genOnOff.off({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms)'
debug Error: Command 0x842e14fffe52f06b/1 genOnOff.off({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms) at Timeout._onTimeout (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:46:35) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7)
info MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'state' to 'Lidl Mehrfachstecker' failed: 'Error: Command 0x842e14fffe52f06b/1 genOnOff.off({}, {\"timeout\":10000,\"disableResponse\":false,\"disableRecovery\":false,\"disableDefaultResponse\":false,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null,\"writeUndiv\":false}) failed (SRSP - AF - dataRequest after 6000ms)'","meta":{"friendly_name":"Lidl Mehrfachstecker"},"type":"zigbee_publish_error"}'
debug Received MQTT message on 'zigbee2mqtt/Lidl Mehrfachstecker/l3/set' with data '{"state_l3":"OFF"}'
debug Publishing 'set' 'state' to 'Lidl Mehrfachstecker'
error Publish 'set' 'state' to 'Lidl Mehrfachstecker' failed: 'Error: Command 0x842e14fffe52f06b/3 genOnOff.off({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms)'
debug Error: Command 0x842e14fffe52f06b/3 genOnOff.off({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms) at Timeout._onTimeout (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:46:35) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7)
info MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'state' to 'Lidl Mehrfachstecker' failed: 'Error: Command 0x842e14fffe52f06b/3 genOnOff.off({}, {\"timeout\":10000,\"disableResponse\":false,\"disableRecovery\":false,\"disableDefaultResponse\":false,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null,\"writeUndiv\":false}) failed (SRSP - AF - dataRequest after 6000ms)'","meta":{"friendly_name":"Lidl Mehrfachstecker"},"type":"zigbee_publish_error"}'

I would like to mention that I have not changed anything in the setup recently and definitely not last night.

Any idea what might be going on?

Thanks a lot and cheers,

Merc

1 post - 1 participant

Read full topic

Template optimisation question for last_seen datetime sensor

$
0
0

@123 I wonder if you could help me with a template question please? I’ve been trying to follow a lot of your excellent template examples and experimenting with them in the template editor, but I’m stuck trying to count the number of entities that have a datetime attribute longer than x hours.

I have the following working template using for loops at the moment (along with associated automation for completeness)

template:
  - sensor:
      - unique_id: z2m_last_seen_entities
        name: "Z2M Last Seen Entities"
        state: >
          {% set lapsed_hours = 24 %}
          {% set ns = namespace(count=0) %}
          {% for state in states.sensor | selectattr('entity_id', 'search', '.*_last_seen$')  %}
            {% if states(state.entity_id) == 'unavailable' or ((as_timestamp(now()) - as_timestamp(states(state.entity_id))) > ((lapsed_hours | int) * 60 * 60)) %}
              {% set ns.count = ns.count + 1 %}
            {% endif %}
          {% endfor %}
          {{ ns.count }}     
        attributes:
          devices: >
            {% set lapsed_hours = 24 %}
            {% set result = namespace(sensors=[]) %}
            {% for state in states.sensor | selectattr('entity_id', 'search', '.*_last_seen$') %}
              {% if states(state.entity_id) == 'unavailable' or ((as_timestamp(now()) - as_timestamp(states(state.entity_id))) > ((lapsed_hours | int) * 60 * 60)) %}
                {% set result.sensors = result.sensors + [state.name | regex_replace(find='_last_seen', replace='') ~ ' (' ~ relative_time(strptime(states(state.entity_id), '%Y-%m-%dT%H:%M:%S%z', 'unavailable')) ~ ')'] %}
              {% endif %}
            {% endfor %}
            {{ result.sensors | join(', ') }}

automation:
  - alias: Offline Zigbee Devices
    id: offline_zigbee_devices
    description: Sends notification for offline Z2m devices
    trigger:
      - platform: time
        at: '20:00'
    condition:
      - condition: template
        value_template: '{{states(''sensor.z2m_last_seen_entities'')|int > 0}}'
    action:
      - service: notify.signal_justme
        data:
          title: Low battery alert
          message: '{% set phrase = ''s are '' if states(''sensor.z2m_last_seen_entities'')|int > 1 else '' is '' %} 
                    The following sensor{{ phrase }}missing: {{ state_attr(''sensor.z2m_last_seen_entities'', ''devices'') }}'

The problem though is that this gives me the following errors when rebooting HA, which I assume is because the data isn’t ready straight away:

2022-04-27 11:42:27 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'as_timestamp' got invalid input 'unknown' when rendering template '{% set lapsed_hours = 24 %} {% set result = namespace(sensors=[]) %} {% for state in states.sensor | selectattr('entity_id', 'search', '.*_last_seen$') %}
  {% if states(state.entity_id) == 'unavailable' or ((as_timestamp(now()) - as_timestamp(states(state.entity_id))) > ((lapsed_hours | int) * 60 * 60)) %}
    {% set result.sensors = result.sensors + [state.name | regex_replace(find='_last_seen', replace='') ~ ' (' ~ relative_time(strptime(states(state.entity_id), '%Y-%m-%dT%H:%M:%S%z', 'unavailable')) ~ ')'] %}
  {% endif %}
{% endfor %} {{ result.sensors | join(', ') }}' but no default was specified. Currently 'as_timestamp' will return 'None', however this template will fail to render in Home Assistant core 2022.1
2022-04-27 11:42:27 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% set lapsed_hours = 24 %} {% set result = namespace(sensors=[]) %} {% for state in states.sensor | selectattr('entity_id', 'search', '.*_last_seen$') %}
  {% if states(state.entity_id) == 'unavailable' or ((as_timestamp(now()) - as_timestamp(states(state.entity_id))) > ((lapsed_hours | int) * 60 * 60)) %}
    {% set result.sensors = result.sensors + [state.name | regex_replace(find='_last_seen', replace='') ~ ' (' ~ relative_time(strptime(states(state.entity_id), '%Y-%m-%dT%H:%M:%S%z', 'unavailable')) ~ ')'] %}
  {% endif %}
{% endfor %} {{ result.sensors | join(', ') }}")
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/homeassistant/helpers/template.py", line 407, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
  File "/usr/lib/python3.9/site-packages/homeassistant/helpers/template.py", line 1820, in _render_with_context
    return template.render(**kwargs)
  File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 1291, in render
    self.environment.handle_exception()
  File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 926, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 2, in top-level template code
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'

What I would like to do is optimise the code and avoid these errors with something like the following examples, but I can’t figure out what the code should be to manipulate the datetime state from the Zigbee2MQTT *_last_seen entity (see screenshot below)

        https://community.home-assistant.io/t/turn-off-all-light-on-from-3hours-not-using-group/345013/6?u=jarrah
        This template lists all lights that have been on for more than 3 hours.
        {{ states.light | selectattr('state', 'eq', 'on')
           | selectattr('last_changed', 'lt', now() - timedelta(hours=3)) 
           | map(attribute='entity_id') | join(', ') }}

        {%- set threshold = 40 -%}
        {{ states.sensor | selectattr('entity_id', 'search', '^(?!.*energy).*_power$')
                  | map(attribute='state') | map('int', 0) | select('<', threshold) | list | count }}

        https://community.home-assistant.io/t/improvement-to-sensor-template-with-for-loop/360550/12?u=jarrah
        {{ state_attr('weather.kmrb_hourly', 'forecast') 
          | selectattr('datetime', '<=', today_at('21:00').isoformat())
          | map(attribute='temperature')
          | max }}

I can count the total number of entities found like so:

{{ states.sensor | selectattr('entity_id', 'search', '.*_last_seen$')  | map(attribute='entity_id') | list | count }}

However, the following gives an error that says TypeError: '<' not supported between instances of 'str' and 'datetime.datetime', so I assume it’s because the state value is a string rather than datetime object?

        {{ states.sensor | selectattr('entity_id', 'search', '.*_last_seen$') 
            | selectattr('state', 'lt', now() - timedelta(hours=3)) 
            | map(attribute='entity_id') | list | count }}

Thanks in advance.

3 posts - 2 participants

Read full topic

Alexa Intergration via HACS

$
0
0

Hi Guys,

Please guide how do i do the following?

  1. I am not able to import Alexa Smart Plug, it is possible using Hacs alexa integration?

  2. How can I play a live radio station via a url thru echo device using Hacs alexa integration?

  3. How can I play mp3 files stored locally on rasp pi thru echo device using Hacs alexa integration ?

Plz guidd

1 post - 1 participant

Read full topic

AOL desktop gold download

$
0
0

What are you waiting for? Enjoy the advantages of the internet portal, email, instant messaging, and online browser. Get AOL gold desktop download and begin the fascinating journey of discovering this software’s distinctive features? Above all, Desktop gold has everything that AOL does. But with the added speed and dependability of current technology. No doubt, it is user-friendly software accessible on all devices. The software covers everything, whether’s entertainment, sports, or weather.

1 post - 1 participant

Read full topic


Home Assistant VPN and Google Assistant

$
0
0

Hi guys,
I recently installed a VPN client on my router which connects to a outside VPN server. Therefore all my home traffic is masked. Unfortunately when I enabled that setting Google Assistant stopped working although Home Assistant can still be accessed from WAN on the “old” IP and port. I’m guessing that because the server doesn’t get a respond from the same IP it can not authorize.

Do you have any idea what should I change to make Google Assistant work again?

1 post - 1 participant

Read full topic

MQTT sensor to Logbook

$
0
0

I want to be able to write to Logbook all events from a custom MQTT sensor called sensor.asterisk_call_status.
By default it doesn’t write anything, so I tried it manually as you can see bellow, but it doesn’t write it to that specific sensor. If I look at the logbook, I can see the record, but it I can’t click on it and it’s not associated with my sensor.

service: logbook.log
data:
  message: 2test
  name: sensor.asterisk_call_status

Is there another alternative on how to get the events on my logbook?

1 post - 1 participant

Read full topic

Time Zones in MariaDB (add on in container)

$
0
0

I’m using MariaDB as my DB for HA and it works fine. However when I now try to use the data it appears all timestamps are stored in UTC. In other databases I have other data (hourly prices for example) that are in local time. In order to match (join) them I need to handle different time zones in MariaDB and in order to do that I’v found out I need to run a script that loads the time zone data from some sort of Linux files. https://mariadb.com/kb/en/mysql_tzinfo_to_sql/. So… Then my question is… how do I get into some shell for MariaDB in a container on HA?

Thanks for any pointers… :slight_smile:

1 post - 1 participant

Read full topic

Recalculation in Grafana?

$
0
0

Hi,

I am using Home Assistant 2022.4.5 as a virtual machine. I added Grafana and Influx and it is working really nice so far.

Now I want to have two data sources in a single graph. One ranges from 0 to 1 and the other from 0 to 100. Obviously the first one is not good to recon…I would like to do a “divide by 100” for the second so both can be seen properly in the graph.

I checked for Grafana to do recalculation and found something like transformation but did not succeed in understanding if this helps.

Anyone having a clue how to do?
And no, I do not want to do the calculation in HA as it should get the correct value…

Thnaks for ideas!
/KNEBB

1 post - 1 participant

Read full topic

Automation to reload timer after switch turn off manually

$
0
0

Hi, I have automation to start a timer when valve switch triggered ON, and another automation to cancel and reset the timer when the valve switch triggered OFF (Turn off the timer) but this is not cancel and reset the timer.

timer:
  vtime2:
    duration: "00:00:00"
  
  
automation test:
  - alias: Turn on the timer
    trigger:
      - platform: state
        entity_id: switch.valve_2
        to: 'on'
    action:
      - service: timer.start
        data:
          entity_id: timer.vtime2
          duration: '00:40:00'
          
  - alias: Turn off the timer
    trigger:
      - platform: state
        entity_id: switch.valve_2
        to: 'off'
    action:
      - service: timer.cancel
        entity_id: timer.vtime2

  - alias: timer finished    
    trigger:
      - platform: event
        event_type: timer.finished
        event_data:
          entity_id: timer.vtime2
    action:
      - service: switch.turn_off
        entity_id: switch.valve_2

Any help would be appreciated!

1 post - 1 participant

Read full topic

Call a timer in automation where timer is defined in a input_select

$
0
0

I try to do this

service: timer.start
data: {}
target:
  entity_id: {{ states('input_select.select_cooking_timer') }}

if i enter {{ states('input_select.select_cooking_timer') }} this in template i get this

timer.kitchen_008_grahamsbrod_haevetid

and that is a valid timer

I hope someone can show me the way around

3 posts - 2 participants

Read full topic

[plejd-ble] Unable to find a bluetooth adapter that is compatible

$
0
0

Host: Intel NUC i7 (Debian 11 / Docker 20.10.14)
HA version: core-2022.4.7
supervisor-2022.04.0
bluetoothctl: 5.55 (Bluez version 5.55-3.1)

The addon hassio-plejd worked for me initially, when I set it up, but now I get this error from the log:

2022-04-26 19:01:11 INF [device-comm] Bluetooth reconnecting...
2022-04-26 19:01:16 INF [plejd-ble] Reconnecting BLE...
2022-04-26 19:01:16 INF [plejd-ble] init()
2022-04-26 19:01:16 ERR [plejd-ble] Unable to find a bluetooth adapter that is compatible.
2022-04-26 19:01:16 WRN [plejd-ble] Failed reconnecting. Unable to find a bluetooth adapter that is compatible.
Error: Unable to find a bluetooth adapter that is compatible.

I have bluetooth running (with the NUC built-in BT controller) on the host as shown below:

~$ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-04-26 18:11:59 CEST; 51min ago
       Docs: man:bluetoothd(8)
   Main PID: 8551 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 19034)
     Memory: 680.0K
        CPU: 359ms
     CGroup: /system.slice/bluetooth.service
             └─8551 /usr/libexec/bluetooth/bluetoothd

apr 26 18:11:59 HomeAssistant systemd[1]: Starting Bluetooth service...
apr 26 18:11:59 HomeAssistant bluetoothd[8551]: Bluetooth daemon 5.55
apr 26 18:11:59 HomeAssistant systemd[1]: Started Bluetooth service.
apr 26 18:11:59 HomeAssistant bluetoothd[8551]: Starting SDP server
apr 26 18:11:59 HomeAssistant bluetoothd[8551]: Bluetooth management interface 1.18 initialized

Any ideas why HA or hassio-plejd can’t see my NUC BT-adapter or if there is a fix to make it compatible?

1 post - 1 participant

Read full topic


Time Before and After condition, I´m going crazy

$
0
0

Is pretty simple. I want to activate a Scene when the motion sensor goes on between certain time, and another Scene if it goes on between other time. Also turn off the lights when the motion sensor goes off.

But I´m pretty sure I´m using time condition before and after in a wrong matter because the just don work when they should.

Here is the code:

alias: Motion Detector luz Closet
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.sonoff_a44000d616
    to: 'on'
    id: 'on'
  - platform: state
    entity_id: binary_sensor.sonoff_a44000d616
    to: 'off'
    id: 'off'
condition: []
action:
  - choose:
      - conditions:
          - condition: time
            after: '08:15:00'
            before: '23:00:00'
          - condition: trigger
            id: 'on'
        sequence:
          - service: scene.turn_on
            target:
              entity_id: scene.luces_closet
            metadata: {}
      - conditions:
          - condition: time
            after: '23:00:01'
            before: '08:14:59'
          - condition: trigger
            id: 'on'
        sequence:
          - service: scene.turn_on
            target:
              entity_id: scene.luces_closet_sueve
            metadata: {}
      - conditions:
          - condition: trigger
            id: 'off'
        sequence:
          - service: light.turn_off
            data: {}
            target:
              entity_id:
                - light.sonoff_10012bd2e7
                - light.sonoff_10012c04bd
    default:
      - service: light.turn_off
        data: {}
        target:
          entity_id:
            - light.sonoff_10012bd2e7
            - light.sonoff_10012c04bd
mode: single

Thanks a million guys!!
:crazy_face:

2 posts - 2 participants

Read full topic

Creating timer outside of configuration file

$
0
0

Can you create timers outside of the config file?

I leverage folders for my integrations and point to them in my config file like this:

timer: !include_dir_merge_list timers/

So I created one for timers and dropped a yaml file inside and created a timer within the yaml file but it does not create a timer.

1 post - 1 participant

Read full topic

Fill dropdown with all available media players

$
0
0

How can I fill a drop-down with all available media players ?

Kindly guide.

1 post - 1 participant

Read full topic

Stop automation after telegram callback

$
0
0

Hi!.

I want to receive an alert every last Tuesday of every month between 9 am and 9 pm via telegram every hour until I press a button on the telegram message to stop sending the message until next last Tuesday of the month.

I think I achieved everything except the part of sending the message every hour and the stop sending the messages when the telegram button is pressed. I’m totally blocked on how to achieve this from this point. Can someone help?

alias: Telegram bot automation repeat
description: ''
trigger:
  - platform: template
    value_template: >-
      {{ now().isoweekday() == 2 and now().month != (now() +
      timedelta(days=8)).month }}
condition:
  - condition: time
    after: '09:00:00'
    before: '21:00:00'
action:
  - service: telegram_bot.send_message
    data:
      title: '*TITLE*'
      message: Example message text
      target: -470985966
      inline_keyboard: Done:/done
  - wait_for_trigger:
      - platform: event
        event_type: telegram_callback
        event_data:
          data: /done
mode: single

1 post - 1 participant

Read full topic

KNX cover.set_cover_position is moving up first and then back down to 50%

$
0
0

When i use the cover.set_cover_poisition (50%) in a script, the cover moves all the way up and down to the 50% stage from closed mode. tilts are closed by that movement. Covers are KNX managed

script.

test_jal_50:
  alias: Test Jal 50%
  sequence:
  - service: cover.set_cover_position
    data:
      position: 51
    target:
      entity_id: cover.esszimmer_links
  mode: single

configuration.yaml:

# Esszimmer
    - name: "Jal Esszimmer links"
      move_long_address: "4/0/34"
      move_short_address: "4/0/35"
      stop_address: "4/0/35"
      position_address: "4/0/81"
      position_state_address: "4/1/16"
      angle_address: "4/0/107"
      angle_state_address: "4/1/41"
      travelling_time_down: 105
      travelling_time_up: 105
      device_class: "shutter

and yes, it’s a very long one and 105 is correct and corresponds to the value set in ETS

1 post - 1 participant

Read full topic

Viewing all 99623 articles
Browse latest View live


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