fake_entities: binary_sensor.true: True binary_sensor.false: False binary_sensor.off: 'off' binary_sensor.on: 'on' sensor.int17: 17 sensor.int170: 170 sensor.int200: 200 sensor.int3: 3 sensor.float10: 10.0 sensor.float5: 5.0 sensor.strNuit: 'Nuit' sensor.strHome: 'home' tests: test_1: expected_result: Succeeded conditions: binary_sensor.true and (sensor.strHome == 'home' and sensor.float10 > 1) test_2: expected_result: Failed conditions: binary_sensor.true and (sensor.strHome != 'home' and sensor.float10 > 1) test_3: expected_result: Failed conditions: not binary_sensor.off and not binary_sensor.on and sensor.strNuit == 'Nuit' test_4: expected_result: Failed #this test will make the parser crash if the and operator evaluate the second operand wether the first one is true or false conditions: sensor.strHome != 'home' and sensor.strHome < 15 test_5: expected_result: Succeeded conditions: sensor.float10 != 'Home' and sensor.float10 < 15