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

Inconsistent scene behaviour

$
0
0

I made the scene as shown below, intended to switch all my lights in a room. I have a mixture of Sonoff, Tuya and KaKu devices (controlled by RFLink). All entities can be controlled without problems from the HA dashboard and with “header toggle” I can switch on/off all entities without problem.

However when I make an automation like:

- id: '1641248426939'
  name: All Off
  entities:
    switch.kastlichten_socket_1:
      device_class: outlet
      friendly_name: Kastlichten Socket 1
      state: 'off'
    switch.piano:
      friendly_name: Piano
      state: 'off'
    light.1000fc883e:
      restored: false
      supported_features: 4
      friendly_name: Tafellamp
      supported_color_modes:
      - brightness
      state: 'off'
      brightness: 2
    light.10011071e5:
      restored: false
      supported_features: 4
      friendly_name: Salontafel
      supported_color_modes:
      - brightness
      state: 'off'
      brightness: 254
    light.g125_gold:
      min_mireds: 153
      max_mireds: 500
      supported_color_modes:
      - brightness
      - color_temp
      - onoff
      color_mode: color_temp
      brightness: 21
      color_temp: 370
      hs_color:
      - 28.391
      - 65.659
      rgb_color:
      - 255
      - 166
      - 87
      xy_color:
      - 0.526
      - 0.387
      friendly_name: G125 Gold
      supported_features: 0
      state: 'off'
    light.g125_gold_2:
      min_mireds: 153
      max_mireds: 500
      supported_color_modes:
      - brightness
      - color_temp
      - onoff
      color_mode: color_temp
      brightness: 21
      color_temp: 370
      hs_color:
      - 28.391
      - 65.659
      rgb_color:
      - 255
      - 166
      - 87
      xy_color:
      - 0.526
      - 0.387
      friendly_name: G125 Gold 2
      supported_features: 0
      state: 'off'
  icon: mdi:lightbulb-group-off

I get erratic behavior and sometimes it works other times some of the entities don’t switch to off or HAS status indicates “off” but lamp is still “on”.

Any suggestions? I would like to try to put a delay between the switching of the entities but cannot figure out how to do this.

2 posts - 2 participants

Read full topic


Shutters not down

$
0
0

I want my shutters down at sunset (+offset), for wich I created a sensor, but at last at a certain time (helper).

So I created this automatisation

alias: Rolluiken 's avonds neer
description: ''
trigger:
  - platform: time
    at: sensor.rolluik_avond
  - platform: time
    at: input_datetime.tijdstip_rolluik_avond
condition:
  - condition: template
    value_template: '{{ now() <=  today_at(states(''input_datetime.tijdstip_rolluik_avond'')) }}'
  - condition: template
    value_template: '{{ now() <= states(''sensor.rolluik_avond'') | as_datetime }}'
action:
  - service: script.rolluiken_automatisch_neer
mode: single

I presume it’s a problem of miliseconds, but don’t know how to fix it…

1 post - 1 participant

Read full topic

Wind speed alert / notification

$
0
0

Hi,

i am trying to write an automation for wind speed alert. I want to have a notification if there is a high wind speed outside.

My problem is right now that i get to much notifications. Do you have any ideas how i could solve it?

alias: Wind speed alert
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.xxx_wind_speed
    above: '30'
condition: []
action:
  - service: notify.mobile_app_xxxxx
    data:
      message: Wind über 30 km/h
mode: single

4 posts - 4 participants

Read full topic

SmartThings Integration - ERROR: Something went wrong. Please try to install the SmartApp again

$
0
0

Hi all,

Home Assistant newbie here. I setup HASS in a docker in my swarm and got everything figured out. SmartThings connected no problem and have been loving it. Decided to make the swap to HASS full time and installed it on a RPi. Have HASS setup using HASS OS on RPi3 and I cannot get SmartThings to connect for the life of me. When going through the process, I get " This step requires you to visit an external website to be completed." which takes me to a SmartThings page that shows “ERROR: Something went wrong. Please try to install the SmartApp again.”.

I can’t find any logs to indicate the issues, and HA is available to the internet already via HTTPS. It is being proxied through Traefik with automatic Lets Encrypt certs, which is what it was doing before. The webhook URL it displays is working. The “external” and “internal” URL’s are set accordingly.

In researching this issue I’ve…

  • Used hass_smartthings_remove to clear any ST HASS SmartApps
  • Removed the cloud and smartthings config files
  • Restarted HASS and ST
  • Taken my phone off of WiFi
  • Uninstalled the ST app from my phone
  • Purged all Personal access tokens and recreated them
  • Tried to use HA Cloud instead of my reverse proxy

Can anyone give some insight so I can get my automations working again? :frowning:

1 post - 1 participant

Read full topic

Person state and Android app access URL

$
0
0

My current person state depends on two device tracker entities. My router and gps device tracker from the Android app.
This setup works good but I would love to improve it.

Is there a possibility to create a device tracker based on the access URL of Android app? I mean if the app uses the external URL to connect to Home Assistant, my person status should change to “not home”.

1 post - 1 participant

Read full topic

Google ChromeCast Pause Automation

$
0
0

Trying to find option to pause ChromeCast using automations!
It’s possible to control ChromeCast from lovelace.
Also, it’s possible to use ChromeCast as trigger, so I can use pause as trigger, but it’s impossible to set ChromeCast as Action.

Google Chromecast 3 1080p NC2-6A5
Plan to use Xiaomi MagicCube Shake > Pause ChromeCast

1 post - 1 participant

Read full topic

UI bug - Input_select doesn't open properly

$
0
0

Hi,

The input_select entities and the dropdown boxes in general do not open properly in Lovelace interface.
If a dropdown menu is at the bottom of a page, the list tries to expand downwards while there is very little space for that. The interface is almost unusable. Isn’t it possible to have the menu open upwards instead, where is space to display it ?

Thanks!

1 post - 1 participant

Read full topic

Xiaomi Miio xiaomi Mijia G1 type vacuum


Missing device in Integrations

$
0
0

I was playing around with my Shelly Intergrations in attempt to get a new Shelly button 1 going. I originally had two Shelly bulbs and they were working fine using the stock Shelly integration.

In my finite wisdom, after looking at videos and reading I went to HACS and installed Shelly for HASS. That is where the fun began.

When I restarted I got errors relating to Shelly for HASS.

So I removed the Shelly for HASS, restarts were ok, but the original integrations were unhappy. I deleted them and two were rediscovered.

My RGBW bulb wont come back, and when I go to add it back in manually, the pop up says the device is already configured.

The good news is, I have the button configured to toggle a three way switch in my detached garage.

1 post - 1 participant

Read full topic

Home_assistant 404 not found

$
0
0

Hey all,

So I’ve been trying to setup HA and google_assistant but have been hitting a brick wall.
I’m running HAOS with supervisor and pushing it through an NGINX reverse proxy.

I believe the issue is that the URL: https://ha.myDomain.com/api/google_assistant results in a “404: Not Found” error. I tried hitting it directly using the IP address: http://192.168.0.14:8123/api/google_assistant which returns the same result so I don’t believe it’s a proxy issue. The /auth/authorize URLs still behave as expected so I believe its something related to google_assistant specifically. Is there a step i’ve missed like enabling the google_assistant addon or something?

I’ve searched around and not been able to find anyone having a similar issue. Does anyone know why this might be happening?

Thanks

1 post - 1 participant

Read full topic

Recieve data from google home into ha

$
0
0

so i had a random thought… getting google home states into home assistant…
so when i run commands on the ga webserver, ie

curl -d 'name=ssjrocks&command=is my light turned on?' homeassistant.local:3000/assistant

i get a response like this

{"response":"","audio":"/server/audio?v=1642724790050","success":true}

this outputs a wav file with the google assistant response to my query…
is there an easy to use program that i can pass a wav file to and it would output the speech of the wav file as text? this would allow 2 way communication between HA and google home.
its not a perfect solution… but calling this to update my devices states in home assistant could be quite usefull

1 post - 1 participant

Read full topic

Create a Condition Template Using a Trigger ID

$
0
0

I have 3 motion sensors in kitchen den and foyer. Similarly I have 3 Helpers brightness_den, brightness_kitchen and brightness_foyer.

I want to do the following:
If Den Motion Senses motion and the relevant brightness helper >0 then Do something.

So I created trigger based on the 3 motion sensors and use the trigger ID den, kitchen and foyer for the relevant trigger.

Then I want to create a Choose Template Condition:

{{ (states(“input_number.brightness_{{trigger.id}}”) | int) > 0 }}

Problem is “input_number.brightness_{{trigger.id}}” not resolving to "input_number.brightness_den if den motion sensor is triggered.

Any help is appreciated.

1 post - 1 participant

Read full topic

How to manually remove an orphaned repo from HACS in HomeAssistant

$
0
0

I recently wanted to add a new repo to Home Assistant using HACS (specifically, ha-sun2, so I could take a stab at automating my roller shades to open without blinding me in the morning while I’m still in bed). In HACS, there’s a “Custom Repositories” option which allows you to add repositories from Github and install them automagically.

In my case, the option was greyed out. There are a couple of issues on Github against the HACS repo that talk about this problem, but they’re all either very old or locked.

I noticed that one of my custom repos, Wakatime (an addon used to track time spent using code editors) was removed from Github, and the repository is returning a 404 now.

I suspected that this was the reason that the “Custom Repositories” option was grayed out. Attempting to remove the Wakatime Repo from HACS had no effect - it was still listed even after choosing the option to remove it, and restarting after attempting to remove it had no effect.

Since this orphaned repo was graying out the “Custom Repos” option (or so i suspected), this ffectively meant that HACS was stuck in time – I was unable to add new repos, cutting me off from a lot of desired functionality in HA.

I googled around and found very little info on how to manually remove a repo from HACS, so posting some steps here in case its useful to others. This isn’t official at all, use at your own risk, editing files directly isn’t advised, etc.

Steps to remove a custom repo from HACS manually

  1. Prep
    1. Get the name or part of name of the repo you’re trying to remove (in my case, wakatime)
    2. Make sure “Terminal & SSH” add-on is enabled (this is the low-key one that doesn’t need to extra permissions).
  2. Disable HACS
    1. Turn off HACS under Integrations
    2. Restart HA
  3. Open Terminal (using the Terminal & SSH add-on)
  4. Remove the custom_component if it exists
    1. cd config
    2. cd custom_components
    3. ls to find the name of the repo
    4. If present, delete it with rm -rf wakatime
  5. cd ..
  6. Remove references to the component in hacs.repositories
    1. cd .storage
    2. vim hacs.repositories to edit HACS’ list of repos
    3. Type / and then the name of the repo to find it in the json file
    4. Delete the entry in the json file for the repo (I use dd and keep pressing dd until the section was gone, but there’s probably a vimmier way)
    5. Save and quit by typing :wq
  7. Remove references to the component in the hacs directory
    1. cd hacs
    2. grep wakatime *
    3. A file should be listed with a numeric name
    4. rm <file> where is the name of the file from the previous step
  8. Restart HACS and check to see if the “Custom Repositories” option is enabled
    1. Reenable hacs
    2. Check to see if “Custom Repositories” is available
    3. (A restart wasn’t necessary for me here)

I don’t have the patience to go through and format this markdown to text. I hope this helps someone all the same.

In the future, I wonder if HACS could be updated to move orphaned repos (those that return 404) to the already-existing blacklist. This seems like an easy way to keep people from losing functionality. Until then, this solution seems to work.

1 post - 1 participant

Read full topic

Trouble Configuring Numeric State Time Based Trigger

$
0
0

Hello,

I am new to HA and I’m just tying up the last few loose ends of my conversion. I’ve tried to trigger automations based on an input date/time but I cannot figure out the magical combination to make the trigger fire the way I want. My input automations are solid and they update the timestamp appropriately. Its the firing of subsequent automations based on how old that input datetime is that’s giving me the trouble.

I’ve looked at dozens of threads, videos, and the docs but this all seems overly complicated for such a simple thing.

I just want this automation to fire when the date/timestamp is greater than “X”. Whether it’s 10 seconds or 10 days, I feel like I’ve tried every combination of these settings and I can’t get any of them to work:

What attributes do I need to fill out (nothing I use seems to make sense) and what value template should I be using?


