In the card for my switches I disabled and deleted one. How can I get it back?
Thanks.
3 posts - 2 participants
In the card for my switches I disabled and deleted one. How can I get it back?
Thanks.
3 posts - 2 participants
I need to add a mid flow node to check for between two times… Something like is it between 4PM and midnight (boolean). Not sure which node to use
1 post - 1 participant
Hello,
I got a 443Mhz LED list with connecting remote.
I like to use HA to send the signals rather than the remote but I dont know how to achieve this.
When I press the remote I see the remote comming up in the HA Enteties and I see the remotes ID.
So, the question is how I can control the lead list with HA, there is no “learn” button on the LED.
Can I use the ID of the remote in any way?
I hope someone can help me find the right track!
1 post - 1 participant
Hi,
I’m pretty noob with HomeAssistant.
I run it with docker. I tried to install Total Connect integration. Setup my username and password but I have these errors
2020-06-21 02:37:01 WARNING (SyncWorker_8) [root] total-connect-client unknown result code -4106 with message: Invalid user code. Please try again..
2020-06-21 02:37:02 ERROR (SyncWorker_8) [root] Could not disarm system. ResultCode: -4106. ResultData: Invalid user code. Please try again.
2020-06-21 02:37:02 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140434109253008] TotalConnect failed to disarm MONTREAL.
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 1260, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/alarm_control_panel/__init__.py", line 128, in async_alarm_disarm
await self.hass.async_add_executor_job(self.alarm_disarm, code)
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/totalconnect/alarm_control_panel.py", line 119, in alarm_disarm
raise HomeAssistantError(f"TotalConnect failed to disarm {self._name}.")
homeassistant.exceptions.HomeAssistantError: TotalConnect failed to disarm MONTREAL.
Also, I installed xmlsec-dev libxml2-dev in the docker.
Could you help me ?
1 post - 1 participant
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)
1 post - 1 participant
Hi. I am trying to create a switch for kodi. The sensor works. i get readings. but the switch doesnt. I dont even get the switch entity created. This is the code.
sensor:
- platform: command_line
command: ssh -i /config/ssh/id_rsa -o StrictHostKeyChecking=no root@192.168.1.84 'vcgencmd display_power'
name: Kodi Sleep Status
switch:
- platform: command_line
switches:
kodi_power:
command_on: "ssh -i /config/ssh/id_rsa -o StrictHostKeyChecking=no root@192.168.1.84 'vcgencmd display_power 1'"
command_off: "ssh -i /config/ssh/id_rsa -o StrictHostKeyChecking=no root@192.168.1.84 'vcgencmd display_power 0'"
command_state: "ssh -i /config/ssh/id_rsa -o StrictHostKeyChecking=no root@192.168.1.84 'vcgencmd display_power'"
value_template: "{{ states('sensor.kodi_sleep_status') == 'display_power 1' }} "
friendly_name: Kodi Power State
What am i doing wrong
1 post - 1 participant
Hello, I’m tried repeat configuration from github, but have error on any .yaml file where is present “%”
while scanning for the next token found character '%' that cannot start any token in "/config/lovelace/views/remote.yaml", line 3, column 2
Example
# lovelace_gen
{% set activities = [
{'entity':'swi.....
1 post - 1 participant
Hi,
I followed this documentation: https://www.home-assistant.io/integrations/rpi_gpio/ and created this configuration:
switch:
- platform: rpi_gpio
invert_logic: true
ports:
20: Amplifier - Sound
21: Amplifier - Power
22: Anchor Light
23: IR Light
It works, but I don’t like the fact that all the switches are bundled together under the same block, so I tried the following:
switch:
- platform: rpi_gpio
invert_logic: true
ports:
20: Amplifier - Sound
21: Amplifier - Power
- platform: rpi_gpio
invert_logic: true
ports:
22: Anchor Light
23: IR Light
It still didn’t unbundle it. Putting two separate “Switch” sections doesn’t work at all.
In both cases above my UI looks like the Left hand side. What is the right config to achieve the right-hand-side?
Thanks!
1 post - 1 participant
Why do my ‘last_updated’ times show with no DST adjustment?
e.g. I’m currently on DST (+1) but I get
2020-06-21 08:05:58.785482+00:00
When actually it is 09:05:58
If this is normal and expected how do I display that time correctly in Lovelace?
(I have the correct time zone set in my Configuration)
1 post - 1 participant
Hi, if anyone could help it would be great - I’m trying to create an automation(s) that is seemingly quite complex for me. I have 5 AC’s connected via IntesisHome integration - generally they work great. The entities are: climate.a,climate.b … climate.e
In addition I have alexa’s which I notify via: notify.alexa_media_a, notify.alexa_media_b … notify.alexa_media_z
and lastly a few iPhones which are notified (actionable push) notify.mobile_app_a notify.mobile_app_b etc’
what I’d like to do is:
If AC state is changed from “off” to anything else:
A. Notify on alexa which AC (climate.X) has been turned on
B. send push message to one or more iPhones that AC (climate.X) has been turned on and have action to a. turn it off, b. send [input text] to X alexa with [input text] message.
Are all these variables possible? I have something kind of working that does this but only for one at a time and I’d rather not make all the permutation if possible via variables, here is what I have so far:
automation to trigger push and alexa
- id: '158900000000'
alias: AC Turned On
description: Someone turned on their Air Conditioner
trigger:
- entity_id: climate.a,climate.b,climate.c,climate.d
condition: []
action:
- data_template:
data:
push:
category: intesis_ac
message: '{{ trigger.to_state.attributes.friendly_name }} just changed to {{
trigger.to_state.state }}'
title: AC state changed
service: notify.mobile_app_a
- data:
data:
type: tts
message: test 1
service: notify.alexa_media_a
push call back
- id: '15909999999'
alias: Notification TTS Button single
description: sends tts to single alexa from push
trigger:
- event_data:
condition: []
action:
- data_template:
data:
type: tts
message: '{{ trigger.event.data["textInput"] }}'
service: notify.alexa_media_a
1 post - 1 participant
Hi,
I will move from a Pi to a mini PC (Core 2Duo E8400 + 4GB RAM) and I would like your opinion on the ideal OS to use. i will docker, and CLI only OS would be fine for me.
What do you think?
1 post - 1 participant
This example, from:
automation:
- alias: Turn on kitchen light when there is movement
trigger:
platform: state
entity_id: sensor.motion_sensor
to: 'on'
action:
service: light.turn_on
entity_id: light.kitchen_light
- alias: Turn off kitchen light 10 minutes after last movement
trigger:
platform: state
entity_id: sensor.motion_sensor
to: 'off'
for:
minutes: 10
action:
service: light.turn_off
entity_id: light.kitchen_light
But how could I implement it with the Automations UI?
If it can’t be, then can I just paste it into my automations.yaml file (with appropriate modifications to suit my set-up), ignoring the fact that it hasn’t got a HA generated id?
Jim
2 posts - 2 participants
I have Tasmota (v8.3.1) on my kettle as per https://templates.blakadder.com/kogan-KASMCDSKTLA.html but can’t configure a sensor for the temperature.
Home Assistant 0.111.4
as per docs I have added the following
# Kogan Kettle temperature
- platform: mqtt
name: "Kettle Temperature"
state_topic: kettle/tele/RESULT
value_template: >-
{% if 5 == value_json.TuyaReceived.DpId %}
{{ value_json.TuyaReceived.DpIdData | int(base=16) }}
{% else %}
{{ states('sensor.kogan_temperature') }}
{% endif %}
unit_of_measurement: '°C'
the payload appears correct and tried testing it in Developer Tools \ Template but it is not extracting the data.
Imitate available variables:
{% set value_json = {
"TuyaReceived":{
"Data":"55AA0007001C01010001000502000400000039650100010066040001006704000100A7",
"Cmnd":7,
"CmndData":"01010001000502000400000039650100010066040001006704000100",
"DpType1Id1":0,
"1":{
"DpId":1,
"DpIdType":1,
"DpIdData":"00"
},
"DpType2Id5":57,
"5":{
"DpId":5,
"DpIdType":2,
"DpIdData":"00000039"
},
"DpType1Id101":0,
"101":{
"DpId":101,
"DpIdType":1,
"DpIdData":"00"
},
"DpType4Id102":0,
"102":{
"DpId":102,
"DpIdType":4,
"DpIdData":"00"
},
"DpType4Id103":0,
"103":{
"DpId":103,
"DpIdType":4,
"DpIdData":"00"
}
}
} %}
{% if 5 == value_json.TuyaReceived.DpId %}
{{ value_json.TuyaReceived.DpIdData | int(base=16) }}
{% else %}
Not Working
{% endif %}
How should I be getting the decimal version of “00000039”?
Thanks
1 post - 1 participant
Hey team,
any ideas why adding a color_temp to Action section of an automation makes the automation disappear from the list of available Automations? I’m using a GLEDOPTO Zigbee module to control my CW/WW LEDs. I’m able to turn them on/off, change the brightness without any issues. Furthermore, I can even use the color_temp from a script, or using a call from Services section of the Developer Tools (and it works). As there is no way of adding the color_temp in UI, I have to use “Edit as YAML”.
YAML code:
action:
- brightness_pct: 100
device_id: 49bf898e2dc946228a468a19a36e4892
domain: light
entity_id: light.gledopto_1
color_temp: 200
type: turn_on
I’m using Home Assistant Core 0.111.3
Thank you.
1 post - 1 participant
Hi there, I just found out about HA and its KNX integration and it’s just what I need atm.
In the KNX integration page I read that it support the classic 3 level address format (eg. 1/1/1) but the ETS project I have has free address format (eg. 1224). So, does HA supports free address style?
1 post - 1 participant
Hey!
I’m very new here, thanks for the great community support.
I have a Sensibo&HA integration that usually works great. Sometimes, Sensibo misses its signal, and doesn’t change the AC as it should have, and then, it thinks the AC is set to another state. (Sensibo thinks the AC is on whilst it’s actually of, or vice versa).
This situation, causes Home Assistant to show wrong state and therefore all the automations won’t work properly until changed in Sensibo App.
Now my question is, is there a way to change the AC status (without actually toggle it) to the correct status? If so, I could create an automation that once found out the AC status is wrong, automatically changes it.
Thanks
1 post - 1 participant
Hi everybody,
I am trying to submit multiple values to my Home Assistant via mqtt
. The payload sent to my mqtt broker will look like this
{"CPU0": "+41.0°C", "CPU1": "+42.0°C", "CPU2": "+42.0°C", "CPU3": "", "sda2 Kapazität": "109G", "sda2 Belegt": "101G", "sda2 Frei (Size)": "2,5G", "sda2 Frei (Prozent)": "98%", "Uptime": " 15:03:56 up 1:14, 3 users, load average: 0,71, 0,65, 0,81", "Letztes Update": "2020-06-21-15:03:56", "IP 1": "10.10.10.40/24", "IP 2": "192.168.178.155/24"}
I have tried setting it up like this
sensor:
- platform: mqtt
name: "Beelink CPU0"
value_template: "{{ value_json.CPU0 }"
- platform: mqtt
name: "Beelink CPU1"
value_template: "{{ value_json.CPU1 }"
- platform: mqtt
name: "Beelink CPU2"
value_template: "{{ value_json.CPU2 }"
# etc.
But Home Assistant requires a state_topic
, so this will not work. Is there something similar to the REST
sensor, where you can at least define multiple json_arguments
(see here under multiple values)?
Or is there some way to just subscribe to the topic itself, and have every key and value be displayed? I named each key so that it would be what I’d like it to be named in Home Assistant, anyway.
I have the option to get each of these values as a payload only to separate topics, for example test/cpu0
would be +41.0°C
, test/cpu1
would be +42.0°C
, etc. but I would very much prefer to send this single json payload only and parse all the results from it - rather than having countless mqtt topics and payloads.
Thank you for your ideas
1 post - 1 participant
I have a binary sensor which has 4 attributes. I want to split these attributes into individual entities.
windowstatusfrontleft: INTERMEDIATE_POSITION
windowstatusrearleft: CLOSED
windowstatusfrontright: CLOSED
windowstatusrearright: CLOSED
The attributes have 3 values and I want to set the state depending on these attributes.
Values are INTERMEDIATE_POSITION, OPEN, CLOSED. If OPEN or INTERMEDIATE_POSITION state would be ‘ON’ if CLOSED state would be ‘OFF’
Can anybody assist??
1 post - 1 participant
Hi All
I am trying to clean-up my configuration after the move to the:
The old IOS group I had working and that I use in a lot is this one:
notify:
- name: ios_group_caspersen_home
platform: group
services:
- service: ios_henrik_iphone
- service: ios_nina_iphone
But I can see that the new notify service is:
notify.ios_caspersensiphone7p --> notify.mobile_app_caspersensiphone7p
notify.ios_ninas_iphone6s --> notify.mobile_app_ninas_iphone6s
I then tried to change the group notification to:
- name: ios_group_caspersen_home
platform: group
services:
- service: mobile_app_caspersensiphone7p
- service: mobile_app_ninas_iphone6s
Because I am using the “notify.iso_group_caspersen_home” in many action’s
action:
- service: notify.ios_group_caspersen_home
Unfortunately this doesn’t work, anyway to use the new notify in a group?
1 post - 1 participant
my yeelight strips, for a few days, in the home assistant, have not changed color. only the possibility of changing the brightness appears. how could I solve?
Has any parameter changed in the configuration?
1 post - 1 participant