Closed stefanbode closed 3 months ago
I see your point.
I'll merge this PR as you seem to be the only user of TasmotaGlobal.last_source
.
The issue is that ONLY the shutter code makes extensive use of calling command functions by their normal functions. The command code was never planned to be used that way. Instead you should have called the command's functionality, so not using the XdrvMailbox
struct. Your approach also provides tons of MQTT messages, which I think, are needless.
I assume this is just missing. I got some side effects on shutters where on MQTT commands the source is still the LAST one before the MQTT
Description:
Related issue (if applicable): fixes #
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass