mirror of
https://github.com/t-affeldt/climate_api.git
synced 2025-07-06 10:20:37 +02:00
Make wind dependent on height, add additional control commands, improve docu
This commit is contained in:
@ -37,7 +37,7 @@ function trigger.test_condition(condition, env, goal)
|
||||
return false
|
||||
else
|
||||
value = env[condition]
|
||||
return type(value) ~= "nil" and goal == value
|
||||
return type(value) == "nil" or goal == value
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user