Skip to content

Commit

Permalink
initial post
Browse files Browse the repository at this point in the history
  • Loading branch information
nqeron committed Aug 2, 2023
1 parent d7aa3ae commit bbc8d36
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ search: true
markdown: kramdown
remote_theme: mmistakes/minimal-mistakes
# Outputting
permalink: /projects/
permalink: /:categories/:title/
paginate: 5 # amount of posts to show
paginate_path: /page:num/
timezone: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Expand Down
19 changes: 19 additions & 0 deletions _posts/ShortcutTuyaAutomation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
#permalink: /posts/DitakticBot
title: "Automation of Tuya with Homekit and Shortcuts"
tags: Shortcuts Homekit Tuya SmartHome
date: 2023-06-02
---

Problem: I have devices that are registered and linked into my Tuya app, but HomeKit on iOS doesn't yet support integrating them into my Home app. While I can automate them through the Tuya app itself, Shortcuts is a bit more powerful and I'd like everything in one place. So, how can I link these?

Over the past few months - since moving into my new apartment - I've acquired some new electronic devices, including a vacuum and some air conditioners. The air conditioners themselves are not smart, but in combination with a smart IR device, I can use an app to turn them on and off. These devices are all supported by Tuya, but are not yet supported by Apple's Homekit.

Over the course of a fair bit of research and trial and error, I found that from the Tuya app it's possible to create Tap-to-Run scenes that can be exported to Siri. For example, say I want to turn my Air conditioner on. I create a Tap-to-run scene in Tuya with the actions I want (turn on air conditioner) and I use the "add to siri" button to add a simple shortcut.

This creates a voice activated shortcut that can trigger a Tuya scene. In addition, by going into the shortcut, selecting the down arrow on the scene action, it's possible to disable the confirmation/ see when run option, making things smoother. Also, it's possible to create some extra logic and automation around this. For example, my air conditioner scene doesn't actually distinguish between on and off. With the addition of some clever logic with the app Data Jar, I can store the state on my phone. (it's not perfect, as it will fall out of sync if I update it outside of Apple).

Now things are set up to create scheduled or other automations. Create a automation (e.g. run at time X) like usual. As a part of this, include the command "Run Shortcut" and target the shortcut that was created in the previous step. This work-around may seem a bit silly, but it's the only way I could find to accomplish this. In addition, if there is extra logic in the original shortcut, that gets encapsulated by this and handled automatically.

In short, using the Siri shortcut created from the Tap-to-run scene in Tuya, one can activate it with a "Run Shortcut" command in another automation.

2 changes: 1 addition & 1 deletion _projects/ditakticBot.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
permalink: /projects/DitakticBot
title: "DitakticBot"
tags: active, Nim, WebSocket
tags: active Nim WebSocket
---

A bot created for the two-player abstract strategy game Tak. Written in Nim.
Expand Down
2 changes: 1 addition & 1 deletion _projects/meeple4People.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
permalink: /projects/Meeple4People
title: "Meeple4People"
tags: inactive, Java, SQL, Spring
tags: inactive Java SQL Spring
---

A boardgame lending website. Designed for capstone project for PerScholas. Considering redesigning and re-implementing.
Expand Down
2 changes: 1 addition & 1 deletion _projects/personalLibrary.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
permalink: /projects/PersonalLibrary
title: "Personal Library"
tags: active, personal_library
tags: active personal_library
---

A project to enable users to store Personal libraries of books in the cloud and share info. Currently in design phase. Language to be determined.
Expand Down

0 comments on commit bbc8d36

Please sign in to comment.