Replies: 1 comment 2 replies
-
That's a good question and I wish I knew the absolute answer - I always do the check before setting a mode or number but I think only a change in value would result in any modbus activity. Hopefully @canton7 can confirm, it'll make my code a lot easier to maintain without the checks. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have some automations which are triggered by multiple triggers, and as such may try and say change the inverter mode to backup or feed-in first when the inverter is already in that mode from some other trigger.
Is this harmless or should I always include in my automation
if mode != desired mode then
set mode to desired mode
?
Same question for setting numbers (e.g. Force Charge Power) - should I wrap the set with a condition to make sure it isn't already that value or is this just a waste of time?
Beta Was this translation helpful? Give feedback.
All reactions