This is my automation for turning on a closet light. It is hard coded to turn on if the kitchen brightness check node is 50 or less then the lux value from a motion sensor in the kitchen. I want to be able to change that hard coded 50 to get a value I can set from the front end, front an input box or input slider.
[{"id":"e22d85ec.7a1fa8","type":"server-state-changed","z":"fc5facd3.2748a","name":"Kids Linen Closet Door","server":"6bf3852e.cfd07c","version":1,"entityidfilter":"binary_sensor.kids_linen_closet_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":160,"y":500,"wires":[["f7057cb1.d2b4b"]]},{"id":"f7057cb1.d2b4b","type":"switch","z":"fc5facd3.2748a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":500,"wires":[["aaf68026.931e6"],["a38111ee.1455e"]]},{"id":"61419ae9.719094","type":"api-call-service","z":"fc5facd3.2748a","name":"Turn Kids Hallway Light On","server":"6bf3852e.cfd07c","version":1,"service_domain":"light","service":"turn_on","entityId":"light.kids_hallway_light_dimmer","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":820,"y":520,"wires":[[]]},{"id":"a38111ee.1455e","type":"api-call-service","z":"fc5facd3.2748a","name":"Turn Kids Hallway Light Off","server":"6bf3852e.cfd07c","version":1,"service_domain":"light","service":"turn_off","entityId":"light.kids_hallway_light_dimmer","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":640,"wires":[[]]},{"id":"aaf68026.931e6","type":"api-current-state","z":"fc5facd3.2748a","name":"Check Kitchen Brightness","server":"6bf3852e.cfd07c","version":1,"outputs":2,"halt_if":"50","halt_if_type":"num","halt_if_compare":"lte","override_topic":false,"entity_id":"sensor.kitchen_lux_sensor","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":530,"y":480,"wires":[["61419ae9.719094"],[]]},{"id":"6bf3852e.cfd07c","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false}]