Add support for power metering and switch updates#36
Conversation
Otherwise the status is updated only when it is changed by the app (not by the switch or by power metering update).
|
Thanks for the contribution, however I believe you put the energy monitoring stuff in the wrong device handler. The Tasmota-Power device handler is meant to be a child device for devices like the Sonoff Basic which had no energy monitoring capabilities. This is why the momentary capability (that I saw you removed) was also declared. Instead a different device handler should be used/created (can't remember if there's the start of one or not already). |
|
Please create a "Tasmota-Energy" device handler that handles the reporting of energy monitoring stuff. Then update the main Tasmota device handler to spawn this new child device handler for the correct module type(s). This way if your device does not support energy monitoring then you will not have the every monitoring device spawned by SmartThings. |
Otherwise the status is updated only when it is changed by the app (not by the switch or by power metering update).
|
OK, moved to a new device handler. PTAL. |
|
The Sonoff-POW should spawn both a Tasmota-Power and a Tasmota-Energy child device. The two handlers should do their things independently. Please remove the Switch capability from the Tasmota-Energy (that's what the Tasmota-Power device handler is for). |
|
I'm not sure I understand why. It's a single device, with a single functionality. The energy metering is coupled with the switch. |
Add tiles and capabilities similar to e.g. "Zigbee Metering Plug", for Power Meter and Energy Meter.
Also made it auto-refresh every minute - this is applicable also for non power metering switches, as at the moment a manual switch would go unnoticed.