Skip to content
This repository has been archived by the owner on Apr 30, 2022. It is now read-only.

Use MQTT to get instant updates #14

Open
ndfred opened this issue Jul 20, 2020 · 2 comments · May be fixed by #16
Open

Use MQTT to get instant updates #14

ndfred opened this issue Jul 20, 2020 · 2 comments · May be fixed by #16
Labels
enhancement New feature or request

Comments

@ndfred
Copy link

ndfred commented Jul 20, 2020

This component uses HTTP polling through Async to update values, using MQTT instead would provide more up to date information

@ndfred
Copy link
Author

ndfred commented Jul 21, 2020

I've been digging and dumped some MQTT connection and parsing code here. We can basically get all the data we need in real time, without worrying about tokens, which I think is a better fit for this component. Next I'll try and see if I can just get away with Home Assistant templates.

@ndfred
Copy link
Author

ndfred commented Jul 23, 2020

I've continued my research and now have MQTT bridging and templates working! I now gather instant electricity consumption, as well as daily / weekly / monthly electricity and gas consumption and meter readings, in real time. Maybe this is what the HA component should be doing: just maintain an MQTT connection and present the data in a few nice sensors.

@unlobito unlobito linked a pull request Aug 12, 2020 that will close this issue
8 tasks
@unlobito unlobito pinned this issue Dec 16, 2020
@unlobito unlobito added the enhancement New feature or request label May 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants