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

Sonoff Pow - Get Power Consumption Data every 1 second via MQTT - Implementability #848

Closed
oblansundar opened this issue May 9, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@oblansundar
Copy link

I am using Sonoff POW to get the power consumption data. I have flashed it with Sonoff-Tasmota Firmware (5.13.1 - https://github.com/arendst/Sonoff-Tasmota) previously and I have a similiar issue opened with Sonoff-Tasmota - arendst/Tasmota#2655.

So far, I get the Power Consumption data under the topic tele/<MQTT_CLIENT_ID>/SENSOR automatically for minimum interval of 10 seconds. This interval is the lower limit as suggested in https://github.com/arendst/Sonoff-Tasmota/wiki/Commands.

But then, if i use the firmware suggested here - https://github.com/xoseperez/espurna., then would it be possibile to get the data every one second?

I just have a requirement that I need the information published under the topic tele/<MQTT_CLIENT_ID>/SENSOR automatically for one second if we meet certain thresholds as suggested here - #688 (In this thread, the telemetry interval is 30 seconds - my requirement is one second). I can get the SENSOR information under stat/<MQTT_CLIENT_ID>/STATUS10 , but I need to publish this topic every second to Sonoff POW and I ran a Python script to do this, but the MQTT got flooded. So, I needed to find an approach to do something in firmware that publishes MQTT under SENSOR topic for every one second.

Basically, to be accurate, I would like to have the same behavior as #688 (Checking the thresholds) except the telemetry interval I want is one second.

I have the following questions:
Is the above feasible? If so, how could it be implemented? Is it implementable with https://github.com/xoseperez/espurna firmware?

@stale
Copy link

stale bot commented Aug 13, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 13, 2018
@xoseperez xoseperez added enhancement New feature or request sensors and removed stale labels Aug 13, 2018
@xoseperez xoseperez added this to the 1.14.0 milestone Aug 13, 2018
@xoseperez xoseperez modified the milestones: 1.14.0, 1.13.3 Aug 27, 2018
@xoseperez xoseperez self-assigned this Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants