Thank you Rich!!
It is showing a strange behaviour, definitely. I will try to explain it in a more detailed way, but first i am going to give some details regardin some rules I have:
- I have lots of rules where I control different kind of Z-wave or somfy actuators items using scene controls items coming from chanels from things like Remotec ZRC90 or Hank SCN04
- I normally set a trigger with an Item that updates its state. I set any action and set some conditions always including one related with the trigger’s item having a value with an operator.
configuration: {}
triggers:
- id: "1"
configuration:
itemName: Escena_Dormitorio_1_8_1
type: core.ItemStateUpdateTrigger
conditions:
- inputs: {}
id: "3"
configuration:
itemName: ToldoDormitorio1_Control
operator: <
state: "91"
type: core.ItemStateCondition
- inputs: {}
id: "4"
configuration:
itemName: Escena_Dormitorio_1_8_1
operator: =
state: "0"
type: core.ItemStateCondition
actions:
- inputs: {}
id: "2"
configuration:
command: "91"
itemName: ToldoDormitorio1_Control
type: core.ItemCommandAction
This is how I have to design the rules in order to work with the scene controllers and the actuators.
If a try to set a rule like the following, it never works:
configuration: {}
triggers:
- id: "1"
configuration:
state: "0"
itemName: Escena_Dormitorio_1_8_1
type: core.ItemStateChangeTrigger
conditions:
- inputs: {}
id: "3"
configuration:
itemName: ToldoDormitorio1_Control
operator: <
state: "91"
type: core.ItemStateCondition
actions:
- inputs: {}
id: "2"
configuration:
command: "91"
itemName: ToldoDormitorio1_Control
type: core.ItemCommandAction
So, it was when I tried to design a new rule following the first case that I discovered the issue with the rule generator. And aswering to your question, these are all the steps:
1) Trigger and Action
configuration: {}
triggers:
- id: "1"
configuration:
itemName: Escena_Dormitorio_1_8_5
type: core.ItemStateUpdateTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
command: OFF
itemName: Casa_Luces
type: core.ItemCommandAction
2) Conditions
The screen you mention, “ADD CONDITION”, with the four options is shown
3a) Item condition
I pick the item from the model
3b) Add condition
I select the operator an the state, corresponding to the 5th button of the Remotec ZRC90, and the value 3 for the state “KeyPressed2x”
3c) Closing to go back to rule screen
Nothing happens and there is no condition at all
And there are no conditions in the rule YAML
configuration: {}
triggers:
- id: "1"
configuration:
itemName: Escena_Dormitorio_1_8_5
type: core.ItemStateUpdateTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
command: OFF
itemName: Casa_Luces
type: core.ItemCommandAction
4) Time condition
Impossible to go on with anything
5a) Script condition
5b) Add condition / Design with Blockly
Nothing to do; all is empty
6a) Ephemeris schedule
I select “It is a weekday”
6b) Back to rule
Nothging happens. There is no condition either in the rule screen or in the YAML code
configuration: {}
triggers:
- id: "1"
configuration:
itemName: Escena_Dormitorio_1_8_5
type: core.ItemStateUpdateTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
command: OFF
itemName: Casa_Luces
type: core.ItemCommandAction
And that’s all folks…
Thank you again!!!