I wanted to add home assistant to alexa. at the beginning it worked i could use emulated hue to controll my lights from home assistant but now it doesnt respond and it didnt update my device list in alexa
1 post - 1 participant
I wanted to add home assistant to alexa. at the beginning it worked i could use emulated hue to controll my lights from home assistant but now it doesnt respond and it didnt update my device list in alexa
1 post - 1 participant
I’m trying to match a string in an entity attribute using a template.
I’ve tried a few combinations but not getting a match.
My entity looks like this:
My automation:
alias: Network - Batchelor(ette) Night On/Off
description: ''
trigger:
- platform: time_pattern
minutes: /1
condition:
- condition: template
value_template: >
{{ 'The Bachelorette' in
states.sensor.sonarr_upcoming_media.attributes.data }}
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.bachelor_night
mode: parallel
max: 10
I’ve also tried:
{{ 'The Bachelorette' in state_attr(“sensor.sonarr_upcoming_media”, “data”) }}
Neither result in the automation being triggered.
5 posts - 3 participants
I am trying to use hassio.stdin but I can’t make it work.
So what I did: I created a shell script located in “/config” called “myscript.sh”.
I would like to run that script in a ssh shell using hassio.stdin.
So I wrote the service like this (a0d7b954-ssh is my hostname for “SSH and Terminal” add-on):
service: hassio.addon_stdin
data:
addon: a0d7b954-ssh
input: "/config/myscript"
But nothing happens in SSH & Terminal log…
Maybe it is misconfigured or a misunderstanding on my side…
Any help will be appreciated.
1 post - 1 participant
Where should I look to see the value of a zwave node changing? I just added a zooz outdoor motion detector and want to prepare some automations before hanging it outside. I keep waving my hand in front of it to see if I can trip some value to change so I know what entity to automation against but I can’t seem to figure out what entity id is changing when it registers motion.
Thanks for the assistance
1 post - 1 participant
Hey guys, I’m working on a theme that basically revolves around a single color with all other shades referencing that value. the yaml is something like this:
g-accent-h: '200'
highlight: hsl(var(--g-accent-h),50%,70%)
heavy-highlight: hsl(var(--g-accent-h),50%,90%)
lightdark: hsl(var(--g-accent-h),50%,30%)
heavydark: hsl(var(--g-accent-h),50%,15%)
ultradark: hsl(var(--g-accent-h),50%,5%)
ha-card-background: 'var(--lightdark)'
I was now wondering is it possibile to change the value of the variables without editing the yaml file, with an automation or a script?
1 post - 1 participant
Hello All,
I have Home Assistance installed on Rasberry Pi:
core-2021.7.4
supervisor-2021.06.8
Home Assistant OS 6.1
All up-to-date.
I have installed RM4Cmini no problem, but when trying to add SP4L-AU smart wifi plug, it fails.
Logs:
Logger: homeassistant.components.broadlink.config_flow
Source: components/broadlink/config_flow.py:40
Integration: Broadlink (documentation, issues)
First occurred: 11:33:53 (2 occurrences)
Last logged: 12:09:38
Unsupported device: 0x7568. If it worked before, please open an issue at https://github.com/home-assistant/core/issues
Anyone knows how to add this device? Thank you.
1 post - 1 participant
Hi there,
I’m losing my mind over this, my automation just stopped working for no reason at all. I made one change, reverted it, and ever since it just will not work. I followed this guide. My set up is EXACTLY the same. I don’t understand what the problem is, it worked earlier.
input_number:
bedroomac_timer_minutes:
name: "Bedroom AC Timer"
min: 10
max: 360
step: 10
input_boolean:
bedroomac_timer_on:
name: "Bedroom AC Timer Switch"
initial: off
icon: mdi:timelapse
Edited automation in visual editor:
TRIGGERS
platform: state
entity_id: switch.bedroom_ac
to: 'on'
CONDITIONS
condition: state
entity_id: input_boolean.bedroomac_timer_on
state: 'on'
ACTIONS
delay:
minutes: '{{ states(''input_number.bedroomac_timer_minutes'') | int }}'
service: switch.turn_off
target:
entity_id: switch.bedroom_ac
Any help would be massively appreciated. It makes no sense.
1 post - 1 participant
Suddenly last week, most all of my automations stopped working and all are unstable… they work sporadically.
Do I need to start with a clean install or is there a way to fix this?
1 post - 1 participant
Hello
I am an average programer and I need some help please.
I have a problem that I thought would be easy but it appears to be difficult to solve. ( or I am making it hard)
I have a water tank level meter
I have 5 inputs. Full, 3/4, 1/2, 1/4, 0
Due to corrosion concerns I turn the power on to the level sensor for 10 sec, get the level reading and then turn it off.
When the power is on to this system I need to take the value that is read, either 5, 4, 3, 2, 1 and save it as a variable.
This is what I am struggling with.
I am using and ESPHome device to deliver these levels to HA.
I have tried an automation but I cannot get the value to stick.
Here is my code
When the switch.water_relay = ON
Then I need the sensor.water_tank_level value to be saved to sensor.water_tank_level_store_2
automation:
7 posts - 2 participants
Hi, I’m trying to solve a problem with mi robot vacuum map which randomly rotates and it makes the zoned cleaning useless.
I think I could solve this problem by checking the current map orientation end setting properly zone cleaning coordinates in node red. But for this I need a possibility of checking current vaccum position. Is it possible to get this information in home assistant?
2 posts - 2 participants
Hi, i am a newbie of Home Assistant. after i integrate the eWeLink add-ons, it works fine in its own software which i located it at the side bar. However, all the switches and lights that have been added in the dashboard fail to work. It will appear message “Failed to call service switch/turn.on. Service not found” or “Failed to call service switch/turn.off. Service not found” every time i toggle the ON/OFF switch. I did not do any coding, i just a add card to the dashboard.
Anyone of you experience the this problem?
1 post - 1 participant
Hi all,
I cannot find the answer on my problem:
I have some electric devices that are turned on if I have a lot of excess solar energy. I wish to have a “dummy sensor” that shows the total power of the turned on devices.
So for example: I have 2 heaters controlled each by a switch:
I think the best option is to create a template sensor, but how to calculate the value?
sensor:
- platform: template
sensors:
totalpower:
friendly_name: Total power consumption
unit_of_measurement: Watt
value_template: >
??? (value = (800 when switch1 on) + (1600 when switch2 on))
The only solution I currently have is to build an if statement:
This would problably work, but will become a extremelly long if statement when adding more and more electric devices.
Thx!
1 post - 1 participant
My z-wave devices are fairly reliable but not always.
It sometimes happens that a device becomes unresponsive. So for example when I notice the basement is getting too humid I turn on the z-wave switch to which I’ve connected the dehumidifier. Sometimes that fails. I was wondering whether there’s a way for the automation to detect this failure?
1 post - 1 participant
Hey there, this script stopped working after the most recent update. The error logs showed this message, when the script initially tried to decrease brightness, starting last night:
error: unsupported operand type(s) for +=: ‘nonetype’ and ‘int’ home assistant
So I deleted and recreated the script, having found similar issues fixed in the same way since updating to major release Core 7, but now it just doesn’t execute - no errors, it runs the first action, then does nothing.
sequence:
- type: turn_on
device_id: 1889e75b724cf08a32723b7fa7a299e4
entity_id: light.master_bedroom_light_2
domain: light
brightness_pct: 30
- wait_template: '00:05:00'
- device_id: 1889e75b724cf08a32723b7fa7a299e4
domain: light
entity_id: light.master_bedroom_light_2
type: brightness_decrease
- wait_template: '00:05:00'
- device_id: 1889e75b724cf08a32723b7fa7a299e4
domain: light
entity_id: light.master_bedroom_light_2
type: brightness_decrease
- wait_template: '00:05:00'
- type: turn_off
device_id: 1889e75b724cf08a32723b7fa7a299e4
entity_id: light.master_bedroom_light_2
domain: light
mode: single
alias: Bedtime Lights
Again, the only changes I’ve made were the Core 7.4 update. Any help is much appreciated!
4 posts - 2 participants
Hi all,
I created an automation which send me a notification incl. a picture which is located in the www
(/config/www/klingel_haustuer.jpg
) folder. The automation has no trigger at the moment, I am just playing around and triggering it manually.
The notification itself works, but the image is not the latest available. It is an old version of it (cached???). The file /config/www/klingel_haustuer.jpg
is up to date. Any idea why not the version of the file is sent, but an older version of it?
alias: .MUSTER - Nachrichten versenden (BILD) inkl. Klickaktion
description: ''
trigger: []
condition: []
action:
- service: local_file.update_file_path
data:
entity_id: camera.local_file
file_path: /config/www/klingel_haustuer.jpg
- service: notify.mobile_app_pixel_5
data:
title: Klingeling
target: klick
data:
image: /local/klingel_haustuer.jpg
clickAction: /local/klingel_haustuer.jpg
message: Es hat geklingelt!
mode: single
1 post - 1 participant
I have a Meross integration which started acting up recently and devices keep going offline (even though it says they are connected in the logs) while I have raised the issue with the owner, I need a way to fix their availability with some automation
It looks like this when they stop responding:
I created an automation like so but it never triggers:
- id: '1627152370529'
alias: Meross is unavailable
description: ''
trigger:
- platform: state
entity_id: switch.recliners
to: Unavailable
for: 0:05:00
condition: []
action:
- service: notify.mobile_app_sm_g998b
data:
message: Meross is unavailable for more than 5 mins
mode: single
Any ideas why it is not triggering, I’m thinking the trigger logic but it looks good to me
1 post - 1 participant
Hi, I’m getting duplicates with auto-entities, I already tried unique: true and unique: entity and got same results, shows Hue zones duplicated:
type: custom:auto-entities
card:
type: entities
title: Lights On
unique: entity
filter:
include:
- domain: light
state: 'on'
1 post - 1 participant
I have a sensor (parent_sensor
below) with attribute “last growth rate”, and I’ve created a template sensor in my configuration.yaml (new_sensor
) to extract that value:
- platform: template
sensors:
new_sensor:
value_template: >-
{{ states.sensor.parent_sensor.attributes['last growth rate'] }}
The new entity works and I get the value for this attribute correctly. When I click on the sensor to get the details it gives me a graph of the history of the sensor value. In the history tab the history for the new_sensor is recorded fully. At the bottom of that page where it shows graphs of all my sensors the data is displayed as well. But in my lovelace when I try to create a sensor card it tells me “No state history found”. In Grafana when I create a graph for that sensor it also tells me that no data is available. The parent_sensor
works just fine in the sensor card and grafana. I’ve also set up an almost identical template sensor to get the temperature and humidity from my Mi Air Purifier that works as well. Anyone know why this new sensor just seems to not be able to display it’s history?
1 post - 1 participant
Hi,
I’m trying to get something very simple done and I can’t figure it out.
I have a mqtt topic called : mytopic/test with the following json:
{
“state”: “A1 XXXXXXXXX”,
“attributes”: {
“time received”: “Sun Jul 25 11:43:16 2021”,
“group id”: “10.564”,
“receivers”: " (0044545460)",
“capcodes”: [
“0023230”
],
“priority”: 1,
“disciplines”: “Politie (0034560)”,
“raw message”: “Some RAW message”,
“region”: “Somewhere”,
“location”: “”,
“postcode”: “”,
“city”: “Groningen”,
“address”: “”,
“street”: “”,
“remarks”: “”
}
}
I try to get to make a sensor out of this. For this I tried:
sensor:
Now I do get the attributes, but no state name.
For the state name, I want ‘state’ but I cant figure out how to do that.
Can anyone help me out here please?
1 post - 1 participant
motion sensor (tuya) appears as a switch in ha how can i change that?
2 posts - 2 participants