9/12/2023 0 Comments Smartapp code![]() ![]() These files shoud be the only files in the plugins directory and the ST subfolder. Copy ONLY the ST.5m.sh file to the plugin directory you specified along with the ST subfolder containing the Python script and the ST_Python_Logic.cfg (make sure these two files stay in the folder named ST). If there were no spaces, it always worked. There were issues in an older release of BitBar if the path contained spaces, but supposedly it’s fixed, but I still had issues in some cases. IMPORTANT: When selecting a plugin directory, make sure you create one that does not contain spaces.Download and install the BitBar app here.Section 3: Setting up BitBar and ST Plugin Back on your mobile device, tap Select Devices and choose the devices you want to display/control then tap Done.Copy/Save these two lines to input in the ST_Python_Logic.cfg in the step ahead.You should have a URL and secret displayed in the Live Logging screen tab. On the BitBar app, tap Enable the API then tap Done.Before continuing to the next step, open the IDE Live Logging in a separate browser tab on the PC.Go down to My Apps > select BitBar Output App. Now for actually installing the SmartApp: On your mobile device in the SmartThings app > tap Automation > SmartApps > + Add a SmartApp (at the bottom).Enable OAuth: Back at the My SmartApps page, click the little edit icon for the BitBar Output App, then click OAuth section, then click Enable OAuth in SmartApp.Click the From Code tab and paste the SmartApp code from GitHub then click Create.Click My SmartApps > then New SmartApp (top-right green button).Setup the SmartApp: Find your SmartThings IDE link (Note: USA Site URL). ![]() Installation:įor the most up-to-date instructions, visit the GitHub page here Section 1: Making the SmartApp available via the IDE If there’s interest I can add more devices and features, or anyone in the community is welcome to modifying it. Currently it works for displaying temperature, contact, presence and motion sensors, and controlling switch/dimmer level devices, locks and also thermostat control. Monitor SmartThings sensors from the Apple OSX Menu Bar. I then wrote the SmartApp and Python script to output and handle the rest of the logic. I ended up finding BitBar which is an open source application that takes formatted output and displays it in the menubar. I was looking for something lightweight and an out-of-the-way solution to monitor sensors which didn’t require having a browser window open. StatusBarOnly.png 1702×177 270 KB Overview: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |