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

I have a problem whith a snapshopt of Ha

$
0
0

@Bryan_Zapata wrote:

I installed my snaphop in virtualbox put fixed ip everything was fine but the only thing that was uncomfortable It was the hac that appears behind

What recommendations or suggestions could i apply to fix this error?

Posts: 2

Participants: 2

Read full topic


Turn off after set time

$
0
0

@peejay wrote:

Please excuse if my question seems simplistic but I am of “advancing” years and this sort of thing is very new to me.
I have a bad habit of leaving the heater in the bathroom on after a shower and I want to set up some sort of timer to turn it off automatically.
The heater is controlled by a Sonoff switch that I have managed to set up in HA. Now all I want to do is somehow check if the heater is on and if so, turn off after 30 minutes.
I am guessing that HA would have to check the state of the Sonoff switch every say 60secs and then set the timer.
Is what I want to do even possible with HA ? If it is I would greatly appreciate some advice.
Thanks,
Pat

Posts: 4

Participants: 3

Read full topic

Recorder exclusions apply to the database?

$
0
0

@AndyRPH wrote:

My database is out of control so I deleted it to start fresh.

If my config yaml has
Recorder:
Exclude:
Domains:
- sun

Shouldn’t that keep the sun from logging states?

Doing a Select * from “states” where domain = ‘sun’ still nets me 100+ entries just from today.

I have recorder with some wide exclusions , and then include domains of switch and sensor.

Not sure why the database is still recording state changes from the sun.sun entity.

Posts: 1

Participants: 1

Read full topic

How to retain RGB attributes when light is turned off?

$
0
0

@alexrmay91 wrote:

I’m using a Shelly RGBW2 to control some RGBW LED strips. My goal is to use the scene.create service to take a snapshot and store the current settings of the controller to be called back later on after an automation occurs (in node-red if that matters).

The problem is that attributes for RGB + White Value + others disappear when the light is off.
Attributes when light is ‘on’
Attributes when light is ‘off’

When I create a scene and the light is off, it cannot capture all of the settings since the attributes are not there. It works perfectly fine as long as the lights are on when the automation starts.

Is there any way to keep these attributes visible when the state is off? The controller reports these values when the light is off, but Home Assistant seems to discard them.

Here is my configuration.yaml entry for the controller:

light:
  - platform: mqtt
    schema: template
    name: "LED Strip"
    command_topic: "home/kitchen/cabinet_lights/top/cmd"
    state_topic: "shellies/shellyrgbw2-6F36E7/color/0/status"
    effect_list:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
    command_on_template: >
      {"turn": "on"
      {%- if brightness is defined -%}
      , "gain": {{brightness | float | multiply(0.3922) | round(0)}}
      {%- endif -%}
      {%- if red is defined and green is defined and blue is defined -%}
      , "red": {{ red }}, "green": {{ green }}, "blue": {{ blue }}
      {%- endif -%}
      {%- if white_value is defined -%}
      , "white": {{ white_value }}
      {%- endif -%}
      {%- if effect is defined -%}
      , "effect": {{ effect }}
      {%- endif -%}
      }
    command_off_template: >
      {"turn": "off"}
    state_template: "{% if value_json.ison %}on{% else %}off{% endif %}"
    brightness_template: "{{ value_json.gain | float | multiply(2.55) | round(0) }}"
    red_template: '{{ value_json.red }}'
    green_template: '{{ value_json.green }}'
    blue_template: '{{ value_json.blue }}'
    white_value_template: '{{ value_json.white }}'
    effect_template: '{{ value_json.effect }}'
    qos: 0

Posts: 1

Participants: 1

Read full topic

Harmony Hub cannot find emulated Hue bridge

$
0
0

@QuackingPlums wrote:

I’ve been trying to follow the Emulated Hue guide as well as various threads here for the past two days, but my Harmony Hub just will not find, never mind pair, with my emulated hue running on hassio/home assistant (v0.110.2).

My configuration.yaml currently has the following entries:

emulated_hue:
  host_ip: 192.168.1.nn
  listen_port: 80
  advertise_ip: 192.168.1.nn
  upnp_bind_multicast: true
  exposed_domains:
    - light
    - switch
  expose_by_default: true

and I can see the description.xml if I browse the URL from any device on my network so I deduce that the service is running correctly. Similarly, the /api/pi/lights endpoint gives me a list of all my entities.

My Harmony Hub can only find the ‘real’ (non-emulated) Hue Bridge, however, no matter how many times I’ve asked it to re-scan for devices.

So far, I’ve tried:

  • Both specifying the host_ip of my home assistant Pi and leaving it to self-determine (it’s the same IP anyway)
  • Both specifying the listen_port as 80 and leaving it as the default 8300 (I can view description.xml on whichever port has been configured, so I know this setting is doing something)
  • Both with and without advertise_ip specified
  • Both with and without advertise_port specified
  • Both with upnp_bind_multicast explicitly set to true and leaving it as default (which I can see is also true)
  • Restarting my Harmony Hub
  • Unplugging my actual Hue Bridge
  • Checking that UPNP is enabled in my router (the only reference to UPNP on my Asus RT-AC186U is in the WAN section so I’m not convinced this is relevant)
  • Pulling out hair
  • Clutching at straws

Has support for Emulated Hue stopped recently?

Posts: 1

Participants: 1

Read full topic

Whats home assitant and Tplink big bleeping problem with each other.?

$
0
0

@Magnus33 wrote:

Install and setup home assistant without any issues and after setup add the devices.

It finds my pfsense router
Roku tv
plex
Smart-life devices
Heck it even finds my printer

But it flat out refuses to see anything tplink related and even adding the devices to the config.yaml doesn’t work.
It keeps saying invalid config and direct me to the tplink resources. but everything looks as it should.

tplink:
discovery: false
lights:
- host: 192.168.1.116
- host: 192.168.1.67
switches:
- host: 192.168.1.68
- host: 192.168.1.160
Plugs:
- host: 192.168.1.142
- host: 192.168.1.11
- host: 192.168.1.118

Posts: 1

Participants: 1

Read full topic

How to only return one match Jinja

$
0
0

@jaswalters wrote:

In other languages I would normally break the loop.

Since Jinja cannot break how do I only return the first match?

{% set inputerr = False %}
{%- for state in states.input_text -%}
{% if (( state.entity_id | regex_match('^input_text.lockcode_([0-9]|[12][0-9]|30)$')) and
(state.state != 'unknown')) %}
{% set slotusercode = state.state.split(':') -%}
{% if slotusercode[1][0:4]|int() == states("input_text.lockcode_code")[0:4]|int() %}
{% set inputerr = True %}
{{inputerr}}
{%- endif %}
{%- endif %}
{%- endfor %}

Posts: 1

Participants: 1

Read full topic

Use Bluetooth devices with the Bluetooth device tracker

$
0
0

@broken.pipe wrote:

Hi all,
i set up the bluetooth device tracker in my configuration.yaml and I find several devices, including my bluetooth speaker (entity: device_tracker.bluetooth-speaker). How can I use this speaker now? E.g. send music or TTS over it?

known_devices.yaml

bluetooth-speaker:
  icon:
  mac: BT_BC:30:7D:8C:D3:7A
  name: Bluetooth Speaker
  picture:
  track: true

Thanks and best regards!

Posts: 2

Participants: 2

Read full topic


Binary sensor - attributes from MQTT

$
0
0

@xrapidx wrote:

Struggling a bit googling this.

Is there a way I can get attributes on a mqtt binary sensor from MQTT? e.g. I have my alarm setup to publish the sensors to MQTT - some of the information punlished also includes battery levels, etc. - it would be great if I can have the normal MQTT Binary Sensor, and then use some of the published information as attributes.

Posts: 1

Participants: 1

Read full topic

Wake up phone - or call ha in mobile?

$
0
0

@Makis wrote:

Hi
I have installed HA companion app in my family members, as a device tracker.
Although it is working ok, I have noticed that if their battery is below 20%-30% in order to save battery won’t let HA run in background and doesn’t report their status.
I already give all permissions to run HA in their mobile but the problem remains.
Is there a way to make HA companion to wake up every 10 min (or something) in order to report its status if battery level is below X%

Posts: 1

Participants: 1

Read full topic

Home Assistant not coming back up after restart

$
0
0

@mitchell wrote:

i have home assistant running in a docker on unraid. it has been stable for months.

I just hit restart server after renaming an entity and now it won’t load the GUI. i can SSH in, and the SMB Shares come up i have tried restoring yesterdays snapshot and the day befores snapshot and still nothing,

This is the log

2020-05-31 10:12:54 ERROR (SyncWorker_3) [homeassistant.loader] Error parsing manifest.json file at /config/custom_components/flux_led/manifest.json: Expecting value: line 7 column 1 (char 6)
2020-05-31 10:12:54 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for breaking_changes which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-05-31 10:12:54 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for grocy which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-05-31 10:12:54 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-05-31 10:12:54 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-05-31 10:12:55 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=1 from 2020-05-31 09:06:41.976040)
2020-05-31 10:12:57 ERROR (SyncWorker_0) [homeassistant.components.octoprint] Endpoint: printer Failed to update OctoPrint status. Error: 409 Client Error: CONFLICT for url: http://192.168.1.88:80/api/printer
2020-05-31 10:12:57 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: close, template: {{value_json.RfReceived.Data}})
2020-05-31 10:12:57 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: close, template: {{value_json.RfReceived.Data}})
2020-05-31 10:12:57 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'bool object' has no attribute 'RfReceived' (value: true, template: {{value_json.RfReceived.Data}})
2020-05-31 10:12:57 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'bool object' has no attribute 'RfReceived' (value: false, template: {{value_json.RfReceived.Data}})
2020-05-31 10:13:04 ERROR (MainThread) [homeassistant.components.snmp.sensor] Please check the details in the configuration file
2020-05-31 10:13:07 WARNING (SyncWorker_8) [homeassistant.components.flux_led.light] Failed to connect to bulb 192.168.1.107, Kitchen Underlight
2020-05-31 10:13:09 ERROR (SyncWorker_1) [homeassistant.components.smtp.notify] Login not possible. Please check your setting and/or your credentials
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 137, in connection_is_valid
    server = self.connect()
  File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 130, in connect
    mail.login(self.username, self.password)
  File "/usr/local/lib/python3.7/smtplib.py", line 730, in login
    raise last_exception
  File "/usr/local/lib/python3.7/smtplib.py", line 721, in login
    initial_response_ok=initial_response_ok)
  File "/usr/local/lib/python3.7/smtplib.py", line 642, in auth
    raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'Incorrect authentication data')
2020-05-31 10:13:09 ERROR (MainThread) [homeassistant.components.notify] Failed to initialize notification service smtp
2020-05-31 10:13:09 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 121, in async_setup_platform
    if hasattr(notify_service, "targets"):
  File "/config/custom_components/alexa_media/notify.py", line 102, in targets
    ['devices']['media_player'].items()):
KeyError: 'devices'
2020-05-31 10:13:09 WARNING (MainThread) [homeassistant.components.mobile_app.notify] Found duplicate device name GM1913
2020-05-31 10:13:09 WARNING (MainThread) [homeassistant.components.mobile_app.notify] Found duplicate device name GM1913
2020-05-31 10:13:09 WARNING (MainThread) [homeassistant.components.mobile_app.notify] Found duplicate device name GM1913
2020-05-31 10:13:09 WARNING (MainThread) [homeassistant.components.mobile_app.notify] Found duplicate device name GM1913
2020-05-31 10:13:10 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform tplink is taking over 10 seconds.
2020-05-31 10:13:18 WARNING (MainThread) [homeassistant.components.light] Setup of light platform tplink is taking over 10 seconds.
2020-05-31 10:14:00 ERROR (MainThread) [homeassistant.components.switch] Setup of platform tplink is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2020-05-31 10:14:08 ERROR (MainThread) [homeassistant.components.light] Setup of platform tplink is taking longer than 60 seconds. Startup will proceed without waiting any longer.

with SSH i am presented with:

The "‘value_json’ " errors have always been there

Posts: 1

Participants: 1

Read full topic

Skript - Template: cover position

$
0
0

@helfm wrote:

Hello, community,

New day, new question. I’m hoping someone can help me.

In a script I try to set the position, depending on the input field “position”, either by this value or if the field is empty, by a value from an “input_number” field.

As I said, I am interested in the template in the “position:” section - everything else works fine.

Does it not work at all, or am I making an error?

#scripts.yaml

script_rollo_test:
  alias: Setzt definierte Rollos Test
  icon: "mdi:script-text-outline"
  description: 'Setzt definierte Rollos Test'

  fields:
    title:
      description: 'The title of the notification'
      example: 'State change'
    message:
      description: 'The message content'
      example: 'The light is on!'
    position:
      description: 'New position of cover'
      example: 30
    orientation:
      description: 'geographic direction'
      example: 'all'

  # Öffne die Rollos, welche für die Automatisierung ausgewählt wurden
  sequence:
    - service_template: >
          {% if is_state('input_boolean.automatisierung_gaestezimmer', 'on') and
            (states.cover.rollo_gaestezimmer.attributes.current_position|int != position) and
            (position == 0) and
            (orientation == 'all' or orientation == 'east' or orientation == 'gast') %}
              cover.close_cover
          {% elif is_state('input_boolean.automatisierung_gaestezimmer', 'on') and
            (states.cover.rollo_gaestezimmer.attributes.current_position|int != position) and
            (position == 100) and
            (orientation == 'all' or orientation == 'east' or orientation == 'gast') %}
              cover.open_cover
          {% elif is_state('input_boolean.automatisierung_gaestezimmer', 'on') and
            (states.cover.rollo_gaestezimmer.attributes.current_position|int != position) and
            (position == '') and
            (orientation == 'all' or orientation == 'east' or orientation == 'gast') %}
              cover.set_cover_position
          {% else %}
            script.script_continue
          {% endif %}
      data_template:
        entity_id: >
          {% if is_state('input_boolean.automatisierung_gaestezimmer', 'on') and
            (states.cover.rollo_gaestezimmer.attributes.current_position|int != position) and
            (orientation == 'all' or orientation == 'east' or orientation == 'gast') %}
              cover.rollo_gaestezimmer
          {% else %}
            script.script_continue
          {% endif %}
        position: >
          {% if position == '' %}
            states.input_number.schliessposition_gaestezimmer.state | int
          {% else %}
            position | int
          {% endif %}

Best regards Markus

Posts: 1

Participants: 1

Read full topic

Log full of these errors

$
0
0

@maurizio53 wrote:

Since 2-3 days i am having the log completely full of these errors:

2020-05-31 11:34:08 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/urllib/request.py", line 1319, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/local/lib/python3.7/http/client.py", line 1252, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.7/http/client.py", line 1298, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.7/http/client.py", line 1247, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/local/lib/python3.7/http/client.py", line 938, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/local/lib/python3.7/socket.py", line 707, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/local/lib/python3.7/socket.py", line 752, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name does not resolve

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/feedreader/__init__.py", line 82, in <lambda>
    track_time_interval(hass, lambda now: self._update(), self._scan_interval)
  File "/usr/src/homeassistant/homeassistant/components/feedreader/__init__.py", line 95, in _update
    modified=None if not self._feed else self._feed.get("modified"),
  File "/usr/local/lib/python3.7/site-packages/feedparser/api.py", line 230, in parse
    data = _open_resource(url_file_stream_or_string, etag, modified, agent, referrer, handlers, request_headers, result)
  File "/usr/local/lib/python3.7/site-packages/feedparser/api.py", line 138, in _open_resource
    return http.get(url_file_stream_or_string, etag, modified, agent, referrer, handlers, request_headers, result)
  File "/usr/local/lib/python3.7/site-packages/feedparser/http.py", line 175, in get
    f = opener.open(request)
  File "/usr/local/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/local/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.7/urllib/request.py", line 1347, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/local/lib/python3.7/urllib/request.py", line 1321, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -2] Name does not resolve>

How to fix and is there someone else having the same issues?

Posts: 1

Participants: 1

Read full topic

Automation based on time a value is below a level

$
0
0

@ATWindsor wrote:

Setup; I have an input.boolean, that is on when the washing machine goes on (the logic for that is in another automation). I want to turn that input boolean off if the following conditions are met:

  • The power is below 20 watts for more then 2 minutes
    OR
  • The power is below 40 watts for more then 2 minutes AND the machine (that is the input boolean) has been on for at least and hour.

I tried the automation underneath, but it seems like “for:” is not allowed for “numeric state” only “state”. Any suggestions on how to solve this?

- alias: Vaskemaskin av
#triggers when the machhine goes on
  trigger:
    - platform: state
      entity_id: input_boolean.kjellerbad_vaskemaskin
      to: 'on'
  condition:
    condition: or
#conditon 1
    conditions:
      - condition: numeric_state
        entity_id: sensor.kjellerbad_vaskemaskin_power
        below: 20
        for:
          seconds: 120
#condition 2
      - condition: and
        conditions:
          - condition: numeric_state
            entity_id: sensor.kjellerbad_vaskemaskin_power
            below: 40
            for:
              seconds: 120
          - condition: state
            entity_id: input_boolean.kjellerbad_vaskemaskin
            state: 'on'
            for:
              minutes: 60
  action:
    service: input_boolean.turn_off
    entity_id: input_boolean.kjellerbad_vaskemaskin

Posts: 1

Participants: 1

Read full topic

After upgrade HA lost the Lovelace menu bar


Roborock / Mi Robot Room Clean Repeats

$
0
0

@AndrejDelany wrote:

I’m using the vacuum.send_command service to clean a room. Works great!

I’m using it with the following service data:

{"entity_id": "vacuum.xiaomi_vacuum_cleaner", "command":"app_segment_clean", "params":[20]}

20 is the room identifier for my kitchen. Is there a possibility to define the repeats for cleaning the room as described for this different command? https://www.home-assistant.io/integrations/vacuum.xiaomi_miio/#service-xiaomi_miiovacuum_clean_zone

Posts: 1

Participants: 1

Read full topic

File Editor without internet

$
0
0

@Dmitriy_As wrote:

Tell me, does not work File Editor, without an interent. Can there be analogues to it? I want to make a server in offline mode. I can’t edit configs

Posts: 3

Participants: 2

Read full topic

Home Assistant CC2531 problem with joining new devices

$
0
0

@piwoszq wrote:

Hello,
I have problem with joining new devices in Home Assistant 0.110.4 and zigbee2mqtt addon 1.13.1.1.

Adapter hardware: CC2531 20190608

I had 2 Xiaomi temperature sensors. Both worked fine, now I have a new Home Assistant installation and I can’t add them. CC2531 works on another Home Assistant (my friend’s). I copied configuration from his configuration file… still can’t add…

Log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
./run.sh: line 17: [Info] Configuration backup found in /share/zigbee2mqtt/.configuration.yaml.bk. Skipping config backup.: No such file or directory
[Info] Socat is DISABLED and not started
2020-05-31T17:33:51: PM2 log: Launching in no daemon mode
2020-05-31T17:33:51: PM2 log: App [npm:0] starting in -fork mode-
2020-05-31T17:33:51: PM2 log: App [npm:0] online
> zigbee2mqtt@1.13.1 start /zigbee2mqtt-1.13.1
> node index.js
zigbee2mqtt:info  2020-05-31 17:33:54: Logging to console and directory: '/share/zigbee2mqtt/log/2020-05-31.17-33-54' filename: log.txt
zigbee2mqtt:debug 2020-05-31 17:33:54: Removing old log directory '/share/zigbee2mqtt/log/2020-05-31.16-33-25'
zigbee2mqtt:debug 2020-05-31 17:33:55: Loaded state from file /share/zigbee2mqtt/state.json
zigbee2mqtt:info  2020-05-31 17:33:55: Starting zigbee2mqtt version 1.13.1 (commit #unknown)
zigbee2mqtt:info  2020-05-31 17:33:55: Starting zigbee-herdsman...
zigbee2mqtt:debug 2020-05-31 17:33:55: Using zigbee-herdsman with settings: '{"network":{"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11],"networkKey":"HIDDEN"},"databasePath":"/share/zigbee2mqtt/database.db","databaseBackupPath":"/share/zigbee2mqtt/database.db.backup","backupPath":"/share/zigbee2mqtt/coordinator_backup.json","serialPort":{"baudRate":115200,"rtscts":false,"path":"/dev/ttyACM0"},"adapter":{"concurrent":null}}'
zigbee2mqtt:info  2020-05-31 17:33:56: zigbee-herdsman started
zigbee2mqtt:info  2020-05-31 17:33:56: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}}'
zigbee2mqtt:debug 2020-05-31 17:33:56: Zigbee network parameters: {"panID":6754,"extendedPanID":"0xdddddddddddddddd","channel":11}
zigbee2mqtt:info  2020-05-31 17:33:56: Currently 0 devices are joined:
zigbee2mqtt:warn  2020-05-31 17:33:56: `permit_join` set to  `true` in configuration.yaml.
zigbee2mqtt:warn  2020-05-31 17:33:56: Allowing new devices to join.
zigbee2mqtt:warn  2020-05-31 17:33:56: Set `permit_join` to `false` once you joined all devices.
zigbee2mqtt:info  2020-05-31 17:33:56: Zigbee: allowing new devices to join.
zigbee2mqtt:info  2020-05-31 17:33:57: Connecting to MQTT server at mqtt://core-mosquitto
zigbee2mqtt:info  2020-05-31 17:33:57: Connected to MQTT server
zigbee2mqtt:info  2020-05-31 17:33:57: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
zigbee2mqtt:info  2020-05-31 17:33:58: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.13.1","commit":"unknown","coordinator":{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}},"log_level":"debug","permit_join":true}'

Posts: 2

Participants: 2

Read full topic

KNX cover - travel movement state

$
0
0

@Joca wrote:

When integrating covers with the KNX system, is there any way to know if the blinds are opening or closing?
Thanks

Posts: 1

Participants: 1

Read full topic

Call a rest_command based on trigger name and value

$
0
0

@Samuele_Sommariva wrote:

Hello, the general goal is in the title.

I want to turn on and off certain services (squeezebox, airplay, spotify) on each of my 3 music player.
I want it to be user friendly so that also my wife knows how to do it.

To do that, I have defined as many input_boolean as needed

and I created as many rest_command as needed, two for each variable

input_boolean:
  hfb_sala_spotify:
  hfb_cucina_spotify:
  hfb_bimbi_spotify:

  hfb_sala_airplay:

and many more

I need to write a single automation that calls the appropriate method based on the trigger.

If the trigger is hfb_sala_spotify, and it was turned on, I want to call rest_command.hfb_sala_airplay_on

This is not working

  trigger:
  - entity_id: input_boolean.hfb_sala_airplay
    platform: state
  - entity_id: input_boolean.hfb_sala_spotify
    platform: state
  - entity_id: input_boolean.hfb_cucina_spotify
    platform: state
  condition: []
    action:
  - service_template: >
      rest_command.{{trigger.entity_id.split(".") [1]}}_{{trigger.to_state.state}}
   

but if i can get the right notification if I change the action

action:
  - service: notify.mobile_app_sm_n960f
    data_template:
      message: >
        rest_command.{{trigger.entity_id.split(".") [1]}}_{{trigger.to_state.state}}

Any clue is welcome

Posts: 1

Participants: 1

Read full topic

Viewing all 106764 articles
Browse latest View live


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