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

Front end URL

$
0
0

@404ClickBait wrote:

http://hassio.local:8123

Using this URL, the front end works from Chrome browser on my Windows 10 computer (running on an iMac), but doesn’t work from Chrome on my Android phone. Any ideas why? I have also tried using the ip address of my Raspberry Pi which is running hassio. No dice.

Posts: 2

Participants: 2

Read full topic


MQTT Cover buttons deactivation when device is offline

$
0
0

@mrci wrote:

Hi,

I would like to change my frontend for MQTT Cover. When device reports offline state I want to deactivate OPEN/STOP/CLOSE buttons or change them for text “OFFLINE”.

What is currently when device is offline, only grey icon informs that device is offline, buttons are still active.

I want to achieve
want2

Posts: 1

Participants: 1

Read full topic

Or no voice at TTS or no external connection to HA

$
0
0

@Canedje wrote:

I just installed this weekend HA.
I’m busy migrating from Homey.
I use node_RED as tool.
And did set up a ssl connection true DuckDNS as dns provider.
It was working fine.

I figured out how to send TTS to my google home.
It didn’t work until I changed :

http:
base_url: https://mydns.duckdns.org:8123
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem

into:

http:
base_url: https://edwardha.duckdns.org
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem

(without 8123 at the end of the url)

at DuckDNS config I do have:

lets_encrypt:
accept_terms: true
certfile: fullchain.pem
keyfile: privkey.pem
token: mytoken
domains:

(the dot before mydns.duckdns.org is a minus)
TTS is working fine then, but I’m not able to login outsite my local network anymore.
I’m using duckDNS as dns provider.
And did forward a port into my router

What to do to have and TTS and external login both working?
Thanks in advange

Posts: 1

Participants: 1

Read full topic

Xiaomi Vacuum and Purifier push notifications

$
0
0

@m4rk wrote:

Hello,

I would like to have iOS push notifications when my vacuum starts and stops or having error, and also when my purifier having error (malfunction alert).

Could you help me with some sort of sample code please?

Vacuum: Robocok S50 with MQTT and MIIO enabled, rooted on 1886 fw, valetudo 0.4.0
Purifier: Xiaomi Air Purifier 2S
Push notification service: notify.mobile_app_iphone

Posts: 1

Participants: 1

Read full topic

Insteon integration problem

$
0
0

@sbourgeo wrote:

Hi,
I did a lot of research and learned a lot since I started to look at Home-Assistant. My house is 25 years old and I build it with a domotic system at the epoc. My devices are mostly X10 and Insteon switches and dimmers.

I have a PLM 2413U connected to a Raspberry 4B and I am running a full updated Hassio.

At first, I tried the integrated Insteon support and configured some of the X10 switch and dimmers. Once, I tried to turn off and on some lights and the lights was responding with long delays and very inconstancy. The next day, I updated the Supervisor and the Host system to the latest versions and since then, I am getting no response from Insteon.

I then tried the insteon-mqtt add-on, to see if I would have more success. I am using mqtt with a temperature sensor and a board relay.

It seems that the insteon-mqtt has problem communicating with the PLM, getting the following in log:

2020-02-17 13:02:35 INFO Mqtt: MQTT message insteon/command/modem b'{ "cmd" : "refresh", "force" : true}'
2020-02-17 13:02:35 UI Mqtt: Commanding Modem device 23.9c.25 (modem) cmd=refresh
2020-02-17 13:02:35 INFO Modem: Modem sending get first db record command
2020-02-17 13:02:35 INFO Protocol: Write message to modem: All link get first
2020-02-17 13:02:35 DEBUG Protocol: Write bytes to modem: b'\x02i'
2020-02-17 13:02:35 DEBUG Serial: Wrote 2 bytes to serial /dev/ttyUSB0
2020-02-17 13:02:41 WARNING Base: Handler timed out - no more retries (0 sent)
2020-02-17 13:02:41 ERROR Mqtt: Command timed out

I tested the PLM on my Windows PC using the HouseLinc application and it is working fine. I was able to pair all my devices.

I looked at the serial port using SSH and it is ttyUSB0.

Here is a part of my config.yaml for the insteon-mqtt

logging:
  # 10=DEBUG, 20=INFO, 30=WARNING, 40=ERROR
  level: 10

  # Print messages to the screen.
  #screen: False

  # Print messages to a file.
  #file: /var/log/insteon_mqtt.log

#==========================================================================
#
# Insteon configuration
#
#==========================================================================
insteon:
  # Serial device:
  # USB PLM modem
  port: '/dev/ttyUSB0' #'/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A901M90K-if00-port0' #
  #baudrate: 9600

  # Network socket:
  # Insteon HUB PLM network
  #port: 'socket://192.168.1.5:9761'

  # PLM modem Insteon hex address
  address: 23.9C.25

  # Device database file storage location.
  #storage: '/var/lib/insteon-mqtt'
  storage: 'data'

  # Automatically refresh device states and databases (if needed) at
  # startup.  This may be slow depending on the number of devices.
  startup_refresh: False

  #------------------------------------------------------------------------
  # Devices require the Insteon hex address and an optional name. Note
  # that MQTT address topics are always the lower case hex address or
  # the input name depending on how they are configured below.
  devices:
    # On/off switch devices (outlets, wall switches, appliance modules, etc).
    switch:
      - 2F.97.FE: 'Porte Cote'
      #- 26.48.ff: 'xmas stairs'
      #- 37.2d.20: 'deck'

    # Dimming devices (outlets, wall switches, lamp modules, etc).
    dimmer:
      - 29.BF.9B: 'Balcon arriere'
      #- 48.3d.46
      #- 48.b0.ad: 'dim1'

Do I need to specify the baudrate?
There existing an add-on to use as terminal to send command to the PLM via the serial port?

Anyone can give me some troubleshooting tips?

Posts: 1

Participants: 1

Read full topic

Automation list showing old entries/not showing new ones

$
0
0

@PeterSu wrote:

Hi,
after update to 105.5, when deleting/adding automation, the list suddenly reverts back to one from about a week ago and the changes are NOT reflected.
Reboot then helps, but after the first change (adding, modifying, deleting), the list again appears to be “old” one.
Happens in Opera, IE, Edge and on Mobile App. Runs as .vhdx on Intel NUC.
Can you help/fix/suggest a fix?

Thanks for any help,
Peter

Posts: 1

Participants: 1

Read full topic

Legacy script and new script file from script editor. Can anyone tell me which is the format to have them both?

$
0
0

@Klagio wrote:

I just noticed that my script (legacy) do not get loaded.

Now I have a


scripts.yaml

which gets loaded

and a


script_legacy.yaml

which does not get loaded

my configuration is as follows


script: !include scripts.yaml            # nuove
script old: !include script_legacy.yaml  # vecchie

the above system works for automation but not for script

Posts: 5

Participants: 2

Read full topic

How to set up automation rule for the given temperature at the given time?

$
0
0

@andrew_ha wrote:

Hello,
my goal is to make an automation rule for my Z-wave Thermostat 014g0013 based on incoming data from another party (mqtt). The automation rule should set the given temperature at the given time. The incoming data are now represented as a state of an entity, because I am using the influxdb sensor that allows me to populate a sensor state from the database.

The already parsed incoming data also represented as a state of an entity are in following data structure (number of dictionaries in list are variable):

[{'timeOfDay': '10:00', 'value': '25.5'}, {'timeOfDay': '10:58', 'value': '24'}, {'timeOfDay': '11:20', 'value': '23'}, {'timeOfDay': '12:40', 'value': '23'}]

The data is self-explanatory - at time of “timeOfDay” set temperature of “value”. I wrote a code in the template editor which gives me the correct value for my thermostat (as for climate.set_temperature):

{% set list = [{'timeOfDay': "10:32", 'value': '25.5'}, {'timeOfDay': "10:58", 'value': '24'}, {'timeOfDay': "10:00", 'value': '23'}, {'timeOfDay': "11:01", 'value': '23'}] %}
{% for dict in list %}
  {% for y in dict.values() %}
    {% if y == now().strftime('%H:%M') %}
     {{ dict['value'] }}
    {% endif %}
  {% endfor %}
{% endfor %}

Now the problem is how to automate this process. I am thinking about making a automation rule where the trigger part would be a time pattern for every 1 minute. However, I am struggling how to write the condition and action part. I would greatly appreciate any suggestions and comments. :slightly_smiling_face:

Posts: 1

Participants: 1

Read full topic


Automation not triggering although the conditions are met

$
0
0

@RoRoo wrote:

I’ve been trying to automate the smartplug in my bedroom to switch off when it isn’t used in the evening.

The conditions are:
Lights in the living room (lights.woonkamer_verlichting) are off.
The smartplug in the living room is off (switch.tv_meubel)
It’s later than 10 pm and earlier than 6 am.

It triggers when the usage of the switch.slaapkamer is below 6W and higher than 1W. This should prevent it from switching off when the Missus is watching Netflix in the bedroom. Thus keeping the WAF intact :slight_smile:

I’m using the following automation:

- id: slaapkamer_plug_auto_off

  initial_state: 'on'

  alias: Slaapkamer Plug Auto Off

  trigger:

    platform: numeric_state

    entity_id: sensor.slaapkamer_watts

    below: 6

    above: 1

    for:

      minutes: 1

  condition:

    condition: and

    conditions:

    - condition: time

      after: '22:00'

      before: 06:00

    - condition: state

      entity_id: light.woonkamer_verlichting

      state: 'off'

    - condition: state

      entity_id: switch.tv_meubel

      state: 'off'

  action:

  - service: switch.turn_off

    entity_id: switch.slaapkamer

