Trying hard to get a subtraction value of 2 sensors into a Lovelace gauge card. I have a water heating system on solar panels and I like to know the delta T between outgoing and ingoing T.
I have no problem adding this device to HA but the open/close status never updates. Only one of the entities appears to have any valid data and that is the battery percent. All others appear dead.
If I remove and replace the battery sometimes these two entities may change
sensor.ecolink_door_window_sensor_access_control (22 or 23)
binary_sensor.ecolink_door_window_sensor_sensor (off or on)
Has anyone managed to get this sensor working in HA?
Alright - I admit - I made a dumb mistake. I am posting this solely because when I looked I couldn’t find the answer I was looking for (which was simple). Maybe this will help someone else.
I run HA on an Ubuntu PC insider a Docker container, and use Docker Compose. I recently purchased a Nortek Gocontrol HUSBZB-1 stick to add a zigbee and z-wave networks to my HA. But like many people, I could not get HA to find the zigbee stick. There are lots of pages out there with sample docker-compose files for this scenario. I tried them, restarted my pc, but no matter what I did HA could not find the USB stick.
Finally, it dawned on me: maybe instead of restarting my PC, I needed to rebuild my docker container. I tried that and … Presto! No problem. All works. For anyone who is interested, Here is the docker-compose file that worked:
i try to push my temperature and humidity values to PRTG. There is also a nice video about exactly this use case here and the github page here
I created a automation for each nodemcu that will push the data to prtg every 2 minutes…then i realized the issue…every time the automation runs, the one value is correct but the others are zero…which doesn’t look good in the graphs.
- id: '159999999999'
alias: PRTG Temperature Bath
description: ''
trigger:
- minutes: /2
platform: time_pattern
condition: []
action:
- data_template:
sensor_name: Bath Temperature
value: '{{ states.sensor.bath_temp.state | int }}'
service: rest_command.prtg
mode: single
Then i noticed at the PRTG sensor description this:
If you use this sensor with multiple channels, we recommend that you simultaneously push the data for all your channels to PRTG. You can push data to only one of your channels but, in this case, all other channels record the value of 0 for this push message.
So the question is, how can i send all sensor values at once? i tried to add another sensor_name and value in the data_template but that doesn’t work.
I watched some videos and search around but i can’t figure out how to do this!? Maybe someone has an idea Image may be NSFW. Clik here to view.
I’m pretty much frustrated by a simple tasks that I just can’t solve.
all I want is a button that will lock if door lock is open and unlock when it’s closed.
I’ve tried the following syntax but no success:
Long time ago I just copy and paste how to configure last updates sensors inside a sensor.yaml. It was working fine, but it looks since last upgrade, all of them are not working and I don´t know why.
I asked on reddit, and the only answer was the entity_id was missing, but I put it and restart it and still the same, it looks like they don´t exist anymore. Can someone help me please?
platform: template
sensors:
hvac_heat_sensor:
friendly_name: Hvac Heating
value_template: >
{% if is_state_attr('climate.home', 'hvac_action', 'heating') %}
on
{% else %}
off
{% endif %}
puerta_principal_contact:
entity_id: binary_sensor.puerta_principal_contact
friendly_name: "Door last opened:"
value_template: >
{{ as_timestamp(states.binary_sensor.puerta_principal_contact.last_changed) | timestamp_custom('%H %M',True) }}
door_window_sensor_158d0003176782:
friendly_name: "Window last opened:"
value_template: >
{{ states.binary_sensor.door_window_sensor_158d0003176782.last_changed.strftime('%H:%M %d/%m') }}
The second one was the new style with the entity id and the 3rd was the old style.
I am new to HA, using OZW(beta) on Hass.io RPi3+. Looking good so far.
One of my devices (Jasco dimmer 14xxx) works perfectly (liking HA!) but it has an undocumented parameter that I had set in Vera but got unset when I factory reset prior to inclusion through HA.
Now I want to set this single byte parameter #6 to 1. Since it is not in the XML, the service set_configuration_parameter seems unsuitable (though it would have worked in the non-beta OZW 1.4 version which does not use the XML for that).
Can I send a raw message from within HA? Can I send an MQTT message? Can I send a raw message outside of HA? Can I edit the XML without having to remove then include to make it take effect? Anything else?
I realize I COULD switch to non-beta zwave, set it then change back but if I can do that, one would assume I could shut down OZW beta, run some utility to do my write then start up OZW again to keep my HA system clean.
Hi.
I am attempting to scrape info from a site where the complete dataset for the year is in the html, but all elements are tagged with style="display:none;" except for the current date.
I can access the info I need with the following selector:
select: ‘#post-1157 > div > div.fusion-fullwidth.fullwidth-box.fusion-builder-row-3.hundred-percent-fullwidth.non-hundred-percent-height-scrolling > div > div > div > div.table-2 > table > tbody > tr:nth-child(258)’
So in order to do what I would like, I think I would need to either iterate the nth-child() value each day(259=15/9/2020 etc.), or maybe select via data-date="2020-09-14" attribute by some way of templating… or,
Select the first tr element as per above that does not have style="display:none;" attribute.
I have seen some examples of :not() selectors in beautiful soup but if that is the right way to go I can’t seem to find the correct syntax.
Is this possible?
Would appreciate any tips, pointers or info that might help.
Many thanks.
I am noticing that most of the time my climate devices on homekit using HA as the homekit bridge is causing my devices when set to auto to not control both min/max. Is anyone else experiencing this? I feel it is an iOS issue as I’m using iOS 14 beta 8, but its weird as this was never an issue before using the normal Z-Wave integration.
I’m just playing around with what I could do with google automation… I tried to set up a weekday event for Google to speak aloud at me in the morning… But it’s not working out.
The Automation:
- id: '1599993657128'
alias: Wake up for work
description: ''
trigger:
- at: 06:50:00
platform: time
condition:
- after: 06:50:00
condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- data: {}
entity_id: switch.sonoff_bedroom_light
service: switch.turn_on
- data:
message: 'Wake Up!'
service: tts.google_translate_say
entity_id: media_player.house_speaker
mode: single
I can see the bedroom light comes on fine but I then at the google_translate step it fails with 2 errors in the log:
Log Details (ERROR)
Logger: homeassistant.components.automation.wake_up_for_work
Source: helpers/script.py:906
Integration: Automation (documentation, issues)
First occurred: 6:50:00 (8 occurrences)
Last logged: 13:39:03
Wake up for work: Error executing script. Invalid data for call_service at pos 1: required key not provided @ data[‘entity_id’]
Wake up for work: Error executing script. Invalid data for call_service at pos 2: string value is None for dictionary value @ data[‘message’]
Wake up for work: Error executing script. Invalid data for call_service at pos 2: required key not provided @ data[‘entity_id’]
Logger: homeassistant.components.automation.wake_up_for_work
Source: core.py:1262
Integration: Automation (documentation, issues)
First occurred: 6:50:00 (7 occurrences)
Last logged: 13:35:34
While executing automation automation.wake_up_for_work
Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/automation/init.py”, line 430, in async_trigger await self.action_script.async_run(variables, trigger_context) File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 802, in async_run await asyncio.shield(run.async_run()) File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 183, in async_run await self._async_step(log_exceptions=False) File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 191, in _async_step await getattr( File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 380, in _async_call_service_step await service_task File “/usr/src/homeassistant/homeassistant/core.py”, line 1262, in async_call processed_data = handler.schema(service_data) File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 272, in call return self._compiled([], data) File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 594, in validate_dict return base_validate(path, iteritems(data), out) File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: required key not provided @ data[‘entity_id’]
I have a REST API that returns the last time my backup script finished in Unix a timestamp. I would like to set up a card in HA that displays how long it’s been since that happened. I also have custom css in play to alert me when it’s been too long since a backup. I’ve tried putting the relative_time function in the lovelace config, as well as templates section of the configuration.yaml. I’ve also tried using the timestamp_local in both places for a less-than-ideal solution. Thus far, no-go. I have also tried implementing a few things from the Epic Timestamp thread, but nothing is sticking.
Unfortunately (as you know) OwnTracks dropped iBeacon support on Android. What are you using as alternatives ? I do not wear a beacon with me, the beacons are at fixed locations.
after having removed secondaryinfo-entity-row card, because it explicitly needs to load the card-tools in resources, I’ve yet found another reason to re-install it again…
It seems to be the only card that can show a secondary line with another entity, without losing the slider of the main input_number entity. See below:
maybe I am incorrectly using the yaml configs, so that’s why I post here, maybe anyone could spot an error. Or simply have another suggestion?
If not, this is for reference and help to other forum members seeking what I did.
btw, not visibile here: as often the sliders don’t show their states, the quick test with this secondaryinfo card above always kept showing it, while the others showed a blank state position.
Hi all, I’ve got a bit stuck on an automation and wondering if anyone can help. I’m trying to make the 2 Lifx bulbs outside my courtyard toilet turn red when the toilet is in use to act as a sort of ‘busy’ indicator. When the toilet is no longer in use, I want the bulbs to copy the state of the other courtyard lights.
The problem with this is when the outer_lounge_sofa light is a non white color, then its attributes do not contain “color_temp” but instead contain rgb_color and hs_color. Similarly, when the outer_lounge_sofa is a white color, then its attributes do not contain either rgb_color or hs_color but instead contain “color_temp”.
This is why in the else section I have hard coded the warm white color of 285, but this is more of a failsafe than a solution.
First of all, a big thanks to all you amazing people out there that create and maintain this fantastic product! I’ve been a satisfied user for over two years now. Before HA I used Domoticz, which works good, but is way more techy and less actively updated.
A few weeks ago, I ordered my second RPi4 and did a complete reinstall. With my previous RPi4 install, I started off on the wrong foot and wanted to correct it. It was also a nice opportunity to drop the SD card and boot from an USB SSD drive. This works great BTW as long as you use the 5.x 64bit version.
My first setup had a Conbee II stick, combined with deCONZ and it worked quite well. I made a few mistakes with names (damn you, OCD slight_smile:) but other than that, I liked it. I later learned that there was native support from HA for Zigbee in the form of ZHA. I read a lot of the forums, and decide to walk this path in my new setup. Mainly because I think that in the long run, this will provide the better experience. The open source nature of it, probably giving it also better support for a lot of device. So I bought another Conbee II stick for my ZHA setup and slowly migrated my devices from deCONZ to my new ZHA setup.
I must say that it works basically the same way as deCONZ, but the overall integration seems a bit better. I do have two issues with this setup and I can’t seem to find other references to it in the community. I do find one reference on Github, but honestly I don’t know if it is exactly my problem.
Issue 1:
The main issue I have is that with ZHA the status of my IKEA bulbs isn’t updated. When I turn them off and on with HA (or the IOS app), everything works fine. But when I change the state, no matter if it’s on, off, brightness or color, this isn’t reflected in HA. A lot of automations depend on the state of these bulbs. For now I can tell my wife to use the app, but this isn’t a long lasting solution. So, is this a know problem? If not, how do I report this issue? Or maybe more generic: what do I need to do with this issue?
Issue 2:
This one is way less important, but I’m just curious on how to properly report this. I’ve got two Xiaomi Aqara wall switches (double and single rocker) that work fine. But I’ve also got four YPHIX wall switches. Three on/off and one with about all the options. Image may be NSFW. Clik here to view.Image may be NSFW. Clik here to view.
I can pair these with ZHA without problems and they appear as: ZGRC-KEY-007 by Sunricher and ZGRC-KEY-009 by Sunricher.
The only thing that is reported to HA however, is the battery state. When I go to ‘Developer tools -> Events’ and listen to events, I see a lot of info when I press the buttons. But I don’t have a clue what to do with this info. I think I can manage to use an event in my automation (have to dive into that), although using predefined settings in the GUI would more sustainable.
But my main question is how and where to look for this support and what information to supply.
Just to be complete:
My setup is Supervisor version 243, HassOS 5.1 (64bit) and HA version 0.114.4
Thanks again for all the hard work and I hope my issues are clear.
Hi everyone,
I’m looking deep into it, but I’m really confused about some (basic) concepts (templates, scripts, etc)…
I’m trying to create a simple function to make automations simpler…a sort of:
FunctionName(argument1, argument2, …)
And then simply call it dynamically.
Example:
I have some roller shutters which I need to give seconds to open partially.
I was thinking about a function like this:
Function TempRS(RollerShutterEntity as entity, seconds as integer)
RollerShutterEntity.OpenCover
Delay: seconds
RollerShutterEntity.StopCover
End Function
I have an input boolean that represents the status of a manual action I want to perform. Status on means intervention required.
I need an automation that periodically checks if the manual operation happened and if it hasn’t, uses Alexa Custom notifictions to prompt me if she should do it on my behalf. When I answer affirmatively, she’s supposed to turn the boolean off, so that she will stop asking.
This is what I have:
- alias: Actionable. Lavatrice Svuotata?
trigger:
platform: state
entity_id: input_boolean.manual_intervention_required
to: 'on'
for:
minutes: 5
action:
- alias: Repeat the sequence UNTIL the conditions are true
repeat:
sequence:
# Run command that for some reason doesn't always work
- service: script.activate_alexa_actionable_notification
data_template:
text: "Appliance requires manual intervention. Have you just forgotten to update the status?"
event_id: 'actionable_notification_manual_operation_performed'
alexa_device: 'media_player.cucina'
# Give it time to complete
- delay:
minutes: 5
until:
# Did it work?
- condition: state
entity_id: input_boolean.manual_intervention_required
state: 'off'
but it did work only the first time.
Alexa asked me if she should perform an operation. I’ve answered no. My answer has kept the boolean in its on state.
But I was expecting that the repeat-question-delay loop to prompt me again after 5 minutes, instead this hasn’t happened.
I can confirm that the boolean is still active, so I would expect the Automation to still be “running”.
I am using OSRAM Smart+ LED Lamps, ConBee II dongle, Nabucasa and Google Assitant on Sonos boxes.
When I issue a command to activate a Scene everything turns on/off properly.
However Google then says something along the line of “an unknown problem has occured with 7 lamps” (I am getting the error message in German “Mit 7 Lampen ist ein unbekannter Fehler aufgetreten”).
Any ideas or suggestions? I don’t really need a response from the Google assistant at all.