This example provides very simple implementation for NLI-powered light switch. You can say something like turn the lights off in the entire house
or switch on the illumination in the master bedroom closet
. You can easily modify intent callbacks to perform the actual light switching using HomeKit or Arduino-based controllers.
You can run this example from command line or IDE in a similar way:
org.apache.nlpcraft.NCStart
-server
org.apache.nlpcraft.NCStart
-Dconfig.override_with_env_vars=true
CONFIG_FORCE_nlpcraft_probe_models.0=org.apache.nlpcraft.examples.lightswitch.LightSwitchModel
-probe
org.apache.nlpcraft.examples.lightswitch.LightSwitchTest
Read the blog post explaining this example in greater details.
See Getting Started guide for more instructions on how to run these examples.
For any questions, feedback or suggestions:
Copyright (C) 2020 Apache Software Foundation