Skip to content

Need help with a RULE triggered by two conditions #22674

Answered by sfromis
paggps asked this question in Q&A
Discussion options

You must be logged in to vote

There is no straightforward way of doing that with rules, but since Bluetooth is typically on ESP32 devices, I'd recommend you to use the Berry language, where the Tasmota integration specifically allows combined trigger conditions.

The issue with your attempt is that trigger expressions with # can only be used in the trigger part of a rule, before do, only a single trigger value, and not available in the body part after do. You'd have to use multiple rules, but again, Berry is a better approach.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@paggps
Comment options

Answer selected by paggps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants