This plugin connects your Kostal Smart Energy Meter (https://www.kostal-solar-electric.com/) via ModBus with SmarthomeNG.
- read out all Smart Meter data
- work with newer versions of pymodbus too
- No Changes so far
- Python > 3.5
- pip install pymodbus
- SmarthomeNG >= 1.6.0
Enable the plugin in plugin.yaml, type in the Smart Meters IP address and configure the ModBus Port and update cycle(seconds).
Ksemmodbus:
plugin_name: ksemmodbus
ksem_ip: 'XXX.XXX.XXX.XXX'
modbus_port: '502'
update_cycle: '20'
Create an item based on the template files/kostal_item_template.yaml
Thats it! Now you can start using the plugin within SmartVisu. For example:
<p>Active Power - : {{basic.value('KSEM_Beszug','Kostal.ksem.ksem_0','W')}} </p>
<p>Active Power + : {{basic.value('KSEM_Einspeisen','Kostal.ksem.ksem_2','W')}} </p>
Addr (dec) | Description | Format | Unit |
---|---|---|---|
ksem_0 | Active power+ | U32 | W |
ksem_2 | Active power- | U32 | W |
ksem_4 | Reactive power+ | U32 | var |
ksem_6 | Reactive power- | U32 | var |
ksem_16 | Apparent power+ | U32 | VA |
ksem_18 | Apparent power- | U32 | VA |
ksem_24 | Power factor | Float | - |
ksem_512 | Active energy+ | U64 | Wh |
ksem_516 | Active energy- | U64 | Wh |
ksem_520 | Reactive energy+ | U64 | varh |
ksem_524 | Reactive energy- | U64 | varh |
ksem_544 | Apparent energy+ | U64 | VAh |
ksem_548 | Apparent energy- | U64 | VAh |