Virtual Sensor UI parameters #1337
Replies: 2 comments 5 replies
-
What do you have connected to that smart switch? By default a virtual power sensor setup with a fixed strategy will not count the configured power value when the device is off, so you wont't need
Could you be more specific what you want to achieve? The template should just return a float value. You can test the template for correctness in Developer Tools and past in powercalc configuration. |
Beta Was this translation helpful? Give feedback.
-
Hello. Let me describe the hardware I'm using and the result I want to achieve: I have multiple DIN smart switches TUYA AT-Q-SY1-JWT connected using locatuya. The switches are referred as, switch.water_switch2, etc in HA and has three attributes:
I want to create a virtual energy sensor for each switch measuring the energy and add the daily sensor to Energy Meter, standalone or as sensor group to measure the total energy consumption. What configuration should I use in UI of configution.yaml ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add, using UI, a new PowerCalc virtual sensor to count the consumed KWh from a TUYA AT-Q-SY1-JWT smart switch. Can you please give me some examples of "Calculation enabled condition" value , so I can stop the counting when the switch is turned off ?
Also I'm looking for an example of "Power template" value for another switch implementation.
Beta Was this translation helpful? Give feedback.
All reactions