Boolean Logic Ultimate only arrive 1 Topic

Hi,

could someone tell me why Boolean Logic Ultimate receive only 1 Topic?

Add a debug node showing what is coming out of the intermediate nodes when you click the inject and check that the topics are different.
Set the debug nodes to Show Complete Message to make it easier to see what is there.

The trigger nodes give both true as output.
but logic ultimate recognize only one topic

I want to do following:
call action if power is between 1-3 watt

that´s all
but i´m a newbie :frowning:

the Inject´s 0, 2 and 10 sould simulate (just to Test) the Power which i read from Wall Switch later

It says that 1 out of 2 TOPICS arrived.
So I think the topics in kalibrierung 1 or 2 don't match the topics set in boolean logic.

Post you code so we can test.

As I understand it you have a value in msg.payload and if that is between 1 and 3 then you want to send a message on, but otherwise don't send anything? If so then you can do that with a Switch node configured as below. If the value is between 1 and 3 it sends the message to output 1 (in fact the only output as this one is configured) otherwise it does nothing.
image

here´s the code

[{"id":"5024232.88595dc","type":"tab","label":"Waschmaschine Status","disabled":false,"info":""},{"id":"891b4301.a2fc5","type":"server-state-changed","z":"5024232.88595dc","name":"watt auslesen","server":"63bce175.9acd","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.switch_waschmaschine_energy_power","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"x":230,"y":700,"wires":[[]]},{"id":"3e764739.6a5898","type":"combine-bangbang","z":"5024232.88595dc","upper":"0.6","lower":"0.5","invert":false,"name":"kalibrierung 1","x":280,"y":120,"wires":[["44378067.4a2bf","ca3fd02a.f481a"]]},{"id":"80735402.e5e828","type":"stoptimer","z":"5024232.88595dc","duration":"10","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":450,"y":420,"wires":[["daf7fc1d.b37ae"],[]]},{"id":"ab34d74d.4fe758","type":"api-call-service","z":"5024232.88595dc","name":"led an","server":"63bce175.9acd","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"sensor.switch_waschmaschine_status","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":910,"y":360,"wires":[[]]},{"id":"daf7fc1d.b37ae","type":"switch","z":"5024232.88595dc","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":670,"y":420,"wires":[["ab34d74d.4fe758"],["e22d6e9b.c0a04"]]},{"id":"e22d6e9b.c0a04","type":"api-call-service","z":"5024232.88595dc","name":"led aus","server":"63bce175.9acd","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"sensor.switch_waschmaschine_status","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":920,"y":460,"wires":[[]]},{"id":"3cc64077.48fa7","type":"combine-bangbang","z":"5024232.88595dc","upper":"3","lower":"2.9","invert":true,"name":"kalibrierung 2","x":280,"y":200,"wires":[["44378067.4a2bf","a233b49d.d941e8"]]},{"id":"e036939.fb62d7","type":"inject","z":"5024232.88595dc","name":"","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":160,"wires":[["3e764739.6a5898","3cc64077.48fa7"]]},{"id":"6fdd833b.8d568c","type":"inject","z":"5024232.88595dc","name":"","topic":"","payload":"2","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":220,"wires":[["3e764739.6a5898","3cc64077.48fa7"]]},{"id":"d30878b5.a80638","type":"inject","z":"5024232.88595dc","name":"","topic":"","payload":"10","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":280,"wires":[["3e764739.6a5898","3cc64077.48fa7"]]},{"id":"29ee64e9.4d19cc","type":"debug","z":"5024232.88595dc","name":"output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":690,"y":140,"wires":[]},{"id":"44378067.4a2bf","type":"BooleanLogicUltimate","z":"5024232.88595dc","name":"","filtertrue":"both","persist":true,"sInitializeWith":"WaitForPayload","triggertopic":"trigger","outputtriggeredby":"all","inputCount":2,"topic":"result","x":480,"y":160,"wires":[["29ee64e9.4d19cc"],[],[]]},{"id":"ca3fd02a.f481a","type":"debug","z":"5024232.88595dc","name":"kalibrierung 1","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":470,"y":80,"wires":[]},{"id":"a233b49d.d941e8","type":"debug","z":"5024232.88595dc","name":"kalibrierung 2","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":470,"y":280,"wires":[]},{"id":"63bce175.9acd","type":"server","z":"","name":"Home Assistant","addon":true}]

yes, but is it possible to call action 1 if value is between 0.5 and 3
and call action 2 if else ?

In the 3 inject nodes at the left you have to fill in the topic, for all 3 a different topic name.
Then it works.

hhm, it´s not working.
if i press a again only 1 topic arrived.


But Isn't there an easier solution for my case?
I just want to do the following:
call Action 1 if value between 0.5 and 3
otherwise call Action 2

i think i done it :slight_smile:

[{"id":"6693685b.6ad928","type":"stoptimer","z":"5024232.88595dc","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"","x":340,"y":200,"wires":[["9cbd3876.19f9e8"],[]]}]

Did you look at my example with the Switch node? What you want can easily be done using that.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.