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

Adding Power Measurement to SSM-U01 #1669

Merged
merged 4 commits into from
Oct 16, 2020
Merged

Adding Power Measurement to SSM-U01 #1669

merged 4 commits into from
Oct 16, 2020

Conversation

mvjt
Copy link
Contributor

@mvjt mvjt commented Oct 15, 2020

Also discovered power reporting. Adding support for it. Sorry I did not see this last time. This is my first added device :-)

I do have a question, it basically sends updates every few seconds. I'm trying to throttle to maybe a certain value delta using
await configureReporting.activePower(endpoint, {max: 600, change: 4});
But I don't understand how the "max/min/change" value correlates to the W and time...

Ultimately, it would maybe be beneficial to allow this to be customized by the user depending on the load. But I'm concerned the Zigbee network will be flooded with these messages...

Zigbee2MQTT:info  2020-10-15 22:40:56: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8e18fe', payload '{"energy":0.02,"linkquality":0,"power":27.9,"state":"ON"}',
Zigbee2MQTT:info  2020-10-15 22:40:51: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8e18fe', payload '{"energy":0.02,"linkquality":0,"power":28,"state":"ON"}',
Zigbee2MQTT:info  2020-10-15 22:41:09: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8e18fe', payload '{"energy":0.02,"linkquality":0,"power":27.9,"state":"ON"}',
Zigbee2MQTT:info  2020-10-15 22:40:38: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c8e18fe', payload '{"energy":0.02,"linkquality":0,"power":27.9,"state":"ON"}'

Skärmavbild 2020-10-15 kl  22 55 22

@Koenkk
Copy link
Owner

Koenkk commented Oct 16, 2020

I would start with min: 5, max: 600, change: 1 . If that provides updates even when power didn't chagne every 5 seconds, start multiplying the change by 10. So start with 1 -> 10 -> 100.

Make sure to reconfigure the device via https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttbridgeconfigure every time you change configure().

@mvjt
Copy link
Contributor Author

mvjt commented Oct 16, 2020

I would start with min: 5, max: 600, change: 1 . If that provides updates even when power didn't chagne every 5 seconds, start multiplying the change by 10. So start with 1 -> 10 -> 100.

Make sure to reconfigure the device via https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttbridgeconfigure every time you change configure().

Done, {min: 5, max: 600, change: 10} provided the best balance...I´ve commited the change. Thanks for the lesson...

@Koenkk
Copy link
Owner

Koenkk commented Oct 16, 2020

Thanks to you too!

@Koenkk Koenkk merged commit 83c8883 into Koenkk:master Oct 16, 2020
@lglw
Copy link

lglw commented Nov 6, 2021

This does not work
Koenkk/zigbee2mqtt#9531

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

Successfully merging this pull request may close these issues.

None yet

3 participants