Power outlet with energy monitoring, but no sensors.
Closed this issue · 8 comments
LocalTuya Version
2024.7.0
Home Assistant Version
2024.8.0
Environment
- Does the device work using the Home Assistant Tuya Cloud component?
- Is this device connected to another local integration, including Home Assistant and any other tools?
- The devices are within the same HA subnet, and they get discovered automatically when I add them
What happened?
Hi,
I bought a socket from LSC Smart Connect.
This is a socket with energy monitoring.
I can successfully add this with this "local tuya integration".
However, I only see an on/off switch, and I see no sensors for wattage, voltage and ampere.
If I use the official integration, I do have this.
How do I get separate sensors to work together with the local tuya integration?
He does not create separate entities for energy consumption
With the official Tuya Cloud integration:
With Local Tuya:
Steps to reproduce.
it is currently paired with local tuya, with only the on/off switch.
Relevant log output
No response
Diagnostics information.
No response
Did you configure it manually? in it's automatically then it just some missing entitles. Post the device diagnostics
Hi,
Thanks for your answer.
I did indeed choose manual configuration.
see attachment for the device diagnostics.
localtuya-0cdd7f6926802e192bad851ee499b066-Stopcontact Airco's-48fe6153b719c1595a946ab6c416046d.json
I have now made sensors for the voltage and wattage myself, but I don't know which one to choose for the ampere in the manual configuration.
and is there a sensor for the total consumption?
and it shows the ampere:
158.0A instead of 0.158A
If you haven't setup cloud then you will need to setup each entity manually, now since there is no also cloud data I can't give much information about your device. "you can pull the device data manually from IoT if you want."
The ampere should be a sensor example of my current sensor
158.0A instead of 0.158A
You can scale factor the number if you chose "sensor" as entity type. if 158.0
then scale factor should be 0.001
hi,
thanks for your answer.
how did you make this sensor?
is that a template sensor, via a helper?
No it's just an entity created by LocalTuya however I also setup cloud api on my localtuya integration for auto configuration. but for your case you need to add it manually
For example for manual setup
:
- Go to HA -> Devices -> localtuya .
- Click on configure.
- Choose reconfigure existing device.
- Select your device and check on the box "Add new entity(s)".
- then choose Sensor and select the DP related to ampere
for me it was 19
. - then you can configure the entity for the selected DP as the example image I posted above.
Thanks!
It worked.
last question:);
is it possible to make a sensor for the total consumption?
the cloud tuya also does not show this.
did you happen to make something for this?
Not sure yet how does total consumption works locally because I never actually tried to do one.
The cloud usually do the calculation on the cloud and show it on Tuya APPs if it's supported.