Giter Club home page Giter Club logo

Comments (13)

ollo69 avatar ollo69 commented on August 27, 2024

The sensor control the current values for previous-state and current-state. If the state of the sensor never change probably the check do not match the state of your washer.
Please check what are the values for this 2 attributes when the wash is completed and write back here.

from ha-smartthinq-sensors.

gerasimone avatar gerasimone commented on August 27, 2024

this is an extract of the sensor state:

run_completed: 'off'
error_state: 'off'
error_message: '-'
run_state: '-'
pre_state: Select Course
current_course: '-'
spin_option_state: '-'
watertemp_option_state: '-'
drylevel_option_state: '-'
tubclean_count: '41'
remain_time: '0:00'
initial_time: '0:00'
reserve_time: '0:00'

but this is after i turn on and off the washing machine accidentally. Before this, the pre_state was Spinning

from ha-smartthinq-sensors.

ollo69 avatar ollo69 commented on August 27, 2024

You must check the state exactly when the cycle is completed, may be you can run the shortest available cycle to make a test.

from ha-smartthinq-sensors.

gerasimone avatar gerasimone commented on August 27, 2024

Ok, this is the running state, 2 minutes to the end:

run_completed: 'off'
error_state: 'off'
error_message: Normal
run_state: Spinning
pre_state: Rinsing
current_course: Cotton
spin_option_state: 800 RPM
watertemp_option_state: '-'
drylevel_option_state: '-'
tubclean_count: '41'
remain_time: '0:02'
initial_time: '1:38'
reserve_time: '0:00'
doorlock_mode: 'On'
childlock_mode: 'Off'

And this is just a second after the washer shutdown itself for washing end

run_completed: off
error_state: off
error_message: -
run_state: -
pre_state: Spinning
current_course: -
spin_option_state: -
watertemp_option_state: -
drylevel_option_state: -
tubclean_count: 41
remain_time: 0:00
initial_time: 0:00
reserve_time: 0:00
doorlock_mode: Off

thanks

from ha-smartthinq-sensors.

ollo69 avatar ollo69 commented on August 27, 2024

So it seems that your washer move from "Spinning" to off and do not provide the End State.
This is strange, and I don't know exactly how to manage, because the risk is to provide false "completed" message.
What is the model of your washer?

from ha-smartthinq-sensors.

gerasimone avatar gerasimone commented on August 27, 2024

The model is F14U1JBS6, tha LG SmarthinQ app on my iphone give me the notification of washing complete, so i think probably LG get the notification just before the washing machine auto shutdown.
Probably to avoid false positive we should check the remain_time, initial_time and state change from on to off:
when the state change from on with initial_time > 0:00 to off with remain_time = 0:00, the washing cycle is completed. what you thing about it?

from ha-smartthinq-sensors.

ollo69 avatar ollo69 commented on August 27, 2024

This is quite complex logic to implement with polled device, check may be missed. The End status work perfectly because remain available in previous state and so the check is reliable. I don't know why your washer do not provide this.

Please provide me the URL with the info of your washer (you can found this as a info log when HA start) so that I can check information that should be provided by your washer.

from ha-smartthinq-sensors.

gerasimone avatar gerasimone commented on August 27, 2024

Ok i will try to find it! thanks

from ha-smartthinq-sensors.

snakuzzo avatar snakuzzo commented on August 27, 2024

HI @gerasimone ... here is my automation...
it works fine...in sync with LG app notification

- alias: LG Notifica fine lavaggio
  initial_state: true
  trigger:
  - platform: state
    entity_id: binary_sensor.lavatrice_wash_completed
    to: 'on'
  action:
  - data:
      message: Lavaggio terminato
      title: Lavatrice
    service: notify.telegram_diego
  - data:
      entity_id: media_player.googlehome4895
      volume_level: '0.6'
    service: media_player.volume_set
  - data:
      message: "lavatrice terminata"
      entity_id: media_player.googlehome4895
    service: tts.google_say

from ha-smartthinq-sensors.

gerasimone avatar gerasimone commented on August 27, 2024

thank you snakuzzo, but my automation works succesfully if triggered by changing the state in ha of the sensor. my problem is that in my case the lavatrice_wash_completed never switch to on.
What kind of lg washer you have?

from ha-smartthinq-sensors.

snakuzzo avatar snakuzzo commented on August 27, 2024

My model is F2WV4S7S0E

from ha-smartthinq-sensors.

gerasimone avatar gerasimone commented on August 27, 2024

Dont know if you changed something about this, but with the latest version of the plugin today I've received the first notification due the change of the binary_sensor.lavatrice_wash_completed, and in home assistant now i have the last_state_change with a value.

from ha-smartthinq-sensors.

ollo69 avatar ollo69 commented on August 27, 2024

Dont know if you changed something about this, but with the latest version of the plugin today I've received the first notification due the change of the binary_sensor.lavatrice_wash_completed, and in home assistant now i have the last_state_change with a value.

I changed nothing, but good to know that now it works.
May be LG fix somenthing in the washer....

from ha-smartthinq-sensors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.