turbokongen / hass-AMS

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

svm elster f2 and Kamstrup Multical 302 #63

Closed hesselb closed 2 years ago

hesselb commented 2 years ago

I have 3 elstar f2 meters and 1 kamstrup mltical 302 i used it before whit a raspberry pi and domotics is it posible to get this working in homassist?

hesselb commented 2 years ago

the php scripts i used before are availible

turbokongen commented 2 years ago

I am pretty sure it can. As long as it communicates over serial. So, I would need some raw package and of course those php scripts will be of help as well. 😊

hesselb commented 2 years ago

kamstup4 php.txt bron.php.txt

hesselb commented 2 years ago

kan i pul the raw package whit homassist? els i need to hook mi raspberrypi on

turbokongen commented 2 years ago

Just set up the AMS reader with the same settings as you had on the rpi. Select auto for meter_manufacturer. Enable debug logging, and the logs will give you the raw package.

Sendt fra min Commodore 64

lør. 13. nov. 2021, 15:16 skrev hesselb @.***>:

kan i pul the raw package whit homassist? els i need to hook mi raspberrypi on

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/turbokongen/hass-AMS/issues/63#issuecomment-968075280, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD62JIELFJ7N6HLRNBZTRMLULZXKNANCNFSM5H6NPAWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

hesselb commented 2 years ago

this is wat i found :2021-11-13 16:10:24 DEBUG (MainThread) [custom_components.ams] Connecting to HAN using port /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AC01XF1P-if00-port0 2021-11-13 16:10:24 INFO (Thread-3) [custom_components.ams] Autodetecting meter manufacturer 2021-11-13 16:10:24 DEBUG (MainThread) [custom_components.ams] Finish init of AMS whit the raspberry this elstar2.txt

kamstrup4.txt

turbokongen commented 2 years ago

Ok, so from what I read from the code, and the logs you sent, there is first sent a request to get data, and then data is received.(This is polling) The AMS meters work differently: they push data to Mbus at fixed intervals. What you need sound like this: https://github.com/golles/ha-kamstrup_403

hesselb commented 2 years ago

thank you for you time