But I couldn’t add ‹ countdown_1 › because we don’t have the integration for this type of value.
This normally allows turning off the plug or the light after a certain time. @pierre-gilles: have we ever had a device with this feature?
And the value reported by « add_ele » is quite weird because according to the doc: « Increased power: It refers to the power consumption of the device. Each time the “incremental” is reported. »
So we would need to add the values together but I don’t know by what magic.
This data is the cumulative consumption. I have the impression that this cumulative is done internally by Tuya; the returned value already takes the calculation into account. It deserves to be tested (I’m at your disposal!).
Well, on my side, on my device, it only responds 0 or 1 so I think I have to do the calculation.
Here is the Docker image to run tests on your side: delogzway/gladys:add_energy_tuya (it will be active in 1 hour because it is being built)
Thanks for the reply @pierre-gilles. @PhilippeMA: I think we’ll need to make another specific request to add the feature (But I think we can already achieve this behavior with scenes if I’m not mistaken)
Indeed, for now I’d welcome feedback from @PhilippeMA on the Docker image — it’s already great if we deploy the consumption info to production, even if we add the other feature later!
@PhilippeMA : Thanks for the test and investigation. I hadn’t seen that in the docs it said the returned value was multiplied by 100.
J’ai fait la modif. Je vais sortir une image avec ce correctif.
But I think this value will only be useful in a chart.