[DEPRECIATED] BitBar V2: Display & Control SmartThings from the macOS Menubar
i added the device handler for a a button
now, i get an error in bitbar.
Version 3.14 ST_Python_logic.py
It appears that this Hank One-key and Four-key Scene Z-Wave Controllers DTH does not conform to providing a device title attribute in the historical event log. Sorry this knocked out BitBar.
I have uploaded ST_Python_logic.py version 3.14 with better error handling to accommodate for this unexpected severe condition.
Please update your local copy of ST_Python_logic.py with the new 3.14 version on your Mac in the BitBar Plugins directory.
I have updated, and everything looks good, but I see a sun icon next to dimmers, how do I get the dimmer value instead.
A few versions back, an update provided the device type emoji icon next to the name for dimmer an color capable bulbs.
The dimmer level along with the color values were moved to the submenu for that device.
I will need to do some major modifications to the whole application to designate that one would want the dimmer value included with the dimmer icons on the main menu. And if I am going to make that change to the application, I might as well allow one to customize the emoji icons selected for their dimmer and color bulb device types.
Annoucement of a New Features Release (3.15)
BitBar V2 v3.15 Display Dimmer % Level Values and Additional Customizable Emoji Icons (5/21/2018)
- This minor update is optional and only required for those who desire the new features.
- Both BitBar Output App and ST_Python_Logic.py must be updated to v3.15. Follow upgrade instructions in previous threads or the ReadMe file
** This 3.15 version release allows some additional end user customizations:
- Added the capability to designate whether to display or suppress (default) the dimmer level % on the Main Menu after the name of the dimmer capable device. A True/False switch has been added to the v3.15 ST Bitbar Output menu Display Options section.
- Added the capability to customize the name of the emoji icon displayed for dimmer and color light/switch capable devices. Added new options in the “Customize Sensor Status & Type Display Settings”.
For those early adopters of v3.15, I have corrected an issue where some switches/lights were not being displayed in the BitBar main menu.
Please update the raw text version of ST_Python_Logic.py version 3.15a which is now in the STBitBarAPP-V2 GitHub repository.
It use to be in the menu, I didn’t know if this update provided a customization option I needed to turn on to see it again. No need for extra development, everything looks great, thanks for your hard work.
@pmjoen It’s too late . Version 3.15 now provides what you need to get the dimmer % levels back where they were in earlier versions, as well as one can choose customized emoji’s for switches/color light device types.
Looks awesome, thanks for the update.
with the new fibaro door and flood sensor i get this error
Bug Fix Version 3.16 ST_Python_logic.py
It appears that these devices do not conform to providing a critical attribute in the historical event log. Sorry this knocked out BitBar for you. It is hard to trap for every error when you are expecting device handlers to be consistent and follow the standards set by SmartThings.
I have uploaded ST_Python_logic.py version 3.16 with better error handling to accommodate for this unexpected severe condition.
Please update your local copy of ST_Python_logic.py with the new 3.16 version on your Mac in the BitBar Plugins directory.
Anyone getting this today?
Yes my Internet is up and functioning.
EDIT: Nevermind, a reboot fixed it. Something must have been stuck on my Mac.
Just tried installing. Enabling the API keys in the App didn’t create anything in the live log screen, made it very tricky to hand copy them from the iPhone to the Mac. What am I missing?
One of the tricks that I employ for API key management is maintaining these long strings into the Apple Notes application which is automatically synchronized from my Apple iPhone to my Apple MacBook. I copy and paste the API string displayed on the Apple iPhone screen and paste it into a separate iPhone Notes page.
Once I have access to these long API strings on the Apple MacBook Notes application, I can copy the API key and then use TextEdit to paste them to anywhere they need to be inserted.
A second method is to send the API string displayed on your Apple iPhone (by coping it) to yourself via either e-mail or a SMS text message and then retrieve it on the Apple MacBook’s Mail or Messages application.
I was not bale to copy and paste, I tried the usual way to copy text by long-pressing to get the copy popup, but that screen with the urls did not respond to any type of long press or attempt to select and copy the text.
It can be frustrating to copy on the iPhone. It usually takes me a few attempts…but entering the API string manually is more of a pain and prone to error.
So it doesn’t show the urls in the live log like the instructions say it will?
And I am positively unable to copy and paste from the App.
Plus I found that somehow the settings got corrupted and it revoked the API, so now I have to hand copy it again every time this happens? I’m running out of will to keep experimenting.
I don’t know what you are asking for? The API string does indeed show itself in the ST IDE Logging screen as the instructions designate and I have posted below (removed confidential string with xxx’s). You simply need to have your browser on the Live Logging page in the ST IDE, and on the iOS/Android ST mobile client, enter the BitBar Output App first screen where the API setup is displayed.
6:46:36 PM: debug
6:46:36 PM: debug The API has been setup. Please enter the next two strings exactly as shown into the ST_Python_Logic.cfg file which is in your BitBar plugins directory.
6:46:36 PM: debug
6:46:36 PM: debug smartAppURL=https://graph.api.smartthings.com:443/api/smartapps/installations/xxx/
6:46:36 PM: debug secret=xxx-xxxxx-xxxxx-xxxxxx-xxxxx-xxxxx
6:46:36 PM: debug
You should be able to copy and paste these two SmartThings API strings into the ST_Python_Logic.cfg file using macOS Textedit app, making sure that you are saving the ST_Python_Logic.cfg file in a TXT format and not rich text format.
There are many of us using this app which has been stable for many months since the last minor update. If you are getting corruption of the ST_Python_Logic.cfg file on the Mac, might I suggest that perhaps your hard disk has some issues that you can diagnose and repair with macOS disk utility.
I wish I could offer more insights to troubleshooting as I completely understand how frustrating these applications can be to install. If you wish to delete the app from your ST mobile client and the files from your Mac, I completely understand.