![]() If the task gets executed it sends an HTTP GET request to the REST API of the openHAB server and the rule will print a line in the log to show the command was received.įor those with an iPhone, a really easy, reliable, and fast way to integrate the Flic buttons is through the Flic app on the iPhone and creating an "HTTP request" and then using the following:ītw: There might be a linux library in the works, so you can connect the buttons directly to your openHAB server via a bluetooth dongle. So, if Tasker can run a background http server, when there is a http post or http get sent to this server, tasker can triger an event, and run some tasks according to the http post data, such as coping the data, responsing the phones clipboard to the http get request. substitute "click" for "hold" or "01" for "02"). You can clone the first task and just change the value of these variables to create the next task. The tasks use local variables to define the number of each FlicButton (%flic_nr), the action (%flic_action) and the state (%flic_state) you want to put the item in. If you have the Flic app installed there will be a tasker plugin available when you add a new profile and select "event".Ĭlick on "Configuration" and select the FlicButton and the Type (of Action) you want to trigger on. This way you can easily change the openHAB IP or port for all tasks at once. Use the global variables %OHSERVER and OHPORT to specify the openHAB server. You can import this Tasker project via an xml file ( download XML). Install the Tasker app on your android device. Install the Flic app and connect your Flic devices.Ĭall them "Flic01" to "Flic0." for this guide. Items, Rules and more Examples of a SmartHome.Item definition examples Sitemap definition examples Press CTRL-SHIFT-P -> Tasks: Run Task -> Start openHAB (Debug) to start an openHAB instance in debug mode.You should see openHAB startup in a new VSCode terminal.Press F5 (or bring up debug in VSCode and choose the 'Debug (Attach) - openHAB' configuration) and the following should occur in the VSCode terminal. Please update the wiki if you do come across any out of date information. ![]() ![]() Be aware that things may have changed since they were written and some examples might not work correctly. Feature overview Installation Setup intro Linux and OS XĪ good source of inspiration and tips from users gathered over the years. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |