37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
// {type:class}
|
|
// {direction:topDown}
|
|
// {generate:true}
|
|
|
|
[note: You can stick notes on diagrams too!{bg:cornsilk}]
|
|
[<<AbstractIterMeta>>||__iter__()]
|
|
|
|
[Mqtt;<<Singleton>>|<static>ha_restarts;<static>__client;<static>__cb_MqttIsUp|<async>publish();<async>close()]
|
|
[Proxy|<cls>db_stat;<cls>entity_prfx;<cls>discovery_prfx;<cls>proxy_node_id;<cls>proxy_unique_id;<cls>mqtt:Mqtt;;__ha_restarts|class_init();class_close();;<async>_cb_mqtt_is_up();<async>_register_proxy_stat_home_assistant();<async>_async_publ_mqtt_proxy_stat(key)]
|
|
|
|
[<<InverterIfc>>||healthy()->bool;<async>disc(shutdown_started=False);<async>create_remote();]
|
|
[<<AbstractIterMeta>>]^-.-[<<InverterIfc>>]
|
|
[InverterBase|_registry;__ha_restarts;;addr;config_id:str;prot_class:MessageProt;remote:StreamPtr;local:StreamPtr;|healthy()->bool;<async>disc(shutdown_started=False);<async>create_remote();<async>async_publ_mqtt()]
|
|
[StreamPtr||stream:ProtocolIfc;ifc:AsyncIfc]
|
|
[<<InverterIfc>>]^-.-[InverterBase]
|
|
[InverterG3]-[note: Creates an GEN3 inverter instance with prot_class:Talent{bg:cornsilk}]
|
|
[InverterG3P]-[note: Creates an GEN3PLUS inverter instance with prot_class:SolarmanV5{bg:cornsilk}]
|
|
[InverterBase]^[InverterG3]
|
|
[InverterBase]^[InverterG3P]
|
|
[Proxy]^[InverterBase]
|
|
[InverterBase]-2>[StreamPtr]
|
|
[Proxy]++->[Mqtt;<<Singleton>>]
|
|
|
|
[<<AsyncIfc>>]
|
|
|
|
|
|
[StreamPtr]-1>[<<ProtocolIfc>>]
|
|
[StreamPtr]-1>[<<AsyncIfc>>]
|
|
|
|
|
|
[<<ProtocolIfc>>]use-.->[<<AsyncIfc>>]
|
|
|
|
|
|
[ModbusConn|host;port;addr;stream:InverterG3P;|]has-1>[InverterG3P]
|
|
[ModbusTcp||<async>modbus_loop()]creates-*>[ModbusConn]
|
|
|