First my unconditional appology to you, it has never been my intentention to pester you.
I think you have done a great job, and I have my self spent hours in trying to solve the en/decoding issues your solution is facing with other devices.
I will keep of the thread, and only return if I find a useable solution de/encoding solution.
I have found this one https://github.com/subzero79/node-red-contrib-tuya-local
Very promissing and simplifies the topic you are working on. But the main problem is that author converted all his devices witn new tuya-convert and project is discontinued.
It is quite hard to install it but it definitely belongs to HACS.
I can get data in HomeAssistant but everything is in one entity. And I can not turn them on or off and add more than 2 devices as on template.
I would really appreciate if someone of you could continue his work and make user friendly solution
Nath, with your help I managed to get the data. But I still can’t get anything useful out of it. Can not use power data in automations and even switching does not work for me…
If you are replacing those strings that should work!
Are you getting any log output?
To answer your second question, after you run that command, it should keep going and restart when your server restarts until you kill the container manually.
To be honest, I use docker-compose to maintain my version; however, that shouldn’t be necessary.
As soon as I have time. In the meantime if anyone else is interested in turning my repo into a HACS compliant version they are more than welcome to do so. Pull Requests are also greatly appreciated.
Hello,
get error installing tuyapower2mqtt:
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-V7Az7g/tuyapower2mqtt/
i do not know what is getting wrong? any advice?
tia
Michael
Hello. This is very cool solution, I like it very much. The problem I have is that after some time, the switch seems to get stuck with constant values and it sends same values over and over again. Cron job works fine, I see MQTT message every minute. But values are same all the time and I have to look at socket in mobile Smart Life application. Then values in MQTT get updated, but when I kill Smart Life values are constat every minute again. Have you seen this? Looks like device is not probed to update.
I learned that device sends changed values in irregular intervals, sometimes even after one hour. I think that values change slightly in the meantime, but are not send. Major changes seem to be sent more often.
Since I could not figure out how to run these sudo and pip commands on “Home Assistant Operating System”, I checked “HACS” and there is has something called “Local Tuya” which seems more noob friendly. Going to try that. Hold my beer.