I’m nowhere near as good on the backend as some of you but I’m fully capable of copying/pasting yaml if I need to :grinning:

8 posts - 2 participants

Read full topic

How do you make an automation/script if its running and you turn off turns off the switch

$
0
0

so i have 2 things i wanna do…

for my sisters Home assistant. i setup a automation turns on her garage light at 9:30 till 10pm and it works great… and i linked it to a button

but if she wants to hit the automation button to turn it off leaves the light on… anyway to turn it off when you press the button?

2nd…
for my sisters Block heater… i had to do a script to a button… so when she presses it… it runs a timer for 4 hours then shuts off the switch/plug … but id also like it if you press Turn 4 Hour timer button to off… that it would turn off the plug… instead of turning off the script but leaving the plug still on

is there a way to do that?

1 post - 1 participant

Read full topic


Unable to hide group switch

$
0
0

Hey all, long-time watcher but first time with an issue I cannot figure out.

I am using the Grid Card but I really do not like having group switch control and/or the header.

Tried using “control:hidden” but it seems that is no longer supported in the grid cards.

Here is what I want to get rid of:

Thanks for the help.

1 post - 1 participant

Read full topic

Automation for key held down similar to how Hue’s brightness buttons work

$
0
0

Is it possible to create an automation that continues to perform an action (increase the brightness) as long as a button is held down? I want to replicate the behaviour of the brightness buttons on the Hue Dimmer Switches.

My switch (a Z-Wave 4-channel Namron switch) emits a KeyHeldDown event when it detects that the button is being held down, and a KeyReleased event when the button is released. In other words, there are no further events being emitted as long as the button is being held down, so the automation must somehow trigger a loop of continuously increasing the brightness and then use the KeyReleased event to cancel/stop it.

So, to be clear, I can detect these events just fine and create automations based on them, it’s the do-something-repeatedly-until-the-button-is-released part I am stuck on.

1 post - 1 participant

Read full topic

Problems with remote access

$
0
0

Tbh I didn’t want to throw my computer out of the window until I started messing with port forwarding.

I detailed the issues I’m facing here: Public DuckDNS domain is not loading

Open Port Checker says my port is not opened. But I did the port forward in my eero router.
image

I have a Cogeco Modem behind my router (CODA-4589)
Basically, my setup is
CODA Modem → Eero Router Mesh → Unmanaged Switch
192.168.0.1 = CODA Modem
192.168.4.1 = Eero Router
192.168.4.10 = Home Assistant

Am I supposed to do the port forwarding in Eero or in the CODA modem?
I did it in Eero Router but it’s not working.
So I tried doing it in the CODA modem instead and I got the error “Local IP isn’t in LAN IP address subnet”

Any help would be greatly appreciated before I throw my computer out of the window for real :stuck_out_tongue:

7 posts - 3 participants

Read full topic

Automation not triggering from rest api data

$
0
0

I am using rest api to retrieve time for 5 different instances. Then using trigger template to set automation for the same time retrieved from the api. Automation not triggering when the time comes.


code for trigger template:

{{ states('sensor.time') == (as_timestamp(sensor.dhuhr_time) |int -60)| timestamp_custom('%H:%M', True) }}'

Previously used this code also which didnt work either:

{{now().strftime("H:%M") == (((state_attr('"sensor.asr_time', 'Time in Milliseconds') | int / 1000) + 0*60 ) | timestamp_custom('%H:%M'))}}

1 post - 1 participant

Read full topic

Unable to configure MQTT Button

$
0
0

Hello,
I’m trying to configure an MQTT button to send a value to a topic on a custom device.
I’m using HA core-2021.12.10 so it should have the ability to be used.

This is my section of the configuration.yaml file:

#MQTT BROKER
button:
  - platform: mqtt
    unique_id: via_vela_gate
    name: "Cancello Via Vela"
    command_topic: "/viavela/antsthings/cancello/command"
    payload_press: "1"
    qos: 0
    retain: false

As soon as I press the button in HA I got the popup ’Failed to call service button/turn_off. Service not found.' and nothing happens. Do I have done something wrong?

Thank you!!!
//Antonio

1 post - 1 participant

Read full topic

Viewing all 106313 articles
Browse latest View live


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