-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not a BUG: Modify to Tastomateacher4domo #42
Comments
In theory it is possible, although there are a lots of sensors and mysterious RGB settings beyond the standard relays in Tasmota which i have no clue how it works. But FYI:
|
"Tasmota docs are open source and are maintained by the community," :) I've found this information on Tasmota github regarding TasmotaDiscovery: Preliminary discovery message format example
I think it may be converted to old style Autodiscovery and saved as retained configuration objects with some (i mean a lots of) work. |
@sincze TasmotaDiscovery support added at testing branch. No binaries yet, can be run under python3. |
Followed the instructions as indicated on the Domoticz forum, probably I missed a pre-requirement step. |
You have to set settings.py if you are not using the GUI to change yout mqtt broker IP and the autodiscovery topic if you are not using 'homeassistant'. (please do not use the 'tasmota' prefix for autodiscovery output, as this is the input) And of course use tasmo=True to enable new function and when something not works debug=True may also help. |
interesting, you are using Tasmota on Shelly devices? |
Mmm busted. To be honest. I got shelly on shelly fw |
I guess Tasmota reports its change in /POWER if only one relay found but reacts to /POWER1. Just guessing. |
I am also fiddeling with the setup mentioned here to spot the differences |
OK to get the switch working I took the JSON from what the teacher created and modified it to the following: shelly-pi5/switch/68C63AA84B81_RL_1/config
However the following minimum change POWER1 to POWER is also sufficient.
Now I am able to control ON and OFF. IF we do not modify the script the following also fixes the issue SetOption26
|
Its very interesting that Tasmota does not use Power1 when only one relay present, in its default behaviour. |
Its very interesting config object. I do not know how its possibly works, as the POWER structure is not a JSON. :D |
Power1 fix added at commit 17f0ba7 |
For some unknown reason, Tasmota devs thinks it is necessary to report config in two distinct message, one for the sensors and another one for everything else. In my current implementation i read first the "config", than wait for "sensors" structure for 5 x 0.1 seconds and if its arrived than i will send out the config payload. I guess in case the sensors come first, than the relays will never be processed. Currently i have no idea how to solve this, as this never happened with my test Tasmota device so far. I tried your payloads directly with the common.py in offline mode, where Tasmota_Discovery() is declared and it constructs the relay config payloads correctly.
|
Hi.
Inspired by your work.
I don't know if you are interested in adapting this code so it can handle the new Tasmota autodiscovery as well ? Tasmota team dropped support for "Setoption19 1" a legacy homeassistant auto discovery and introduced a new version.
In theory with the correct templates it should be possible right?
link: https://www.domoticz.com/forum/viewtopic.php?p=312108#p312108
Many thanks for taking it into consideration.
The text was updated successfully, but these errors were encountered: