turbokongen / hass-AMS

Custom component reading AMS through MBus adapter into HomeAssistant
42 stars 10 forks source link

aliexpress module has no USB - so how to do that in the yaml? #38

Closed dkcsn closed 3 years ago

dkcsn commented 3 years ago

Hi - and what an awesome plugin. This module is referered as working [(https://www.aliexpress.com/item/32834331647.html?spm=a2g0o.detail.1000060.1.74cfdcd4qts4jp)]

But for the yaml config - USB seems to be the only way? ams: serial_port: '/dev/ttyUSB0' # Required And the aliexpress module has no USB - so how to do that in the yaml? I have one of the supported Kamstrup and have ordered the IR eye reader, so it would be great to know the idea of the non USB module?

turbokongen commented 3 years ago

Hi, and thank you! I have not tested this device myself, just added it to the working devices because others have used it. You can use any "device" in the /dev directory. Ne need for usb. If you have a serial port instead of USB, use that. It is not required to be USB, just the path to the serial port data is received to.

dkcsn commented 3 years ago

So fast reply - Thank you :-) I see - the distance from my meter to my Home Assistance, require that I go Wifi, so I was thinking of ESP Home module, connected to the reader. Any thoughts of an enhancement like this? - or can i take the water signal into ESP Home and create the same sensors i HA so your ADDON can do the magic afterwords?

turbokongen commented 3 years ago

I'm sorry, I have no experience in doing such a thing. My plugin parses the raw data from the meter, so you might be out of luck.

Hellowlol commented 3 years ago

I had the same issue. I just use a spare rpi with home assistant installed and I just use the mqtt statestream to push data.

turbokongen commented 3 years ago

Closed by clarifying the readme. https://github.com/turbokongen/hass-AMS/commit/97297fd22785fa37f7293d4fb52af62b1c0ed5cc