scottyphillips / echonetlite_homeassistant

A Home Assistant custom component for use with ECHONET enabled devices.
MIT License
119 stars 40 forks source link

Refrigerator support and how is Nature Remo-E (lite)? #182

Closed ahori closed 1 month ago

ahori commented 1 month ago

I have a Nature Remo-E lite, a Mitsubishi fridge, and a Mitsubishi Air conditioner. I recently found your echonetlite HACS and installed into my home assitant. Those three device are found, but it seems that your implementation does not support Nature Remo-E lite and the fridge, but the are conditioner.

Is it possible to implement these two devices if I could give you the information needed and could be the tester of those devices?

I am sorry, I am not familiar with the home assistant implementation and it would be quite hard for me to implement the devices without any help. Things could go worse because I have been (mostly) C programmer and I have only little experiences with Python, JSON, and others, but C.

Here is the air conditioner device info; image

the fridge; image

and Nature Remo-E lite; image

nao-pon commented 1 month ago

@ahori Nature Remo E-Lite was reported in #121, but this integration cannot currently be supported. It seems that refrigerators can be supported by adding definitions to the pychonet library. It will take some time, but we plan to fix it.

nao-pon commented 1 month ago

One way to obtain data from Japan's smart power meters via Route B is to use the "For parts removal! Soc board with wireless module + white plastic case" currently sold by Akizuki Electronics. I'm testing it here and it's working fine.

ahori commented 1 month ago

@nao-pon Thank you for planning to fix it. I will also take a look at the library. As for the Akizuki box, I found it after buying the Nature Remo-E Lite which looks much nicer than the Akizuki box, but more expensive.

ahori commented 1 month ago

I have forked your pychonet lib and found fridge implementation in it. I wonder why home assistant is unable to recognize my fridge. Well, I am going to investigate and try to fix my issues, but I have no knowledge about how the HACS components are managed by home assistant. I would be happy to investigate the problems if you let mw know how to test my fixes on pychonet on my home assistant. Sorry for this very stupid question.

nao-pon commented 1 month ago

I added the refrigerator class yesterday. It's still being fixed, so I'll let you know when it's available for testing. 😄

nao-pon commented 1 month ago

It's now testable on the edge branch of my repository. I can't test it, so could you please verify it?

Please refer to the following article to install the edge branch.

ahori commented 1 month ago

Wow! What a fast on-demond coding!! Thank you very much.

The new one looks much better, but something weird.

image

Let's ignore the "Ma..." sensor (6th from the top) at this time, I know the echonet protocol is a kind of bull-shit. This snapshot looks good but when I check each sensor status, for example, "Fridge Door Open Warning" at the top,

image

its status is '42.' This must be something else, such as "False" or "No."

If you are kind and have some time, I would appreciate it if you let me know how the echonetlite_homeassistant repo includes the pychonet library.

ahori commented 1 month ago

I think https://github.com/scottyphillips/echonetlite_homeassistant/pull/183 would be the fix of above my comment.

nao-pon commented 1 month ago

I also merged #183 into my edge. What about the results?

ahori commented 1 month ago

Thanks again. It looks better,

image

but I'm wondering if the "Maximum Allowed Value..." entity has any meaning and what the values of "101" are. According to the ECHONET specification (https://echonet.jp/wp/wp-content/uploads/pdf/General/Standard/Release/Release_R/Appendix_Release_R_r2.pdf), those values are levels, not temperature values. So, I think you may simply ignore them (not to confuse users). Or, just left them as they are now. Please do not get me wrong, I do not want to ruin your great job.

nao-pon commented 1 month ago

Yes, I set those less useful entities to be disabled by default on installation. However, if it is currently enabled, you must manually disable it.

I think the standard for Echonet-Lite itself is pretty good, but Japanese manufacturers are too closed-minded and have not adopted this standard (or even if they have adopted it, they have not actively publicized it). As a result, this standard has hardly become established and is no longer being adopted in new products. This is very unfortunate, and I think it has resulted in consumers' awareness of IoT falling far behind the rest of the world. That's such a shame...

scottyphillips commented 1 month ago

If I can comment from the point of view of someone living outside Japan, Echonet Lite is miles in front of comparable American or European standards. I think, however, a lot of tech companies across the globe have unfortunately adopted a view where shunting their customers into little non-standard ecosystem bubbles is good for their business because they get an opportunity to take ownership and monetise customer data in the cloud.

nao-pon commented 1 month ago

@scottyphillips I learned from your post that it's similar in America and Europe. I hope Matter improves this in the near future... Famous Japanese manufacturers are completely useless.

@ahori Version 3.8.2 now supports refrigerators, so I'll close this. thank you!

ahori commented 1 month ago

@scottyphillips and @nao-pan, Scott's comment got me thinking about the cultural difference between Japan and western countries. It ends up with that I think the difference lies in the DIY spirit. Many Japanese DIYers use some simple method to assemble something, while western DIYers are doing much more complicated and excellent jobs. I realized this when I went to a US DIY shop. For example, the recent right-to-repair movement does not originate in Japan because of this.

Now go back to the ECHONET standard. As @nao-pan said, Japanese manufacturers do not come to think for end-users to do something on their products. And, thus, they do not actively publish specifications. Further, most companies do not understand the spirit of free open-source software. They think that making their software (specification) open and free does not produce any money and they are afraid of something. It is the consequences of this that they are far behind in IT.

I am sorry for this long comment. It is my great pleasure for me to work with all of you. Thank you.

P.S. I am now investigating why my REMO-E (lite) does not work as a power meter. From the view of your ECHNOETlite integration, it works as a controller, not a power meter. I will create another PR when I succeed.