-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LG ThinQ Washer/Dryer Data not working #15
Comments
Ahahha thank you! You ask for a lot. You should already be able take data from other entities: see this section. I'm reluctant to add in templating because that requires a lot more code, and Home Assistant itself already has so much templating power. Since this integration is wacky, how about using the template integration? I haven't tested this, but something like the following might work for you: template:
- sensor:
- name: "Dryer Timer"
state: "{{ states('sensor.dryer') }}"
attributes:
duration: "0:{{ states('sensor.dryer_initial_time') }}" # 0: in front to format the time correctly Then create the card by setting only As long as the template picks up state changes, its |
Thanks @rianadon ! i thought there must be some kinda template solution outside of the card but not familiar with that. If it updates, should work fine. Oh, and I guess the UPDATE -
|
Let me know if it works! And if you do get it working and you're down to create a pull request, I'd love to add this to the examples! |
Looks like the LG integration has since changed. This is what the attributes look like with
I think the issue here is the Is this usable without having timestamps? |
You can totally set the card up configuring only It would be really nice if that integration gave timestamps. |
I asked the LG SmarthingQ integration maintainer and he kindly updated the integration adding the seconds to time attributes in version 0.12.3. |
I've had the same issue. I've created a pull request: #47 to fix that LG integration for me. Now I can do:
|
Now that #47 has just landed in the codebase, it's possible to use the card with the integration. The All you need is: type: custom:timer-bar-card
duration:
attribute: initial_time I'm sorry it took so long for me to merge the PR. |
First off, amazing card you have here. I'm just new to it and seem to be unable to get it working with my Device entities.
I use the LG ThinQ HACS integration to get my Washer and Dryer data.
![image](https://user-images.githubusercontent.com/189506/127088643-ea0d7f0c-2911-4e7d-905d-c0198f89f20d.png)
The Dryer looks like this...
It appears each needed bit of data is in a separate entity. It seems in order to plot an accurate progress bar you would need two entities:
sensor.dryer_remain_time
=0:07
and
sensor.dryer_initial_time
=0:20
The next problem is that these times are written in the
m:s
format which there doesn't seem to be support for.Perhaps, adding support for defining a template for the calculation and maybe a format string to define the format the values are coming in as.
The text was updated successfully, but these errors were encountered: