Open ewasscher opened 9 years ago
Looks good. But I'd like to test it at home, to see whether it doesn't break when you do not have a gas meter.
Would it be possible to make those readings optional in the frontend? I have no gas meter so I don't need empty gas meter readings in my frontpage :)
Would be cool if you can de-activate some portions like gas meter or currentTariff.
Understandable, I guess the same applies if support for electricity delivered back to the grid would be added. I wouldn´t know how to hide unused attributes in the frontend though (yet).
Additionally, I noticed that the example telegram in one of the issues for your repository has different output for gas meter reading. We may want to add support for that syntax too.
2015-10-23 11:27 GMT+02:00 incmve notifications@github.com:
Would it be possible to make those readings optional in the frontend? I have no gas meter so I don't need empty gas meter readings in my frontpage :)
Would be cool if you can de-activate some portions like gas meter or currentTariff.
— Reply to this email directly or view it on GitHub https://github.com/saberone/pimatic-smartmeter/pull/7#issuecomment-150527133 .
I didn't figure out an easy (easy to program) way to turn on/off readings in the UI. I guess you need to write a custom UI component to make this possible. But I didn't have time to find out how.
With the latest update you can hide things in the UI, readings will still be done but not shown.
"xAttributeOptions": [
{
"name": "Activetariff",
"hidden": true
}
]
I made a change on the regex for my gas meter to work. This works for me. var gasTotalUsage = returnRegExResult(data, /^0-1:24.2.1.)((.?)*/m, 1);
Here is a complete dump of my meter: /XMX5LGBBFG1009139200
1-3:0.2.8(42) 0-0:1.0.0(151228195020W) 0-0:96.1.1(4530303331303033313234353130353135) 1-0:1.8.1(000225.519_kWh) 1-0:1.8.2(000227.086_kWh) 1-0:2.8.1(000000.000_kWh) 1-0:2.8.2(000000.000_kWh) 0-0:96.14.0(0002) 1-0:1.7.0(02.464_kW) 1-0:2.7.0(00.000_kW) 0-0:96.7.21(00007) 0-0:96.7.9(00001) 1-0:99.97.0(1)(0-0:96.7.19)(151117113129W)(0000001961_s) 1-0:32.32.0(00000) 1-0:32.36.0(00000) 0-0:96.13.1() 0-0:96.13.0() 1-0:31.7.0(011_A) 1-0:21.7.0(02.464_kW) 1-0:22.7.0(00.000_kW) 0-1:24.1.0(003) 0-1:96.1.0(4730303137353931323332383935313135) 0-1:24.2.1(151228190000W)(00195.919*m3) !4B9A
Could you please comment on / improve on / integrate my changes to add support for gas meter?