banban525 / echonetlite2mqtt

ECHONET Lite to MQTT bridge.
MIT License
48 stars 7 forks source link

operationMode and operationStatus not always retrieved at device discovery? #18

Closed aftertommy closed 11 months ago

aftertommy commented 1 year ago

My instance just discovered my living room air conditioner, and while it successfully grabbed a number of properties from the device, it appears to have not received the operationMode and operationStatus from the device at discovery. I can request the status via the REST API, but this doesn't appear to propagate back through to MQTT.

The end result is that my home assistant air conditioner controls remain in the "off" state even though the air conditioner is running, and echonetlite2mqtt is able to manually fetch the status.

It seems like two issues:

  1. making a manual request via REST doesn't end up updating MQTT
  2. not all properties are successfully fetched at device discovery

I have the property interval set to 400, as I wanted to be sure that I'm not flooding devices with requests. Is there a chance this could be resolved by updating to the latest echonetlite node library? echonetlite2mqtt_logs_internalsStatus.zip

banban525 commented 1 year ago

@aftertommy

My guess is that the property was not acquired due to the slow response from the air conditioner.

You should use echonetIntervalToGetProperties.

To fix this problem I have to rebuild the communication process. But I haven't implemented it yet.

The latest source code has updated the ECHONET Lite library, so the problem may be fixed. But I still have a bug, so I can't release it.

aftertommy commented 1 year ago

Man i wish you had a paypal or something so i could show you my thanks.

banban525 commented 1 year ago

I am happy that this product is helping you. But solving the underlying problem takes time.

I plan to implement #12, which still has bugs, first.

aftertommy commented 11 months ago

I believe this is working with the latest update.