The only thing I can think of why it isn’t triggering, is that the W usage of my switch is fluctuating…
But I’ve tested it by using other conditions (light.toilet off and switch.daughter off) and then it works.

I’ve checked if the states of the switch and lights group are correct, and they are off so it should meet the conditions…

Posts: 2

Participants: 2

Read full topic

"Group" not_home never true

$
0
0

@Sardauker wrote:

Hi.
After the latest update, the entity group is no more available or usable as a condition.
I have an automation that I want triggered at a certain time, but only if I am not_home

I have tried

  - condition: template
    value_template: 'value_template: "{{ not is_state(''device_tracker.google_maps_******'',
      ''home'') }}"'
  - condition: template
    value_template: 'value_template: "{{ not is_state(''device_tracker.google_maps_****',
      ''home'') }}"'

and

  condition:
  - condition: state
    entity_id: device_tracker.google_maps_******
    state: not_home
  - condition: state
    entity_id: device_tracker.google_maps_*****
    state: not_home

The devices are in all the states, showed the right zone, but even when we are both not_home none of the above condition is EVER true and the automation never triggered.

Where am I wrong? the deprecated device group was working.

Thanks in advance.

Posts: 7

Participants: 4

Read full topic

Sonoff pir interfere with tuya wall switch

$
0
0

@oldsap wrote:

I bought a generic tuya based Wall switch that can be controlled using RF or wifi. Upon installation, I noticed that whenever my sonoff pir sensor is triggered, my wall switch also triggers. Is there a way to fix this?

Posts: 4

Participants: 2

Read full topic

Map issue: home zone is not recognized

$
0
0

@Jokerigno wrote:

Hi all,

I have a strange issue. I’ve setup many zones included in a zone.yaml file.

All these places are visible in zone setting but if I click on Map I see amsterdam !!

Did anyone had this issue before?

Posts: 5

Participants: 3

Read full topic

Hue motion Sensor and Alarm

$
0
0

@gautier23 wrote:

Hi guys,

Need your help concerning Hue Motion Sensor and Alarm.

I added in my configuration file a switch in order to turn on/off my Hue Motion Sensor

switch:
    platform: rest
    resource: http://IP/api/KEY/sensors/ID/
    name: 'Hue Motion Sensor Salon'
    method: put
    body_on: '{"config": {"on":true}}'
    body_off: '{"config": {"on":false}}'
    is_on_template: '{{ value_json.config.on == true }}'
    headers:
        Content-Type: application/json

Here my automations.yaml :

`- alias: 'Salon Hue Sensor Turn Off'
  trigger:
    platform: state
    entity_id: switch.hue_motion_sensor_salon
    from: 'on'
    to: 'off'
  action:
    service: telegram_bot.send_message
    data:
      message: 'Salon Hue Sensor Turned off'
      
- alias: 'Salon Hue Sensor Turn On'
  trigger:
    platform: state
    entity_id: switch.hue_motion_sensor_salon
    from: 'off'
    to: 'on'
  action:
    service: telegram_bot.send_message
    data:
          message: 'Salon Hue Sensor Turned on'
`

Now, I would like to put an alarm (https://www.home-assistant.io/integrations/manual) in order to arm or disarm this sensor.
But I’m not sure about the relation between alarm control panel and the automations.yaml

Thanks for your help

Posts: 2

Participants: 2

Read full topic

Control Lighting Scene from Macintosh Keyboard

$
0
0

@creativesavage wrote:

Can anyone provide an example of controlling a light in Home Assistant using a keyboard shortcut on the Macintosh? I have a program called Keyboard Maestro, which has choices for executing AppleScript, Shell Script, JavaScript and more, but I have been unable to find a detailed enough description of how to implement a solution. (my HA is running on a raspi that is on the same ethernet network as my Mac)

All the information I’ve found assumes that I have extensive coding experience. On Reddit, someone suggested I execute a Shell command using Curl to update a HA sensor via a URL call. But searching for details on how specifically to accomplish that has not gotten me to a level where I can actually pull it off.

Has anyone set up HA to react to a keyboard shortcut on a Macintosh before and if so, would you be willing to share details on precisely how you accomplished it?

Posts: 1

Participants: 1

Read full topic

Xiaomi/Aqara sensor with both deCONZ and Xiaomi Home app

$
0
0

@mat44150 wrote:

Hello,
I have a simple question: If I pair my Xiaomi/Aqara sensors with a Conbee Zigbee stick via deCONZ, will I still be able to connect them at the same time with a Xiaomi Gateway and see these sensors in my Xiaomi Home app ?
From what I have read, I need to reset the sensors so they can pair with the Zigbee stick. If I perform this operation once again to pair them again with the Xiaomi Gateway, can the Zigbee stick get the data as well ? Or is it only possible to pair the sensor with a single gateway ?
Thanks for your input!

Posts: 2

Participants: 2

Read full topic


How to sum energy and power sensors?

$
0
0

@chemelli wrote:

Hi,

I have many devices, each able to measure energy ( kWh ) and power ( kW ).
I would like to have a card that will show graph about power consumed by the whole house.
As well has a energy history.

Can anyone help building the logic ?

Thank you in advance,

Simone

Posts: 5

Participants: 3

Read full topic

X-custom_components

$
0
0

@klrock wrote:

I recently installed HACS to my Docker/home-assistant installation. I copied the HACS folder into the custom_components folder. Home Assistant (HA) started up well and Hacs was displayed and seemed to work displayed options to select. I did no other changes at that time.
Today I tried to start HA and got

This site can’t be reached

192.168.1.191 took too long to respond.

I went to the home-assistant Docker folder and saw that the custom _components folder had been renamed to x-custom_components. I renamed it back to custom _components, but that did not help.
Here are the items in the home-assistant folder:
image

custom_components folder
image

hacs folder
image

What could have caused this and how do I fix it?

Posts: 5

Participants: 2

Read full topic

Input Select - Set Options using templates

$
0
0

@klogg wrote:

I am having a problem with the input_select.set_option service.

I have a number of announcements that my system can call upon and I want to have an input_select populated at HA Start with those announcement names.

I create a list of announcements to use in the input_select.set_options like this:

      - service: input_select.set_options
        data_template:
          entity_id: >
            input_select.announcements
          options: >
            {% for script in states.script if 'script.announcement_' in script.entity_id %}
              {%- if loop.first %}
                {{ '["- Select Announcement -", '}}
              {%- endif %}
              {%- set entity = script.entity_id | replace('script.announcement_', '') %}
              {%- set entity = entity | replace('_', ' ') | title -%}
              "{{- entity -}}
              {% if not loop.last -%}
                {{ '", ' }}
              {%- else -%}
                {{ '"]' }}
              {% endif %}
            {%- endfor %} 

Which to save you working it out creates something in this format:

["- Select Announcement -", "Announcement name 1", "Announcement name 2", ... "Announcement name n"]

This fails because the resultant string is more than 255 characters. (The second last line of the error output looks a bit odd to me… f"Invalid state )

Error doing job: Exception in callback InputSelect.async_set_options(options=['{% for scrip... endfor %} \n'])()
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/components/input_select/__init__.py", line 281, in async_set_options
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 297, in async_write_ha_state
    self._async_write_ha_state()  # type: ignore
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 405, in _async_write_ha_state
    self.entity_id, state, attr, self.force_update, self._context
  File "/usr/src/homeassistant/homeassistant/core.py", line 977, in async_set
    state = State(entity_id, new_state, attributes, last_changed, None, context)
  File "/usr/src/homeassistant/homeassistant/core.py", line 721, in __init__
    f"Invalid state encountered for entity id: {entity_id}. "
homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity id: input_select.announcements. State max length is 255 characters.

However,

If I use the exact same template as above in the Dev Template Tool to create the same string and use it in the Dev Tools Services it works fine. So the 255 limit seems to be selective!

As an illustration of it working with a string longer than 255 chars:

image

I have also tried publishing it to MQTT and using the trigger.payload but that doesn’t work either.

On the one hand I can’t believe no one has tried this before so it must be possible and I must be doing something wrong, but on the other hand I think I have found a bug somewhere…

Any ideas?

Posts: 9

Participants: 3

Read full topic

Local Image Path 403 Forbidden

Potential Issue with Automation

$
0
0

@bigverm23 wrote:

so i created this automation, and have recently noticed after the lock unlocks due to home-away status, it nearly immediately unlocks itself.

Code looks ok to me, but I am brand new at this so I’m likely missing something. Please help!!

- id: door_lock_presence
  alias: Unlock door on arrival
  trigger:
    platform: zone
    entity_id: device_tracker.life360_ken, device_tracker.life360_katie, device_tracker.addieiphone
    zone: zone.mt_airy_home
    event: enter
  action:
    service: lock.unlock
    entity_id: lock.frontdoor_lock_locked
- id: door_lock_nopresence
  alias: Lock door on departure
  trigger:
    platform: zone
    entity_id: device_tracker.life360_ken, device_tracker.life360_katie, device_tracker.addieiphone
    zone: zone.mt_airy_home
    event: leave
  action:
    service: lock.lock
    entity_id: lock.frontdoor_lock_locked

Posts: 8

Participants: 4

Read full topic

Viewing all 105618 articles
Browse latest View live


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