Stefan Allius
80183598ca
cleanup
2024-06-16 13:03:33 +02:00
Stefan Allius
b688d04836
isolate Modbus fix
2024-06-16 13:00:02 +02:00
Stefan Allius
377c09bc66
Merge branch 'dev-0.9.0' of https://github.com/s-allius/tsun-gen3-proxy into s-allius/issue93
2024-06-16 12:39:56 +02:00
Stefan Allius
30a6f75430
Merge branch 'dev-0.9.0' of https://github.com/s-allius/tsun-gen3-proxy into s-allius/issue94
2024-06-16 12:23:57 +02:00
Stefan Allius
e22ad78dcd
add exception handling for forward handler
2024-06-16 12:23:13 +02:00
Stefan Allius
453d8b2aa2
call modbus close hanlder on a close call
2024-06-16 11:57:51 +02:00
Stefan Allius
f9b02f3486
add a close handler to release internal resources
2024-06-16 11:56:03 +02:00
Stefan Allius
b053c7e576
Update async_stream.py
...
- check if processing time is < 5 sec
2024-06-16 02:08:15 +02:00
Stefan Allius
10346e888f
log ConfigErr with DEBUG level
2024-06-16 01:52:34 +02:00
Stefan Allius
f629246dbd
fix typo
2024-06-16 01:18:06 +02:00
Stefan Allius
dbff66affd
add healthy check methods
2024-06-15 23:36:59 +02:00
Stefan Allius
ac534c20ed
calculate msg prossesing time
2024-06-15 23:34:11 +02:00
Stefan Allius
ff3ed83b49
add http server for healthcheck
2024-06-15 23:29:27 +02:00
Stefan Allius
ae94cd62fc
use config validation for healthcheck
2024-06-15 23:23:57 +02:00
Stefan Allius
1e3bb31ef8
Merge pull request #90 from s-allius/s-allius/issue56
...
S allius/issue56
2024-06-14 00:05:48 +02:00
Stefan Allius
3209ebabde
fix warnings
2024-06-13 23:44:57 +02:00
Stefan Allius
aac6cfd629
dump droped packages
2024-06-13 23:43:05 +02:00
Stefan Allius
53f6a5447d
cleanup msg_get_time handler
2024-06-09 11:41:01 +02:00
Stefan Allius
ff8adb5632
fix solarman unit tests
...
- fake Mqtt class
2024-06-09 11:02:43 +02:00
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
3bc2b262b5
add more type annotations
2024-06-08 23:59:13 +02:00
Stefan Allius
d0bd599420
fix Generator annotation for ha_proxy_confs
2024-06-08 23:54:52 +02:00
Stefan Allius
a499c5e6b0
add more type annotations
2024-06-08 23:33:25 +02:00
Stefan Allius
9985917ad2
add more type annotations
2024-06-08 23:15:38 +02:00
Stefan Allius
851bd54d8f
Merge branch 'dev-0.9.0' of https://github.com/s-allius/tsun-gen3-proxy into s-allius/issue56
2024-06-08 00:08:54 +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
e850a8c534
set tracer log level by environment value
2024-05-31 20:02: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
3980ac013b
catch all OSError errors in the read loop
2024-05-28 21:55:42 +02:00
Stefan Allius
66657888dd
add log_level support for modbus commands
2024-05-28 19:32:20 +02:00
Stefan Allius
ab9e798152
add typing
2024-05-28 19:30:58 +02:00
Stefan Allius
edc2c12b5b
Send MQTT topic for responses to AT+ commands
2024-05-27 20:52:06 +02:00
Stefan Allius
87cc3fb205
fix frong MQTT not found logs
2024-05-22 22:53:52 +02:00
Stefan Allius
8fc5eb3670
log MQTT to data topic
2024-05-22 22:53:04 +02:00
Stefan Allius
55fc834a1e
reduce default loggings
2024-05-22 22:52:02 +02:00
Stefan Allius
da2388941e
allow only one MODBUS retry
...
- More than one retry usually makes no sense, as
random errors are usually corrected. If the
first retry also fails, the chance that a second
or third retry will be successful is very small
2024-05-21 19:37:55 +02:00
Stefan Allius
9e38cb93ea
send StatusReq additionally every 30 minutes
2024-05-21 18:59:30 +02:00
Stefan Allius
de1c48fa62
add keyword for timeout to argument list
2024-05-21 18:58:10 +02:00
Stefan Allius
e432441134
don't log Events as Infos
2024-05-21 18:56:52 +02:00
Stefan Allius
98ef252bb0
don't forward invalid MODBUS responses
2024-05-20 18:51:55 +02:00
Stefan Allius
3ac48dad1f
cleanup
2024-05-20 18:33:01 +02:00
Stefan Allius
eff3e7558b
increase test coverage
2024-05-20 16:53:26 +02:00