-
Notifications
You must be signed in to change notification settings - Fork 4.9k
insert true/false for tasmota to accept for POWER control #3769
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
Comments
Hi, I tested the following rules :
using MQTT as:
and works fine. Console Output:
|
Thanks, the workaround works well :) |
True. You are right By now, this has been added to the wiki as there was nothing about IOBroker there. Thanks. |
I tried to finde the code line for adding true/false myself. in sonoff.ino method following MqttDataHandler I can't find the on/off interpretation in the payload conversion section... Do you have a hint where to find it?
|
My understanding is that iobroker uses node.js There must be hundreds of solutions to change true to 1/On and false to 0/Off by node.js |
oh sorry for the misleading comment :/ |
Hello ascillato, I have the same problem than madjack84. But for some reason the rule you mentioned does not work for me. I paste this in the console: and it accepts it: But on every "true" (or "false") trigger, it just switches off Can you tell me, what I am doing wrong? Thank you and best regards |
Please, use command weblog 4 to have more debug information in the console, and then try the event true and event false. Please, paste the output of the console. Thanks |
Thank you for the fast response. Now I have the following: and at action: |
Thanks for posting. The problem is that you are sending POWER TRUE to Tasmota. That is not supported. These rules just add another way of turning relays that is sending the commands: |
As far as I can see, iobroker is sending "true" to the ID "power" and not "power true". But I might be wrong. and also here: Whatever, this should mean, tasmota is incompatible with iobroker? I do not see anything that could be configured to make that work. I can only export the mqtt path of my tasmota device to Alexa cloud adapter of iobroker. Thats it. I am very new to mqtt, but I cannot believe, that two of those promising and well known products (Tasmota and iobroker) should be incompatible over the worldwide standard mqtt. Thank you for your time. |
You need to change in IOBROKER the ID power to ID EVENT. Just that. |
the ID is not editable. |
madjack84 did that and these rules work for his setup (#3769 (comment)) |
Well, maybe @madjack84 can tell us, where the magic rename button is. The edit pen on the right is not. |
Ok, seems that madjack84 did some modification to iobroker to make this works. Reopening this request to see if there is someone interested on working on this and provide a PR for supporting IOBROKER. So far, IOBROKER is not supported by Tasmota and there is no information about it on the wiki. |
Hey all, you have to send an Event, but not Power itself The rule I use: rule 1 The mqtt message: cmnd/sonofftopic/event true Thats the workaround and it works well. |
Strange. I'll investigate. |
Just tested and it works as expected.
|
Unless you are using another language than English where the words "True" or "False" are translated in something completely different :-) I'll add "True" and "False" to the parameter decode list. Nice issue. |
Closing this issue as it has been added. Thanks |
I will wait for the next release and give it a try. Thank you all for the quick support. |
It is already compiled at http://thehackbox.org/tasmota |
Works like a charm :-) Thank you! |
Is your feature request related to a problem? Please describe.
iobroker does only send true/false or 0/100 (for lits) but tasmota firmware only accepts 1/0 or ON/OFF.
extend MQTT message set.
Already saw that in many posts, but with no good answer.
Describe the solution you'd like
Please add true/false as
'cmnd/myDevice/power' -m 'true'
for setting POWER to 1
Describe alternatives you've considered
rules don't work properly
"Rule1":"1","Once":"0","StopOnError":"0","Free":435,"Rules":"on event#power=false do power1 0 endon on event#power=true do power1 1 endon"
as iobroker can't generate a message with payload power=false
The text was updated successfully, but these errors were encountered: