If you have at least Tasker version 5.4.6b (you might need to join the beta) you can also directly import this project from here.
It'll work like this:
STEP 1 - CREATE PROFILE WITH SMS CONTEXT
- Create a new profile
- Add the Text Received event condition to it
- Set Content to WiFi
- Accept the context and create a task
STEP 2 - RESPOND WITH PASSWORD
- Add a Send SMS action
- Set the Number to %SMSRF (which is the SMS From variable)
- Set the Message to your WiFi password
- Enable the Store In Messaging App option
- Accept the action
STEP 3 - ONLY WHEN CONNECTED TO YOUR NETWORK
- Add a Wifi Connected condition to the profile you just created
- Set the SSID to the name of your home network (use the magnifying glass for help
Now whenever someone texts you the word WiFi (watch the uppercase F) you'll automatically text them back your password!
Automatically send your guests your WiFi Password when requested 2018-09-20
If a guest sends you an SMS with "WiFi" while you're at home, send them the WiFi password back