Done.
Time for a compliment: your support and (very fast) response is highly appreciated!
Moderator: leecollings
Done.
Do my best, Tuya is not the greatest in supporting hardware. But these devices can work under the plug-in. You can put the json there in the forum.
Found it i see the problem i need to think how to solve the issue.
After the communication in the PM. What kind of issue you have, same as manjh?
Nope, the last one is that you going to try my modified plug-in.
OK, good. Let me know if there is anything I can do, for instance test a modified plugin.
ow haha nope, i can only trial and error, but i cant write the language haha
Hi simon_rb,
The payload is exactly the same, I could do if the light is on white mode the only brightness and temperature and if it is colour then colour, brightness and temperature. Then with a instruction in the readme for RGBWW light before detection set the light on a colour.
Tried to flash the unit with tasmota, but its says i have the newest firmware on it, and cant flash it.
Which tool did you use to try flashing it with Tasmota?
But on the NAS, the links are2021-03-26 16:34:46.818 Error: (tuya) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/Domoticz-TUYA-Plugin-master/:
/var/packages/py3k/target/usr/local/lib/python38.zip:
/var/packages/py3k/target/usr/local/lib/python3.8:
/var/packages/py3k/target/usr/local/lib/python3.8/lib-dynload:
/var/packages/py3k/target/usr/local/lib/python3.8/site-packages'.
//volume1/@appstore/domoticz/var/plugins/Domoticz-TUYA-Plugin-master
/volume1/@appstore/py3k/usr/local/lib/python3.8
/volume1/@appstore/py3k/usr/local/lib/python3.8/lib-dynload
How to restore the right paths ?/volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages
Code: Select all
Getting credentials
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/models.py", line 382, in prepare_url
scheme, auth, host, port, path, query, fragment = parse_url(url)
File "/usr/lib/python3/dist-packages/urllib3/util/url.py", line 392, in parse_url
return six.raise_from(LocationParseError(source_url), None)
File "<string>", line 3, in raise_from
urllib3.exceptions.LocationParseError: Failed to parse: https://px1.tuyaeu.com/homeassistant/auth.do
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tontze/domoticz/plugins/Domoticz-TUYA-Plugin/tools/./debug_discovery.py", line 20, in <module>
auth_response = requests.post(
File "/usr/lib/python3/dist-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 528, in request
prep = self.prepare_request(req)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 456, in prepare_request
p.prepare(
File "/usr/lib/python3/dist-packages/requests/models.py", line 316, in prepare
self.prepare_url(url, params)
File "/usr/lib/python3/dist-packages/requests/models.py", line 384, in prepare_url
raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: https://px1.tuyaeu.com/homeassistant/auth.do
Code: Select all
2021-03-27 11:44:41.191 Status: Python Plugin System: (Tuya) Started.
2021-03-27 11:44:41.191 Status: Python Plugin System: (Tuya) Entering work loop.
2021-03-27 11:44:41.778 Status: Python Plugin System: (Tuya) Initialized version 1.0.5, author 'Wagner Oliveira'
2021-03-27 11:44:41.789 Error: Python Plugin System: (Tuya) handleThread: Failed to parse: https://px1.tuyaeu.com/homeassistant/auth.do line 196
2021-03-27 11:44:51.093 Python Plugin System: (Tuya) onHeartbeat called time=1616838291.092976
2021-03-27 11:44:51.094 Python Plugin System: (Tuya) in handlethread
2021-03-27 11:44:51.096 Error: Python Plugin System: (Tuya) handleThread: Failed to parse: https://px1.tuyaeu.com/homeassistant/access.do?grant_type=refresh_token&refresh_token= line 199
It is missing the requests.
Users browsing this forum: Bing [Bot] and 0 guests