Stefan Allius
1ae7784bee
add more unit tests
2024-05-11 23:41:40 +02:00
Stefan Allius
0e7fbc7820
fix Modbus CRC errors
...
- parse Modbus messages well if another msg
follows in the receive buffer
2024-05-11 20:46:36 +02:00
Stefan Allius
26f108cc51
build version string in the same format as TSUN
2024-05-10 20:50:37 +02:00
Stefan Allius
b240b74994
avoid sending AT/Modbus commands too early
...
- wait until we have received the first data from
the inverter
2024-05-09 18:22:43 +02:00
Stefan Allius
5a0456650f
avoid sending modbus cmds in critical states
2024-05-09 14:20:57 +02:00
Stefan Allius
41d9a2a1ef
improve logger
2024-05-09 14:19:37 +02:00
Stefan Allius
2ec0a59cd3
add modbus long int support
2024-05-08 23:48:41 +02:00
Stefan Allius
3fd528bdbe
improve logging
2024-05-07 21:20:12 +02:00
Stefan Allius
02d9f01947
don't send AT or Modbus cmds on closed connections
2024-05-07 18:32:56 +02:00
Stefan Allius
f804b755a4
improve modbus trace
2024-05-06 23:18:47 +02:00
Stefan Allius
eda8ef1db6
add Modbus and AT command handler
2024-05-05 20:13:51 +02:00
Stefan Allius
763af8b4cf
add send_modbus_cmd()
2024-05-03 18:24:06 +02:00
Stefan Allius
5d0c95d6e6
fix typo
2024-05-01 11:57:02 +02:00
Stefan Allius
c061d263eb
Convert data collect interval to minutes
2024-04-28 18:32:26 +02:00
Stefan Allius
2e64ae5884
ignore non realtime values
...
- data with frametype 0x81 are non realtime
values. Since HA only supports realtime values,
we don't parse them for now
2024-04-22 20:24:52 +02:00
Stefan Allius
4faf44db91
GEN3PLUS: fix temperature values
2024-04-20 00:05:34 +02:00
Stefan Allius
9a698781db
read inverter & logger version
2024-04-19 21:29:14 +02:00
Stefan Allius
6f9d2d4fac
GEN3PLUS: Add inverter status
2024-04-19 19:07:59 +02:00
Stefan Allius
27ac47fde9
fix incomplete format string
2024-04-18 18:45:01 +02:00
Stefan Allius
ee1722e374
decode logger values as little endian
2024-04-18 18:44:09 +02:00
Stefan Allius
82514e9e41
calculate real timestamp for received data
2024-04-17 22:03:12 +02:00
Stefan Allius
6035e52234
add Power on Time register for ftype 0x81
2024-04-17 22:02:21 +02:00
Stefan Allius
3a5e4648a1
Convert the temperature to Grand Celsius
2024-04-16 19:26:52 +02:00
Stefan Allius
64362dad21
remove trailing '\x00' from received strings
2024-04-14 20:36:20 +02:00
Stefan Allius
0e63c45302
improve parse()
2024-04-14 14:24:32 +02:00
Stefan Allius
ac0bf2f8f8
add more unittests for solarman_v5.py
2024-04-14 12:30:07 +02:00
Stefan Allius
05b576b198
make code more clear
2024-04-14 12:29:27 +02:00
Stefan Allius
03125782bc
experimental AT cmd handler and tests
2024-04-13 20:18:44 +02:00
Stefan Allius
74ac6c6666
fix at_commit_message(); code cleanup
2024-04-12 20:50:57 +02:00
Stefan Allius
c5c49c5f24
erase trailing whitespace
2024-04-12 19:38:06 +02:00
Stefan Allius
1d3a44c9f0
first self-sufficient island support
...
- add Sequence class to handle the sequence of packets
- send response for received packets directly
- don't forward responses anymore
- addapt tests to new behavior
2024-04-12 18:57:48 +02:00
Stefan Allius
93b89062f5
Read pv module details for HA from config file
2024-04-07 19:41:05 +02:00
Stefan Allius
8fc8a29be2
clear daily energy production at midnight
2024-04-06 00:04:25 +02:00
Stefan Allius
8f390b67cb
cleanup
2024-04-01 23:31:15 +02:00
Stefan Allius
04ba868b37
build model name for solarman logger
2024-04-01 22:20:46 +02:00
Stefan Allius
ef8a461569
build gen 3 inverter modell name
2024-04-01 20:05:51 +02:00
Stefan Allius
73c35de3e5
add more values to Home Assistant
2024-04-01 15:00:15 +02:00
Stefan Allius
80f4dd722a
remove useless parameter from _key_obj()
2024-04-01 02:08:28 +02:00
Stefan Allius
f38fea3807
move ignore_this_device() into base class Infos
2024-04-01 00:48:33 +02:00
Stefan Allius
695d8a8906
count AT commands in home assiatant
2024-03-31 23:56:18 +02:00
Stefan Allius
e4b7ef7a0c
add more unit tests
2024-03-31 23:26:14 +02:00
Stefan Allius
884d4c04e6
improve error handling
...
- for wrong start bytes and stop bytes
- for wrong checksums
2024-03-31 19:10:58 +02:00
Stefan Allius
75bdaedc31
fix error counting on checksum errors
2024-03-31 01:18:01 +01:00
Stefan Allius
c4db53bd1e
Merge branch 'main' into refactor-Infos-class
2024-03-31 01:05:54 +01:00
Stefan Allius
cdc3226adf
count invalid messages
2024-03-31 00:51:30 +01:00
Stefan Allius
643c0026d8
count INVALID_MSG_FMT errors
2024-03-31 00:26:54 +01:00
Stefan Allius
7cbd5f25bb
parse data from received messages
2024-03-30 21:50:08 +01:00
Stefan Allius
27ce61adf4
add more registers and set default values
2024-03-30 21:49:03 +01:00
Stefan Allius
e3fdeecf82
parse gen3plus inverter data
2024-03-30 01:15:07 +01:00
Stefan Allius
738dd708ac
refactor ha_confs() interface
2024-03-29 19:21:59 +01:00