Skip to content

MQTT powermeter values are re-published via MQTT #1248

Answered by schlimmchen
AndreasBoehm asked this question in Q&A
Discussion options

You must be logged in to vote

I was probably avoiding a regression. Someone subscribes the PowerMeter to topic A but uses a script that subscribes to the PowerMeter topic... I agree that this is nonsensical. It is obvious now that the power meter refactoring is complete. Previously, this wasn't so obvious, as the power meter values were shared among all providers and the MQTT publish function did not care/know whether or not the original values were subscribed from MQTT. That's what I remember.

When removing this, how to we handle the MQTT publish function in the base class? Should it publish the total value? That would at least be something that OpenDTU-OnBattery adds, in case three values are subscribed to and OpenD…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AndreasBoehm
Comment options

@schlimmchen
Comment options

@AndreasBoehm
Comment options

Answer selected by AndreasBoehm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants