In development: LG SmartThinQ component

Regarding the different the attributes available, does anyone know if the washer data includes an information about whether the door has been opened after a finished cycle?

I’m looking into what possibilities there are to trigger an automation if there’s a finished laundry still in the machine that hasn’t been taken out yet, without too much manual intervention other than the actual taking out laundry. :slightly_smiling_face:

1 Like

AC system is not supported at this moment.
May be I will try to integrate in the future, but the real problem will be the control of the device, expecially for devices that use APIv2.
In any case provide the link of the forked wideq that shows your AC so that I can have a look to have a starting point.

May be some washer provide the info about door open, but I’m not managing this state but only the door lock state.Also consider that when the washer automatically turn off after a cycle do not provide back any new state until is turned-on again.
But why you don’t simple use the attribute “run_completed”?

This issue should be solved with last released version.
Please next time open issue on integration repository so I will manage it faster.

I can’t speak on behalf of @samuellinde - but for me, it’s because I’d like an automation to run some period of time after a cycle completes, but ONLY if the door has remained closed ever since (presumably meaning the laundry has been left inside).

I’ve been thinking about putting a zigbee magnetic sensor on the door for this, but it would be easier if there’s an attribute or sensor that can be pulled directly from the integration.

You read my mind, lol! That’s exactly what I was planning to do as well, but I haven’t gotten around to do it yet. I have a Xiaomi Zigbee door/window sensor that’s currently unused that I was thinking about putting there.

So just to clarify: I already have an automation that notifies me when the laundry is completed, but what I’m looking for is a way to remind me or another family member if the laundry has been left inside for X amount of time. With a busy schedule, it does happen occasionally.

1 Like

It is not possible using Washer sensor because when washer is off do not provide any update. So also if someone open the door, for instance, after 10 minutes, the component will continue to report that the door is closed until the washer is turned on again.

Not exactly what you asked, but I think the following can work (not tested yet):

  • define an input_boolean representing “laundry has been removed from washer”
  • put that input_boolean to false when the washing program is completed
  • send an actionable notification to the devices of people in charge of doing laundry (note to self: I should send it to wife only to be relieved from this task)
  • the notification has an action button that sets the input_boolean to true when clicked
  • if the input_boolean stays to false, an automation keeps sending notifications at regular intervals, until someone clicks

Otherwise, as you suggested, the door sensor can replace the actionable notification to toggle the input_boolean.

2 Likes

@ollo69 I think you really should make an effort to contribute back to the original repository. License or not, I think it hurts the Open Source community to fork and redistribute from other projects without contributing back.

Your HACS integration worked like a charm and it’s really awesome work to get it as accessible as it is now to everyone.

1 Like

I don’t want to hurts nobody, but this is not so simple.
In any case I start just now discussion here because I agree that is the right approach.
I think that the best think should be having the HA component based on the external library loaded using py.
Of course this will stop for some times evolution of the component, but it looks quite stable at this moment.

1 Like

Hello, sorry for the writing I use the translator.
I am new and I am trying to integrate two lg air conditioners but I have the following problem:
root @ SYNOLOGY: /volume1/hassio/hass.io/homeassistant/custom_components/smartthinq/wideq-master# python3 example.py -l es -c es-ES
File “example.py”, line 233
help = f’one of: {"," .join (EXAMPLE_COMMANDS)} ')
^

It’s difficult to tell what the error is since the stacktrace is missing, but I believe it’s complaining about the f string declared there. This was introduced in python3.6, so if you are using an older version, it will not work. https://realpython.com/python-f-strings/#f-strings-a-new-and-improved-way-to-format-strings-in-python

Thank you. I’m going to try using python 3.6 and see if it works

I wonder why LG designed washer so poorly. Dryer is connected even when turned off.

As for automation, I almost always use dryer. Can probably write a reminder if washer completed by dryer wasn’t started within some time. Unless line drying, it should work.

1 Like

There is no python.3.6 for synology. Do you know how I can make it work?

Can probably write a reminder if washer completed by dryer wasn’t started within some time.

Terrific idea! This should work almost all the time.

Starting to see the below in the logs

WARNING (MainThread) [homeassistant.helpers.translation] smartthinq_washer: the ‘.translations’ directory has been moved, the new name is ‘translations’, starting with Home Assistant 0.111 your translations will no longer load if you do not move/rename this

smartthinq_washer is the old name of the integration, now renamed smartthinq_sensors. If you still have this integration just remove and install last version of smartthinq_sensors.

1 Like

Hi everyone!
Does anybody have the same warning in log?

ClimateDevice is deprecated, modify LGDevice to extend ClimateEntity

2 Likes

Fix