You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using an IR optical probe in my bungalow to monitor my electricity meter. When my balcony solar power system generates surplus energy, the power value becomes negative (indicating feed-in). I would like a second Tasmota smart plug to turn ON when the power reaches –200 W, and turn OFF again when it rises to –5 W (i.e., surplus drops below 5 W). Initially, I tried implementing this using Tasmota Rules—but unfortunately, Rules are not supported when SML/Scripting is enabled (which is required for the IR reader).
So I attempted to integrate the switching logic directly into the SML script, but that also didn’t work.
Here is the current script running on my IR reader:
B
=>sensor53 r
M 1
+1,3,s,16,9600,E320,1
1,77070100010800ff@1000,Consumption,kWh,E_in,3
1,77070100020800ff@1000,Feed-in,kWh,E_out,3
1,77070100100700ff@1,Current Power,W,Power,0
1,=h--
1,77070100600100ff@#,Server-ID,,Meter_Number,0
And I have compiled this directly into the Tasmota firmware.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I’m using an IR optical probe in my bungalow to monitor my electricity meter. When my balcony solar power system generates surplus energy, the power value becomes negative (indicating feed-in). I would like a second Tasmota smart plug to turn ON when the power reaches –200 W, and turn OFF again when it rises to –5 W (i.e., surplus drops below 5 W). Initially, I tried implementing this using Tasmota Rules—but unfortunately, Rules are not supported when SML/Scripting is enabled (which is required for the IR reader).
So I attempted to integrate the switching logic directly into the SML script, but that also didn’t work.
Here is the current script running on my IR reader:
And I have compiled this directly into the Tasmota firmware.
#ifndef USE_SCRIPT
#define USE_SCRIPT
#endif
#ifndef USE_SML_M
#define USE_SML_M
#endif
#ifdef USE_RULES
#undef USE_RULES
#endif
Beta Was this translation helpful? Give feedback.
All reactions