Stefan Allius
|
1deab4be6a
|
fix imports
|
2024-06-09 11:01:04 +02:00 |
|
Stefan Allius
|
7b9550773d
|
don't use depricated varn anymore
|
2024-06-09 01:25:06 +02:00 |
|
Stefan Allius
|
9985917ad2
|
add more type annotations
|
2024-06-08 23:15:38 +02:00 |
|
Stefan Allius
|
0b2631c162
|
beautify some traces
|
2024-06-07 19:27:36 +02:00 |
|
Stefan Allius
|
c59bd16664
|
change log level for some traces
|
2024-06-05 22:01:48 +02:00 |
|
Stefan Allius
|
039a021cda
|
cleanup trace output
|
2024-06-04 21:55:57 +02:00 |
|
Stefan Allius
|
8204cae2b1
|
improve logging output
|
2024-06-03 19:52:37 +02:00 |
|
Stefan Allius
|
5b60d5dae1
|
cleanup
|
2024-05-31 23:09:14 +02:00 |
|
Stefan Allius
|
ec4261ae84
|
Merge branch 'dev-0.8.0' into s-allius/issue77
|
2024-05-31 20:17:03 +02:00 |
|
Stefan Allius
|
d27fe09006
|
reduce size of trace file
- trace heartbeat and regular modbus pakets
only with log level DBEUG
- don't forwar akc pakets from tsun to inverter
since we answered in before
|
2024-05-31 20:03:21 +02:00 |
|
Stefan Allius
|
87d59d046f
|
add AT_COMMAND_BLOCKED counter
|
2024-05-30 19:32:14 +02:00 |
|
Stefan Allius
|
063850c7fb
|
add allow and block filter for AT+ commands
|
2024-05-30 18:38:05 +02:00 |
|
Stefan Allius
|
66657888dd
|
add log_level support for modbus commands
|
2024-05-28 19:32:20 +02:00 |
|
Stefan Allius
|
edc2c12b5b
|
Send MQTT topic for responses to AT+ commands
|
2024-05-27 20:52:06 +02:00 |
|
Stefan Allius
|
de1c48fa62
|
add keyword for timeout to argument list
|
2024-05-21 18:58:10 +02:00 |
|
Stefan Allius
|
98ef252bb0
|
don't forward invalid MODBUS responses
|
2024-05-20 18:51:55 +02:00 |
|
Stefan Allius
|
eff3e7558b
|
increase test coverage
|
2024-05-20 16:53:26 +02:00 |
|
Stefan Allius
|
9ac1f6f46d
|
add Modbus retrasmissions
|
2024-05-19 21:17:16 +02:00 |
|
Stefan Allius
|
c761446c11
|
code cleanup
|
2024-05-19 13:43:51 +02:00 |
|
Stefan Allius
|
282a459ef0
|
add Modbus response forwarding
|
2024-05-19 12:23:58 +02:00 |
|
Stefan Allius
|
f4da16987f
|
add fifo and timeout handler for modbus
|
2024-05-18 20:18:15 +02:00 |
|
Stefan Allius
|
2e214b1e71
|
avoid sending responses to TSUN for local at commands
|
2024-05-13 22:46:23 +02:00 |
|
Stefan Allius
|
036af8e127
|
move the Modbus instance to the parent class
|
2024-05-13 19:49:00 +02:00 |
|
Stefan Allius
|
1658036a26
|
store modbus params always on the server side
|
2024-05-12 23:09:51 +02:00 |
|
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 |
|