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

Tuya Integration is Broken

$
0
0

My Tuya integration just randomly stopped working last night, no errors in the logs. I have deleted the integration and re-added, still nothing. The Smart Life app works fine. Did Tuya make some update that broke it?

1 post - 1 participant

Read full topic


Lights on 20mins before sundown unless weather is bad

$
0
0

I have the below automation. what I want it to do is turn on the lights 20 mins before sundown unless my weather integration reports that its cloudy, partly cloudy or raining. If the weather integration is reporting any of these states then turn on the lights 60 mins before sundown. Bare in mind it hasnt been that sunny this past couple of days to test this but it did seem to work at least once but its not working anymore. The lights are coming on an hour before sundown even when its sunny. I found this code whilst googleing this problem and changed it slightly to work with weather.home instead of the weather app they were using

- id: '1592692766146'
  alias: Turn on the lights when the sun is set
  description: ''
  trigger:
  - event: sunset
    offset: -00:60:00
    platform: sun
  - event: sunset
    offset: -00:20:00
    platform: sun
  condition:
  - condition: template
    value_template: '{{ trigger.offset.total_seconds()/60 == -20 or state_attr(''weather.home'',
      ''forecast'')[0].condition in (''cloudy'', ''partlycloudy'', ''rainy'') }}'
  - condition: state
    entity_id: light.18756343ecfabc2aa67b
    state: 'off'
  action:
  - device_id: 8f76758c80c845fa94648d70b142ab34
    domain: light
    entity_id: light.18756343ecfabc2aa67b
    type: turn_on
  - device_id: 612348b1eee142129c613cc7d250cb1c
    domain: switch
    entity_id: switch.85060525f4cfa27ae2e0_1
    type: turn_on

2 posts - 2 participants

Read full topic

Cooper Devices RF9500AW Battery Switches

$
0
0

I have a Cooper Wiring Devices RF9500AW battery operated wall switch that I used with SmartThings to control a smart bulb in a closet. When I excluded it and then added it to HA, it shows up as a “Battery Switch” with only the z-wave entity. How do I get it to show button presses?

1 post - 1 participant

Read full topic

Color of active devices

$
0
0

I use a number of button cards. I have a card for lights inside and lights outside.
When both are active, one card is yellow and the other is blue. Is there a possibility to get the same colors?

in the picture below you see inside and outside lights are turned on. both differentiations colors…

Schermafbeelding 2020-07-20 om 22.18.14

3 posts - 2 participants

Read full topic

Smartthings/MQTT Integration Help

$
0
0

Below is the configuration and logs i have for Smartthings/MQTT integration for Home Assistant. I am running HASSIO on a VM in virtualbox. On that install i have the MQTT bridge integration and SmartthingsBridge Addon installed. I am running Mosquitto Broker on the primary machine that i am running virtual box on. The device in ST is also setup with the VM IP and MAC where the bridge is located. It also looks like ST IDE receives the command for the light. But still no go. IT appears to me that everything is communicating but still the lights do not work. Any ideas on what the issue could be?

Smartthings Bridge: Addon in Home Assistant

broker_host: 192.168.1.100
broker_port: 1883
preface: smartthings
state_suffix: state
command_suffix: cmd
login: xxxx
password: xxxx
bridge_port: 2080

Device config in Home Assistant

  - platform: mqtt
    name: "Stairwell"
    state_topic: "smartthings/Stairwell/switch/state"
    command_topic: "smartthings/Stairwell/switch/cmd"
    brightness_state_topic: 'smartthings/Stairwell/level/state'
    brightness_command_topic: 'smartthings/Stairwell/level/cmd'
    payload_on: "ON"
    payload_off: "OFF"
    retain: true

Smartthings Bridge Addon Log:

info: Incoming message from MQTT: smartthings/Stairwell/switch/cmd = ON 
info: Incoming message from MQTT: smartthings/Stairwell/switch/cmd = ON 
info: Incoming message from MQTT: smartthings/Stairwell/level/cmd = 107 
info: Incoming message from MQTT: smartthings/Stairwell/switch/cmd = ON  
info: Incoming message from SmartThings: smartthings/Stairwell/level/state = 100 
info: Incoming message from SmartThings: smartthings/Stairwell/level/state = 70 
info: Incoming message from SmartThings: smartthings/Stairwell/switch/state = off 
info: Incoming message from SmartThings: smartthings/Stairwell/switch/state = on 

MQTT Broker Logs:

1595276422: Received PUBLISH from home-assistant-1 (d0, q0, r0, m0, 'smartthings/Stairwell/switch/cmd', ... (3 bytes))
1595276422: Sending PUBLISH to mqttjs_c0d10c30 (d0, q0, r0, m0, 'smartthings/Stairwell/switch/cmd', ... (3 bytes))
1595276424: Received PUBLISH from home-assistant-1 (d0, q0, r0, m0, 'smartthings/Stairwell/level/cmd', ... (3 bytes))
1595276424: Sending PUBLISH to mqttjs_c0d10c30 (d0, q0, r0, m0, 'smartthings/Stairwell/level/cmd', ... (3 bytes))
1595276424: Received PUBLISH from home-assistant-1 (d0, q0, r0, m0, 'smartthings/Stairwell/switch/cmd', ... (2 bytes))
1595276424: Sending PUBLISH to mqttjs_c0d10c30 (d0, q0, r0, m0, 'smartthings/Stairwell/switch/cmd', ... (2 bytes))
1595276424: Received PUBLISH from home-assistant-1 (d0, q0, r0, m0, 'smartthings/Stairwell/switch/cmd', ... (2 bytes))
1595276424: Sending PUBLISH to mqttjs_c0d10c30 (d0, q0, r0, m0, 'smartthings/Stairwell/switch/cmd', ... (2 bytes))
1595276425: Received PUBLISH from home-assistant-1 (d0, q0, r0, m0, 'smartthings/Stairwell/switch/cmd', ... (2 bytes))
1595276425: Sending PUBLISH to mqttjs_c0d10c30 (d0, q0, r0, m0, 'smartthings/Stairwell/switch/cmd', ... (2 bytes))
1595276426: Received PUBLISH from mqttjs_c0d10c30 (d0, q0, r1, m0, 'smartthings/Stairwell/level/state', ... (3 bytes))
1595276426: Sending PUBLISH to home-assistant-1 (d0, q0, r0, m0, 'smartthings/Stairwell/level/state', ... (3 bytes))


1595276503: Received PUBLISH from mqttjs_c0d10c30 (d0, q0, r1, m0, 'smartthings/Stairwell/switch/state', ... (3 bytes))
1595276503: Sending PUBLISH to home-assistant-1 (d0, q0, r0, m0, 'smartthings/Stairwell/switch/state', ... (3 bytes))
1595276504: Received PUBLISH from mqttjs_c0d10c30 (d0, q0, r1, m0, 'smartthings/Stairwell/switch/state', ... (2 bytes))
1595276504: Sending PUBLISH to home-assistant-1 (d0, q0, r0, m0, 'smartthings/Stairwell/switch/state', ... (2 bytes))
1595276507: Received PUBLISH from mqttjs_c0d10c30 (d0, q0, r1, m0, 'smartthings/Stairwell/level/state', ... (2 bytes))
1595276507: Sending PUBLISH to home-assistant-1 (d0, q0, r0, m0, 'smartthings/Stairwell/level/state', ... (2 bytes))

1 post - 1 participant

Read full topic

Webhooks - Tautulli / HASS issues

$
0
0

Apologies if I haven’t posted in the correct category.

I’m having troubles setting up webhooks from Tautulli to HASS (both hosted in containers on the same host). I am trying to get started with something simple (flash a hue bulb when something plays) however it keep getting this error every time the webook is triggered by Tautulli:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 97, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/usr/src/homeassistant/homeassistant/components/automation/webhook.py", line 30, in _handle_webhook
    result["json"] = await request.json()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_request.py", line 584, in json
    return loads(body)
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Interestingly, I can trigger the HASS automation from curl/invoke-webrequest from PoSh by hitting: http://localIPforHASS:8123/api/webhook/plexdim

It feels like HASS doesn’t like however the request is formatted by Tautulli but after testing it PostBin I can’t see anything wrong with it.

Any help is appreciated, I feel like I’m going insane!

1 post - 1 participant

Read full topic

How to |int these states and create a simple template

$
0
0

Continuing the discussion from Automation Trigger: list of devices:

trying to use this:

{% set alert_level = states('input_number.battery_alert_level') %}
 {{ expand('group.battery_sensors')
         |selectattr('state', 'lt', alert_level)|list|count}}

won’t work, since the states (of the battery sensors) are strings, and I can’t ‘lessthan’ them even though the template itself is error free. I get the old 100 < 50 = true effect…

Is there no way to make int’s out of these states in the template itself, so I can also int the alert_level, and true numerical evaluation is possible?

thanks if you would have a look please.

1 post - 1 participant

Read full topic

Set graph axis range on history graph?

$
0
0

I use the history graph quite a bit to track solar panel production and electricity usage for various devices in my home. However, I sometimes get erroneous data (e.g. wattage reading of +1M W) from my system. Not sure why, but it happens. When it does, the graph becomes useless since it is scaled to the 1M W range rather than the 0-500W range I typically need. Is there any way to remove out of range data from history or produce history graphs with a specific Y-axis range???

1 post - 1 participant

Read full topic


Fix Scripts To Use Names Instead of Script.1234567890

$
0
0

This may have been something I unintentionally did to myself, apologies if this is a noob mistake. My scripts currently show as Script.1234567890 is there a way to make it so they use the name instead. Currently I open a second tab, search for the script I want and then hover over the edit link to get the number from the URL, but this seems like something I shouldn’t have to do, is there a way to make it use the script name instead?

Thanks in advance.

2 posts - 2 participants

Read full topic

No background image with panel true

Motion sensor - Shelly connectivity

$
0
0

Hi

Question… I want to have a smart motion sensor that can interact with Shelly via HA. I have seen most of the projects have a sensor wired to the Shelly relay but I want it to be wireless. Is that possible?

If so, do I need any extra hardware apart from Shelly, the rasp pi that runs HA, and the motion sensor?

How is the connectivity done between the sensor and HA? Via WiFI?

Thanks

1 post - 1 participant

Read full topic

Help with automation input conditions and reuse

$
0
0

Hi

I am trying to make an automation that has three features for controlling my lights.

The first feature is to have some form of input flag for example if I have a flag called “night_time” and if it is true, then motion triggers don’t turn the lights on.

The second feature is similar to the first but for example if I have a flag “ambient” if true it turns the room lamps on when motion is detected rather than the light.

I.e. if motion is detected and ambient is true then turn on light.{room}_lamp else turn on light.{room}

Finally I have named all my lights, motion sensors and lamps in the same pattern, so I wondered rather than having loads of duplicate automations, if I could use some template instead?

I.e.

if binary_sensor.{room}_motion is detected then turn on light.{room} and start timer.{room}

1 post - 1 participant

Read full topic

Difference between two sensors - Efergy

$
0
0

Hi All,

I have an efergy which i am displaying.
I have two sensors. Solar, and main

Since the efergy doesn’t sense direction i want to be able to display main-solar , to display houses current state.
Ie feeding into the grid, or drawing from the grid

I am struggling to get this to work.
current YML below - Thanks in advance

sensor:

  • platform: efergy

    app_token: deleted

    utc_offset: 10

    monitored_variables:

    • type: instant_readings

    • type: amount

      period: day

    • type: current_values

Sensor:

  • platform: value_template

    sensors:

    friendly_name: “Net_House_Energy”

    unit_of_measurement: ‘kWh’

    value_template: “{{ states(‘sensor.efergy_784012’) |float + states(‘sensor.efergy_741400’) | float }}”

1 post - 1 participant

Read full topic

HA TTS to phone? Even possible?

$
0
0

This is probably a stretch, but I’m wondering if we can have HA TTS to our phones and have our phones actually speak the response.

My thinking is for HA automations or alerts when I’m not home. I have my Alexa’s respond to most things easily, and also notify me of things etc, but while driving, always having to open the mobile msg to see the alert is a pain. It would be really cool to have it speak instead. Siri, Alexa, Google whatever.

This even possible?

1 post - 1 participant

Read full topic

Alexa Routines not triggering Home Assistant

$
0
0

I cannot for the life of me get an Alexa routine to trigger anything in HASS. I’m using the Nabu Casa integration and everything else seems to work flawlessly. I can control all my z-wave and custom devices with no issues at all if i have her do a direct command to them but as soon as i have her perform an action as part of a routine, nothing happens.

example:
Me; Alexa, turn on front porch light.
Alexa : Acknowledgement sound.
Light: Turns on.

i then go set that same action in a routine

Me: Alexa, test front light
Alexa: Acknowledgement sound
Light: Stays turned off

Interestingly i can find tons of people asking questions about having HASS trigger Alexa Routtines but nothing on my specific issue. Has anyone encountered this? Do i have something configured wrong somewhere? If i am missing something please just point me in the right direction because i am at a total loss at this point.

1 post - 1 participant

Read full topic


Problem with Syntax for "wait" function in script

$
0
0

I’m trying to setup a script that if I trigger will turn off the lights when I play something on my media player. I’m not a coder so I’ve tried coping the syntax from the home assistant help. My problem is the script doesn’t wait it just moves on to the actions.

Thanks for your help!

'1595295885896':
  alias: Movie Lights
  sequence:
  - after: sunset
    condition: sun
  - condition: state
    entity_id: light.dimmable_light_4
    state: 'on'
  - condition: state
    entity_id: light.linear_nortek_security_control_llc_pd300z_2_plug_in_dimmer_module_level
    state: 'on'
    # Wait until media player have stop the playing
  - wait_template: "{{ is_state('media_player.living_room', 'playing') }}"
  - data: {}
    entity_id: light.linear_nortek_security_control_llc_pd300z_2_plug_in_dimmer_module_level
    service: light.turn_off
  - data: {}
    entity_id: light.dimmable_light_4
    service: light.turn_off

1 post - 1 participant

Read full topic

How to narrow down and troubleshoot WebSocket API Error?

$
0
0

Just wondering if there is a place to narrow down my search when troubleshooting an error like this?

Log Details (ERROR)
Logger: homeassistant.components.websocket_api.http.connection.139846779334224
Source: core.py:1222
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: July 15, 2020, 2:03:12 AM (83 occurrences)
Last logged: 1:30:38 PM

expected float for dictionary value @ data['value']
Invalid datetime specified: for dictionary value @ data['datetime']
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
    connection.context(msg),
  File "/usr/src/homeassistant/homeassistant/core.py", line 1222, in async_call
    processed_data = handler.schema(service_data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 208, in __call__
    return self._exec((Schema(val) for val in self.validators), v)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 287, in _exec
    raise e if self.msg is None else AllInvalid(self.msg, path=path)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 283, in _exec
    v = func(v)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: expected float for dictionary value @ data['value']

1 post - 1 participant

Read full topic

1 media slider for multiple media devices?

$
0
0

I have a multi-zone audio setup using monoprice amp. What I would like to do is group multiple zones into 1 volume slider. My current universal media player controls the power state of both devices, but the volume slider only controls the first child

https://paste.ubuntu.com/p/hBDqDYSgBW/

Any help would be appreciated.

1 post - 1 participant

Read full topic

How do you use secrets in lovelace-ui.yaml

$
0
0

When I try to use a secret from my secret.yaml file in the form of

  - hold_action:
      action: call-service
      service: envisalink.alarm_keypress
      service_data:
        entity_id: alarm_control_panel.home_alarm
        keypress: !secret envisalink_bypass

I get an error “unknown tag !<!secret> at line 17, column 44: … press: !secret envisalink_bypass ^”

I try single and double quoting it, error goes away, but it literally seems to try to send that text vs. the alarm bypass code string from my secrets file.

I haven’t been able to find an example of the proper usage of !secrets in a lovelace yaml file.

Any guidance would be very much appreciated.

G

P.S. I did restart HA after I updated the secrets file. I also double checked spelling, etc.

Thanks.

1 post - 1 participant

Read full topic

HA Restart Issues

$
0
0

Has anyone else been having issues other the last week or so - HA not rebooting - having to unplug to get it to even partially load.

I can’t get it to load at all now. The latest version I had was 112.3 or 4

TIA

1 post - 1 participant

Read full topic

Viewing all 105515 articles
Browse latest View live


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