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
It should be more clear which sensors in the flex-model are consumption and which production. For some this is done (e.g. soc-usage vs. soc-gain), but we are ambiguous for others.
We try to explain our approach here (users should save data in the way they want, but when it comes to schedules, we need one unified way)
We worked on a quick fix in Fix/scheduling/sign #1348 but that still works via a marker attribute (consumption_is_positive)
That attribute should be retired and replaced with explicit flex-model fields
TODO:
Q: In the migration[update: no migration needed], if a sensor has consumption_is_positive, how should we treat it? If it is set to True, would we change the default assumption and store them as generators? We can document that of course, and we can also ask in the next TSC if people use this attribute.
A: We could have the migration deal with relevant flex-model fields stored on the db, but exactly opposite to what you suggest: we would assume generators by default and if the consumption_is_positive attribute is set to True, we would assume a load instead. Furthermore, we should keep the original attribute on the sensor, in case they were used in combination with relevant flex-model fields in the trigger message (which we can not migrate).
UPDATE: With #2190 , the sign convention that the user needs can simply be set when fetching the schedule.
It should be more clear which sensors in the flex-model are consumption and which production. For some this is done (e.g.
soc-usagevs.soc-gain), but we are ambiguous for others.consumption_is_positive)TODO:
Q: In the
migration[update: no migration needed], if a sensor hasconsumption_is_positive, how should we treat it? If it is set toTrue, would we change the default assumption and store them as generators? We can document that of course, and we can also ask in the next TSC if people use this attribute.A: We could have the migration deal with relevant flex-model fields stored on the db, but exactly opposite to what you suggest: we would assume generators by default and if the
consumption_is_positiveattribute is set to True, we would assume a load instead. Furthermore, we should keep the original attribute on the sensor, in case they were used in combination with relevant flex-model fields in the trigger message (which we can not migrate).UPDATE: With #2190 , the sign convention that the user needs can simply be set when fetching the schedule.