Posts

Showing posts from November 30, 2020

Adding a way to set door codes - Part 3: Use our helpers in the script

Image
< Previous                                                                                              Next > We have a script and we have some 'helpers'.  Now we can use the information we get from the helpers in the script.  In the post after this one, we will tie this all together in a 'card' that we will put on our dashboard. Write a 'script' to set the door code. Create 'helpers' to make it easy to select the door to use, the code slot, and to enter the door code itself. Use the 'helpers' in the script. Create a 'card' that uses the helpers and the script.  This is like the lock card, but uses the helpers to get the door, code slot and door code. Use the 'helpers' in the script This will be the most cryptic part of this process....

Adding a way to set door codes - Part 2: Create helpers

Image
< Previous                                                                                              Next > We have a very basic script written.  Now we need to make some 'helpers' so we can put the information into the script easily.  Helpers are small thingies (another technical term) that make it easier to put data into the system. Write a 'script' to set the door code. Create 'helpers' to make it easy to select the door to use, the code slot, and to enter the door code itself. Use the 'helpers' in the script. Create a 'card' that uses the helpers and the script.  This is like the lock card, but uses the helpers to get the door, code slot and door code. Create 'helpers' to make it easy to select the door to use, the code slot, a...

Adding a way to set door codes - Part 1: Write a script

Image
< Previous                                                                                              Next > Setting door codes is a lot more complex than locking and unlocking.  I will walk through the steps with a lot of detail. Write a 'script' to set the door code. Create 'helpers' to make it easy to select the door to use, the code slot, and to enter the door code itself. Use the 'helpers' in the script. Create a 'card' that uses the helpers and the script.  This is like the lock card, but uses the helpers to get the door, code slot and door code. Write a 'script' to set the door code This may sound a little scary, and techie, but I'll walk you through it. First - open up the Home Assistant -  http://homeassistant.local:8123/ , ...