Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should publish power information to an MQTT topic #3

Open
mcolyer opened this issue Apr 22, 2018 · 2 comments
Open

Should publish power information to an MQTT topic #3

mcolyer opened this issue Apr 22, 2018 · 2 comments

Comments

@mcolyer
Copy link
Owner

mcolyer commented Apr 22, 2018

Wire format

{
uri: "/report",
e:"11e",
t:"b6"
}

Analysis

I believe that t represents the number of seconds since the last "report" from a plug. It's usually very close to 181 seconds (which is b6). I believe that e represents the number of watts used during that period, so 286w in the sample above.

Output format

Emit a message of the format {seconds: 181, watts: 286} on the /voltson/{plug-uuid}/energy topic.

@iceman73
Copy link

Will be interested in seeing this implimented

@mcolyer
Copy link
Owner Author

mcolyer commented May 26, 2018

@iceman73 I left a bunch more details about how I think this should work in case you're interested in picking it up. Otherwise I'm not exactly sure when I would get to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants