From 8cdff6bcfbb2a911b964fe05b0db1ba2e6e208be Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 10 Dec 2015 09:19:08 -0800 Subject: [PATCH] Site updated at 2015-12-10 17:19:08 UTC --- atom.xml | 201 ++++----- blog/2014/12/18/website-launched/index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- blog/2015/01/13/nest-in-da-house/index.html | 12 +- blog/2015/01/24/release-notes/index.html | 12 +- .../2015/02/08/looking-at-the-past/index.html | 12 +- blog/2015/02/24/streaming-updates/index.html | 12 +- .../index.html | 12 +- blog/2015/03/08/new-logo/index.html | 12 +- blog/2015/03/11/release-notes/index.html | 12 +- blog/2015/03/22/release-notes/index.html | 12 +- blog/2015/04/25/release-notes/index.html | 12 +- .../05/09/utc-time-zone-awareness/index.html | 12 +- blog/2015/05/14/release-notes/index.html | 12 +- blog/2015/06/10/release-notes/index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../13/home-assistant-meets-ifttt/index.html | 12 +- .../index.html | 12 +- .../alarm-sonos-and-itunes-support/index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../index.html | 8 +- .../11/22/survey-november-2015/index.html | 12 +- .../12/05/community-highlights/index.html | 12 +- .../index.html | 12 +- .../12/07/influxdb-and-grafana/index.html | 12 +- .../index.html | 343 +++++++++++++++ blog/archives/index.html | 57 ++- blog/categories/architecture/atom.xml | 2 +- blog/categories/architecture/index.html | 12 +- blog/categories/branding/atom.xml | 2 +- blog/categories/branding/index.html | 12 +- blog/categories/community/atom.xml | 2 +- blog/categories/community/index.html | 12 +- blog/categories/component/atom.xml | 2 +- blog/categories/component/index.html | 12 +- blog/categories/core/atom.xml | 2 +- blog/categories/core/index.html | 12 +- blog/categories/esp8266/atom.xml | 2 +- blog/categories/esp8266/index.html | 12 +- blog/categories/frontend/atom.xml | 2 +- blog/categories/frontend/index.html | 12 +- blog/categories/how-to/atom.xml | 393 ++++-------------- blog/categories/how-to/index.html | 44 +- blog/categories/mqtt/atom.xml | 2 +- blog/categories/mqtt/index.html | 12 +- blog/categories/release-notes/atom.xml | 2 +- blog/categories/release-notes/index.html | 12 +- blog/categories/survey/atom.xml | 2 +- blog/categories/survey/index.html | 12 +- blog/categories/user-stories/atom.xml | 2 +- blog/categories/user-stories/index.html | 12 +- blog/categories/website/atom.xml | 2 +- blog/categories/website/index.html | 12 +- blog/index.html | 129 +++--- blog/posts/2/index.html | 128 +++--- blog/posts/3/index.html | 124 +++--- blog/posts/4/index.html | 67 ++- cookbook/automation_for_rainy_days/index.html | 8 +- sitemap.xml | 7 + 69 files changed, 1103 insertions(+), 970 deletions(-) create mode 100644 blog/2015/12/10/activating-tasker-tasks-from-home-assistant-using-command-line-switches/index.html diff --git a/atom.xml b/atom.xml index 8a2201853c..dbd7d269b0 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ @@ -13,6 +13,75 @@ Octopress + + <![CDATA[Activating Tasker tasks from Home Assistant using command line switches]]> + + 2015-12-10T02:39:41-08:00 + https://home-assistant.io/blog/2015/12/10/activating-tasker-tasks-from-home-assistant-using-command-line-switches +
+In this tutorial I will explain how you can activate Tasker tasks from Home Assistant command line switches. We are going to set up a switch that when toggled will make your Android device say either “On” or “Off”.

+ +

You could also do this with the automation component instead so whenever you put your house to sleep mode for example your Android device will open up Google Play Books or the Kindle app ready for you to read as well as dimming your lights, but this tutorial is all about the switches.

+ + + +

AutoRemote URL

+ +

First things first you should install Tasker and AutoRemote onto your Android device and launch AutoRemote. You should see a URL above the QR code, visit it in your browser and it should bring up a page a bit like this.

+ +

+ +

+ +

Now type in SayOn in the Message box and you should see a box appear on the right with a URL in it, this is what we will be using in the Python script later on so save that for later. Do the same thing again but this time replace SayOn with SayOff. Now just click the Send message now! button to test that your commands will get sent to your Android device, if they do you will see a toast message at the bottom of your screen like this one.

+ +

+ +

+ +

Tasker Setup

+ +

Open up Tasker and make sure you’re in the PROFILES tab, then select the plus icon to create a new profile. Select Event -> Plugin -> AutoRemote -> AutoRemote and then the pencil icon to configure the AutoRemote event. Select Message Filter and enter in SayOn then go back until it asks you for a task. Select New task then just leave the next field blank and select the tick icon.
+This is where we’ll configure our task, so select the plus icon to select an action. Select Alert -> Say to add a Say action. Enter On in the text field and go back to test your task, make sure your media volume is up then select the play icon, you should hear your device say “On”.

+ +

+ +

+ +

Now you can go back to the main Tasker screen and create another profile but this time replace SayOn with SayOff and On with Off. After you’ve done that go to the main screen again and select the menu button at the top then Exit and Save first to make sure everything is saved properly.

+ +

Python Script

+ +

Now it’s time to set it up the script, so create a new Python script and name it On.py then enter this code:

+ +
+
import requests
+requests.get('[URL]')
+
+
+
+ +

Enter in your “On” URL then save it. Create another script but this time call it Off.py and enter your “off” URL instead.

+ +

Home Assistant Configuration

+ +

Add a command line switch to your Home Assistant configuration:

+ +
+
switch:
+  platform: command_switch
+  switches:
+    tasker_say:
+      oncmd: python "[LocationOfOnScript]"
+      offcmd: python "[LocationOfOffScript]"
+
+
+
+ +

Now load up Home Assistant and whenever you toggle the switch you created your Android device will respond with either “On” or “Off”. :-)

+]]>
+
+ <![CDATA[InfluxDB and Grafana]]> @@ -2185,136 +2254,6 @@ This switch platform allows you to control your motion detection setting on your -]]> - - - - <![CDATA[Release notes for May 14, 2015]]> - - 2015-05-14T22:25:00-07:00 - https://home-assistant.io/blog/2015/05/14/release-notes - Almost three busy weeks have past since the last release. We used this time to finally make the overhaul to use UTC as the internal date time format. We added a bunch of test coverage in the process to make sure the transition went smoothly. Pleas see the blog post about the UTC refactor for backwards incompatible changes.

- -

This release includes a significant startup boost for the frontend and a fix for Wemo discovery after their latest firmware upgrade.

- -

I would like to give a big shout out to our newest contributor fabaff for taking the time to improve the documentation.

- -

-To update to the latest version, run scripts/update. Please report any issues on GitHub. -

- - - -

Overwriting Entity Attributes
-Before diving into the newly supported devices and services, I want to highlight an awesome configuration enhancement by rmkraus: overwriting entity attributes.

- -

These new configuration settings allow you to overwrite entity state attributes. The main usage for this is being able to overwrite attributes that influence how an entity is shown in the interface.

- -
-
# Example configuration.yaml entry
-homeassistant:
-  customize:
-    light.bowl:
-      # hides this entity from the interface
-      hidden: true
-    light.ceiling:
-      # Replaces the state badge with given picture
-      entity_picture: http://graph.facebook.com/schoutsen/picture
-
-
-
- -

MySensors
- Andythigpen and Theolind have added support for the MySensors platform to Home Assistant.

- -
-
# Example configuration.yaml entry
-sensor:
-  platform: mysensors
-  port: /dev/ttyACM0
-
-
-
- -

OpenWeatherMap
- Fabaff has contributed support for OpenWeatherMap. This will allow you to integrate local meteorological data into Home Assistant.

- -
-
# Example configuration.yaml entry
-sensor:
-  platform: openweathermap
-  api_key: YOUR_API_KEY
-  monitored_variables:
-    - type: 'weather'
-    - type: 'temperature'
-    - type: 'wind_speed'
-    - type: 'humidity'
-    - type: 'pressure'
-    - type: 'clouds'
-    - type: 'rain'
-    - type: 'snow'
-
-
-
- -

InstaPush
- Fabaff has contributed support for InstaPush. This will allow you send messages from Home Assistant to your iOS and Android devices.

- -
-
# Example configuration.yaml entry
-notify:
-    platform: instapush
-    # Get those by creating a new application, event, and tracker on https://instapush.im
-    api_key: ABCDEFGHJKLMNOPQRSTUVXYZ
-    app_secret: ABCDEFGHJKLMNOPQRSTUVXYZ
-    event: ABCDEFGHJKLMNOPQRSTUVXYZ
-    tracker: ABCDEFGHJKLMNOPQRSTUVXYZ
-
-
-
- -

XMPP
- Fabaff has contributed support for Jabber/XMPP. This will allow you send messages from Home Assistant to anyone on Jabber/XMPP.

- -
-
# Example configuration.yaml entry
-notify:
-    platform: xmpp
-    sender: YOUR_JID
-    password: YOUR_JABBER_ACCOUNT_PASSWORD
-    recipient: YOUR_RECIPIENT
-
-
-
- -

Notify My Android
- Fabaff has contributed support for Notify My Android. This will allow you to send messages from Home Assistant to your Android device.

- -
-
# Example configuration.yaml entry
-notify:
-    platform: nma
-    # Get this by registering a new application on http://www.notifymyandroid.com/
-    api_key: ABCDEFGHJKLMNOPQRSTUVXYZ
-
-
-
- -

Time & Date sensor
-Fabaff has contributed a time & date sensor. This will allow you to show the current time/date on the dashboard.

- -
-
# Example configuration.yaml entry
-sensor:
-  platform: time_date
-  monitored_variables:
-    - type: 'time'
-    - type: 'date'
-    - type: 'date_time'
-    - type: 'time_date'
-
-
-
]]>
diff --git a/blog/2014/12/18/website-launched/index.html b/blog/2014/12/18/website-launched/index.html index 52e5d2634b..5bb6f1a543 100644 --- a/blog/2014/12/18/website-launched/index.html +++ b/blog/2014/12/18/website-launched/index.html @@ -187,6 +187,12 @@ diff --git a/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html b/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html index 77fc3e7b19..b402f66402 100644 --- a/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html +++ b/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html @@ -242,6 +242,12 @@ This article will try to explain how they all relate.

diff --git a/blog/2015/01/04/hey-pushbullet-nice-talking-to-you/index.html b/blog/2015/01/04/hey-pushbullet-nice-talking-to-you/index.html index 405554cb50..aa7a72b924 100644 --- a/blog/2015/01/04/hey-pushbullet-nice-talking-to-you/index.html +++ b/blog/2015/01/04/hey-pushbullet-nice-talking-to-you/index.html @@ -226,6 +226,12 @@ api_key=ABCDEFGHJKLMNOPQRSTUVXYZ diff --git a/blog/2015/01/11/bootstrapping-your-setup-with-discovery/index.html b/blog/2015/01/11/bootstrapping-your-setup-with-discovery/index.html index 4d7f14d22e..b64b42bc7d 100644 --- a/blog/2015/01/11/bootstrapping-your-setup-with-discovery/index.html +++ b/blog/2015/01/11/bootstrapping-your-setup-with-discovery/index.html @@ -201,6 +201,12 @@ diff --git a/blog/2015/01/13/nest-in-da-house/index.html b/blog/2015/01/13/nest-in-da-house/index.html index 26b84fbacb..7cbbb09bda 100644 --- a/blog/2015/01/13/nest-in-da-house/index.html +++ b/blog/2015/01/13/nest-in-da-house/index.html @@ -204,6 +204,12 @@ password=YOUR_PASSWORD diff --git a/blog/2015/01/24/release-notes/index.html b/blog/2015/01/24/release-notes/index.html index 6123c86e0b..198608d353 100644 --- a/blog/2015/01/24/release-notes/index.html +++ b/blog/2015/01/24/release-notes/index.html @@ -210,6 +210,12 @@ Home Assistant now supports --open-ui and --demo-mode diff --git a/blog/2015/02/08/looking-at-the-past/index.html b/blog/2015/02/08/looking-at-the-past/index.html index 9d98896307..dfbe527efe 100644 --- a/blog/2015/02/08/looking-at-the-past/index.html +++ b/blog/2015/02/08/looking-at-the-past/index.html @@ -220,6 +220,12 @@ Events are saved in a local database. Google Graphs is used to draw the graph. D diff --git a/blog/2015/02/24/streaming-updates/index.html b/blog/2015/02/24/streaming-updates/index.html index 4b01b03ad2..0c6333241e 100644 --- a/blog/2015/02/24/streaming-updates/index.html +++ b/blog/2015/02/24/streaming-updates/index.html @@ -203,6 +203,12 @@ diff --git a/blog/2015/03/01/home-assistant-migrating-to-yaml/index.html b/blog/2015/03/01/home-assistant-migrating-to-yaml/index.html index 9cdff92532..d077f3aeb6 100644 --- a/blog/2015/03/01/home-assistant-migrating-to-yaml/index.html +++ b/blog/2015/03/01/home-assistant-migrating-to-yaml/index.html @@ -193,6 +193,12 @@ diff --git a/blog/2015/03/08/new-logo/index.html b/blog/2015/03/08/new-logo/index.html index f93d82a418..887ebd6bce 100644 --- a/blog/2015/03/08/new-logo/index.html +++ b/blog/2015/03/08/new-logo/index.html @@ -194,6 +194,12 @@ The old logo, the new detailed logo and the new simple logo. diff --git a/blog/2015/03/11/release-notes/index.html b/blog/2015/03/11/release-notes/index.html index 0138a827b9..f69aa98966 100644 --- a/blog/2015/03/11/release-notes/index.html +++ b/blog/2015/03/11/release-notes/index.html @@ -233,6 +233,12 @@ An initial version of voice control for Home Assistant has landed. The current i diff --git a/blog/2015/03/22/release-notes/index.html b/blog/2015/03/22/release-notes/index.html index 145901b73b..149a545828 100644 --- a/blog/2015/03/22/release-notes/index.html +++ b/blog/2015/03/22/release-notes/index.html @@ -270,6 +270,12 @@ I (Paulus) have contributed a scene component. A user can create scenes that cap diff --git a/blog/2015/04/25/release-notes/index.html b/blog/2015/04/25/release-notes/index.html index ae7fda5c01..89170745d1 100644 --- a/blog/2015/04/25/release-notes/index.html +++ b/blog/2015/04/25/release-notes/index.html @@ -281,6 +281,12 @@ diff --git a/blog/2015/05/09/utc-time-zone-awareness/index.html b/blog/2015/05/09/utc-time-zone-awareness/index.html index 4866602bc7..83512c4b88 100644 --- a/blog/2015/05/09/utc-time-zone-awareness/index.html +++ b/blog/2015/05/09/utc-time-zone-awareness/index.html @@ -216,6 +216,12 @@ diff --git a/blog/2015/05/14/release-notes/index.html b/blog/2015/05/14/release-notes/index.html index 728c164e0a..bc0ac214aa 100644 --- a/blog/2015/05/14/release-notes/index.html +++ b/blog/2015/05/14/release-notes/index.html @@ -308,6 +308,12 @@ Before diving into the newly supported devices and services, I want to highlight diff --git a/blog/2015/06/10/release-notes/index.html b/blog/2015/06/10/release-notes/index.html index f446b62747..ceeca91aa4 100644 --- a/blog/2015/06/10/release-notes/index.html +++ b/blog/2015/06/10/release-notes/index.html @@ -361,6 +361,12 @@ This switch platform allows you to control your motion detection setting on your diff --git a/blog/2015/07/11/ip-cameras-arduino-kodi-efergy-support/index.html b/blog/2015/07/11/ip-cameras-arduino-kodi-efergy-support/index.html index b80af0aa9f..9c11844604 100644 --- a/blog/2015/07/11/ip-cameras-arduino-kodi-efergy-support/index.html +++ b/blog/2015/07/11/ip-cameras-arduino-kodi-efergy-support/index.html @@ -313,6 +313,12 @@ Fabian has added support for Forecast.io to g diff --git a/blog/2015/08/09/mqtt-raspberry-pi-squeezebox-asuswrt-support/index.html b/blog/2015/08/09/mqtt-raspberry-pi-squeezebox-asuswrt-support/index.html index 88cd8967f9..87f614c624 100644 --- a/blog/2015/08/09/mqtt-raspberry-pi-squeezebox-asuswrt-support/index.html +++ b/blog/2015/08/09/mqtt-raspberry-pi-squeezebox-asuswrt-support/index.html @@ -302,6 +302,12 @@ Support for Temper temperature sensors has been contributed by +
  • + Activating Tasker tasks from Home Assistant using command line switches +
  • + + +
  • InfluxDB and Grafana
  • @@ -325,12 +331,6 @@ Support for Temper temperature sensors has been contributed by - 0.8: Honeywell Thermostats, Orvibo switches and Z-Wave switches and lights - - - diff --git a/blog/2015/08/17/verisure-and-modern-tp-link-router-support/index.html b/blog/2015/08/17/verisure-and-modern-tp-link-router-support/index.html index 4e9d31cd62..0826193e97 100644 --- a/blog/2015/08/17/verisure-and-modern-tp-link-router-support/index.html +++ b/blog/2015/08/17/verisure-and-modern-tp-link-router-support/index.html @@ -212,6 +212,12 @@ diff --git a/blog/2015/08/26/laundry-automation-with-moteino-mqtt-and-home-assistant/index.html b/blog/2015/08/26/laundry-automation-with-moteino-mqtt-and-home-assistant/index.html index f6f66129a9..b625fab970 100644 --- a/blog/2015/08/26/laundry-automation-with-moteino-mqtt-and-home-assistant/index.html +++ b/blog/2015/08/26/laundry-automation-with-moteino-mqtt-and-home-assistant/index.html @@ -321,6 +321,12 @@ diff --git a/blog/2015/08/31/version-7-revamped-ui-and-improved-distribution/index.html b/blog/2015/08/31/version-7-revamped-ui-and-improved-distribution/index.html index 9032b46d61..f6c6f7f053 100644 --- a/blog/2015/08/31/version-7-revamped-ui-and-improved-distribution/index.html +++ b/blog/2015/08/31/version-7-revamped-ui-and-improved-distribution/index.html @@ -299,6 +299,12 @@ diff --git a/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant/index.html b/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant/index.html index 11ff8fbfbd..e1fa95c179 100644 --- a/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant/index.html +++ b/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant/index.html @@ -502,6 +502,12 @@ PubSubClient client(ethClient); diff --git a/blog/2015/09/13/home-assistant-meets-ifttt/index.html b/blog/2015/09/13/home-assistant-meets-ifttt/index.html index 6fc514efcb..d625679c0d 100644 --- a/blog/2015/09/13/home-assistant-meets-ifttt/index.html +++ b/blog/2015/09/13/home-assistant-meets-ifttt/index.html @@ -361,6 +361,12 @@ diff --git a/blog/2015/09/18/monitoring-with-glances-and-home-assistant/index.html b/blog/2015/09/18/monitoring-with-glances-and-home-assistant/index.html index b6c5089e75..be0ac1d220 100644 --- a/blog/2015/09/18/monitoring-with-glances-and-home-assistant/index.html +++ b/blog/2015/09/18/monitoring-with-glances-and-home-assistant/index.html @@ -262,6 +262,12 @@ Glances web server started on http://0.0.0.0:61208/ diff --git a/blog/2015/09/19/alarm-sonos-and-itunes-support/index.html b/blog/2015/09/19/alarm-sonos-and-itunes-support/index.html index 6c805a573f..0663273b10 100644 --- a/blog/2015/09/19/alarm-sonos-and-itunes-support/index.html +++ b/blog/2015/09/19/alarm-sonos-and-itunes-support/index.html @@ -241,6 +241,12 @@ Automation has gotten a lot of love. It now supports conditions, multiple trigge diff --git a/blog/2015/10/05/home-assistant-goes-geo-with-owntracks/index.html b/blog/2015/10/05/home-assistant-goes-geo-with-owntracks/index.html index 640d09fcd7..d1fd5a2d48 100644 --- a/blog/2015/10/05/home-assistant-goes-geo-with-owntracks/index.html +++ b/blog/2015/10/05/home-assistant-goes-geo-with-owntracks/index.html @@ -217,6 +217,12 @@ Map in Home Assistant showing two people and three zones (home, school, work) diff --git a/blog/2015/10/11/measure-temperature-with-esp8266-and-report-to-mqtt/index.html b/blog/2015/10/11/measure-temperature-with-esp8266-and-report-to-mqtt/index.html index e67c137fc5..ee53c16b5a 100644 --- a/blog/2015/10/11/measure-temperature-with-esp8266-and-report-to-mqtt/index.html +++ b/blog/2015/10/11/measure-temperature-with-esp8266-and-report-to-mqtt/index.html @@ -548,6 +548,12 @@ Adafruit_HDC1000 hdc = Adafruit_HDC1000(); diff --git a/blog/2015/10/11/rfxtrx-blinkstick-and-snmp-support/index.html b/blog/2015/10/11/rfxtrx-blinkstick-and-snmp-support/index.html index 1767956a08..6ffcd3acc2 100644 --- a/blog/2015/10/11/rfxtrx-blinkstick-and-snmp-support/index.html +++ b/blog/2015/10/11/rfxtrx-blinkstick-and-snmp-support/index.html @@ -206,6 +206,12 @@ diff --git a/blog/2015/10/26/firetv-and-radiotherm-now-supported/index.html b/blog/2015/10/26/firetv-and-radiotherm-now-supported/index.html index 9b68c0bee4..87d1ba5cd2 100644 --- a/blog/2015/10/26/firetv-and-radiotherm-now-supported/index.html +++ b/blog/2015/10/26/firetv-and-radiotherm-now-supported/index.html @@ -228,6 +228,12 @@ This makes more sense as most people run Home Assistant as a daemon

    diff --git a/blog/2015/11/16/zwave-switches-lights-and-honeywell-thermostats-now-supported/index.html b/blog/2015/11/16/zwave-switches-lights-and-honeywell-thermostats-now-supported/index.html index 8a6615f0e9..32f62fca26 100644 --- a/blog/2015/11/16/zwave-switches-lights-and-honeywell-thermostats-now-supported/index.html +++ b/blog/2015/11/16/zwave-switches-lights-and-honeywell-thermostats-now-supported/index.html @@ -224,6 +224,12 @@ diff --git a/blog/2015/11/22/survey-november-2015/index.html b/blog/2015/11/22/survey-november-2015/index.html index 5bba03781c..c4bbdf8951 100644 --- a/blog/2015/11/22/survey-november-2015/index.html +++ b/blog/2015/11/22/survey-november-2015/index.html @@ -287,6 +287,12 @@ diff --git a/blog/2015/12/05/community-highlights/index.html b/blog/2015/12/05/community-highlights/index.html index 4c089a72fc..e128ac4b35 100644 --- a/blog/2015/12/05/community-highlights/index.html +++ b/blog/2015/12/05/community-highlights/index.html @@ -197,6 +197,12 @@ diff --git a/blog/2015/12/06/locks-rollershutters-binary-sensors-and-influxdb-support/index.html b/blog/2015/12/06/locks-rollershutters-binary-sensors-and-influxdb-support/index.html index ae89c7e3b0..744e6721dd 100644 --- a/blog/2015/12/06/locks-rollershutters-binary-sensors-and-influxdb-support/index.html +++ b/blog/2015/12/06/locks-rollershutters-binary-sensors-and-influxdb-support/index.html @@ -206,6 +206,12 @@ diff --git a/blog/2015/12/07/influxdb-and-grafana/index.html b/blog/2015/12/07/influxdb-and-grafana/index.html index 6d2c060983..f9f412ac55 100644 --- a/blog/2015/12/07/influxdb-and-grafana/index.html +++ b/blog/2015/12/07/influxdb-and-grafana/index.html @@ -320,6 +320,12 @@ $ sudo systemctl status grafana-server diff --git a/blog/2015/12/10/activating-tasker-tasks-from-home-assistant-using-command-line-switches/index.html b/blog/2015/12/10/activating-tasker-tasks-from-home-assistant-using-command-line-switches/index.html new file mode 100644 index 0000000000..1a23d04acf --- /dev/null +++ b/blog/2015/12/10/activating-tasker-tasks-from-home-assistant-using-command-line-switches/index.html @@ -0,0 +1,343 @@ + + + + + + + + + + + Activating Tasker tasks from Home Assistant using command line switches - Home Assistant + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    +
    + +
    + + +
    + +
    + +

    Activating Tasker tasks from Home Assistant using command line switches

    + + + +
    + + + three minutes reading time + + + + + + Comments + +
    + +
    + + +


    +In this tutorial I will explain how you can activate Tasker tasks from Home Assistant command line switches. We are going to set up a switch that when toggled will make your Android device say either “On” or “Off”.

    + +

    You could also do this with the automation component instead so whenever you put your house to sleep mode for example your Android device will open up Google Play Books or the Kindle app ready for you to read as well as dimming your lights, but this tutorial is all about the switches.

    + + + +

    AutoRemote URL

    + +

    First things first you should install Tasker and AutoRemote onto your Android device and launch AutoRemote. You should see a URL above the QR code, visit it in your browser and it should bring up a page a bit like this.

    + +

    + +

    + +

    Now type in SayOn in the Message box and you should see a box appear on the right with a URL in it, this is what we will be using in the Python script later on so save that for later. Do the same thing again but this time replace SayOn with SayOff. Now just click the Send message now! button to test that your commands will get sent to your Android device, if they do you will see a toast message at the bottom of your screen like this one.

    + +

    + +

    + +

    Tasker Setup

    + +

    Open up Tasker and make sure you’re in the PROFILES tab, then select the plus icon to create a new profile. Select Event -> Plugin -> AutoRemote -> AutoRemote and then the pencil icon to configure the AutoRemote event. Select Message Filter and enter in SayOn then go back until it asks you for a task. Select New task then just leave the next field blank and select the tick icon.
    +This is where we’ll configure our task, so select the plus icon to select an action. Select Alert -> Say to add a Say action. Enter On in the text field and go back to test your task, make sure your media volume is up then select the play icon, you should hear your device say “On”.

    + +

    + +

    + +

    Now you can go back to the main Tasker screen and create another profile but this time replace SayOn with SayOff and On with Off. After you’ve done that go to the main screen again and select the menu button at the top then Exit and Save first to make sure everything is saved properly.

    + +

    Python Script

    + +

    Now it’s time to set it up the script, so create a new Python script and name it On.py then enter this code:

    + +
    +
    import requests
    +requests.get('[URL]')
    +
    +
    +
    + +

    Enter in your “On” URL then save it. Create another script but this time call it Off.py and enter your “off” URL instead.

    + +

    Home Assistant Configuration

    + +

    Add a command line switch to your Home Assistant configuration:

    + +
    +
    switch:
    +  platform: command_switch
    +  switches:
    +    tasker_say:
    +      oncmd: python "[LocationOfOnScript]"
    +      offcmd: python "[LocationOfOffScript]"
    +
    +
    +
    + +

    Now load up Home Assistant and whenever you toggle the switch you created your Android device will respond with either “On” or “Off”. :-)

    +
    + + +
    +

    Comments

    +
    +
    + + +
    + + + + +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/blog/archives/index.html b/blog/archives/index.html index 0fb3e9c802..1f73b9f781 100644 --- a/blog/archives/index.html +++ b/blog/archives/index.html @@ -44,19 +44,12 @@ - Dec 07 + Dec 10 - InfluxDB and Grafana - - - - - - - - how-to..."> + Activating Tasker tasks from Home Assistant using command line switches + ..."> @@ -145,6 +138,38 @@

    2015

    + + + +
    @@ -1303,6 +1328,12 @@ diff --git a/blog/categories/architecture/atom.xml b/blog/categories/architecture/atom.xml index 576db6b3e8..d22dfa03ad 100644 --- a/blog/categories/architecture/atom.xml +++ b/blog/categories/architecture/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: architecture | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/architecture/index.html b/blog/categories/architecture/index.html index 914c4764bd..4cde0b38e8 100644 --- a/blog/categories/architecture/index.html +++ b/blog/categories/architecture/index.html @@ -199,6 +199,12 @@ diff --git a/blog/categories/branding/atom.xml b/blog/categories/branding/atom.xml index 3e4732c3e9..a23bfac8cf 100644 --- a/blog/categories/branding/atom.xml +++ b/blog/categories/branding/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: branding | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/branding/index.html b/blog/categories/branding/index.html index 104d931996..eeef5f622e 100644 --- a/blog/categories/branding/index.html +++ b/blog/categories/branding/index.html @@ -199,6 +199,12 @@ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 047e548f1f..2464f1676d 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: community | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/community/index.html b/blog/categories/community/index.html index 6a7d8029d2..557696c435 100644 --- a/blog/categories/community/index.html +++ b/blog/categories/community/index.html @@ -199,6 +199,12 @@ diff --git a/blog/categories/component/atom.xml b/blog/categories/component/atom.xml index 22dd439605..6816acffd7 100644 --- a/blog/categories/component/atom.xml +++ b/blog/categories/component/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: component | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/component/index.html b/blog/categories/component/index.html index 7bc84f0c70..81e6fd8d2a 100644 --- a/blog/categories/component/index.html +++ b/blog/categories/component/index.html @@ -297,6 +297,12 @@ diff --git a/blog/categories/core/atom.xml b/blog/categories/core/atom.xml index 700ac11fef..ebd186d144 100644 --- a/blog/categories/core/atom.xml +++ b/blog/categories/core/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: core | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/core/index.html b/blog/categories/core/index.html index ca516519a8..42be2bf7ac 100644 --- a/blog/categories/core/index.html +++ b/blog/categories/core/index.html @@ -231,6 +231,12 @@ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index d704928bfd..9a2929962c 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: esp8266 | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/index.html b/blog/categories/esp8266/index.html index c97eb28abb..1702eed2e4 100644 --- a/blog/categories/esp8266/index.html +++ b/blog/categories/esp8266/index.html @@ -203,6 +203,12 @@ diff --git a/blog/categories/frontend/atom.xml b/blog/categories/frontend/atom.xml index 0cda8cf5ce..bd46a43d51 100644 --- a/blog/categories/frontend/atom.xml +++ b/blog/categories/frontend/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: frontend | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/frontend/index.html b/blog/categories/frontend/index.html index 67706d0b79..cfc44418a2 100644 --- a/blog/categories/frontend/index.html +++ b/blog/categories/frontend/index.html @@ -233,6 +233,12 @@ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 3ff1e6a614..bf4cf69553 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: how-to | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ @@ -13,6 +13,75 @@ Octopress + + <![CDATA[Activating Tasker tasks from Home Assistant using command line switches]]> + + 2015-12-10T02:39:41-08:00 + https://home-assistant.io/blog/2015/12/10/activating-tasker-tasks-from-home-assistant-using-command-line-switches +
    +In this tutorial I will explain how you can activate Tasker tasks from Home Assistant command line switches. We are going to set up a switch that when toggled will make your Android device say either “On” or “Off”.

    + +

    You could also do this with the automation component instead so whenever you put your house to sleep mode for example your Android device will open up Google Play Books or the Kindle app ready for you to read as well as dimming your lights, but this tutorial is all about the switches.

    + + + +

    AutoRemote URL

    + +

    First things first you should install Tasker and AutoRemote onto your Android device and launch AutoRemote. You should see a URL above the QR code, visit it in your browser and it should bring up a page a bit like this.

    + +

    + +

    + +

    Now type in SayOn in the Message box and you should see a box appear on the right with a URL in it, this is what we will be using in the Python script later on so save that for later. Do the same thing again but this time replace SayOn with SayOff. Now just click the Send message now! button to test that your commands will get sent to your Android device, if they do you will see a toast message at the bottom of your screen like this one.

    + +

    + +

    + +

    Tasker Setup

    + +

    Open up Tasker and make sure you’re in the PROFILES tab, then select the plus icon to create a new profile. Select Event -> Plugin -> AutoRemote -> AutoRemote and then the pencil icon to configure the AutoRemote event. Select Message Filter and enter in SayOn then go back until it asks you for a task. Select New task then just leave the next field blank and select the tick icon.
    +This is where we’ll configure our task, so select the plus icon to select an action. Select Alert -> Say to add a Say action. Enter On in the text field and go back to test your task, make sure your media volume is up then select the play icon, you should hear your device say “On”.

    + +

    + +

    + +

    Now you can go back to the main Tasker screen and create another profile but this time replace SayOn with SayOff and On with Off. After you’ve done that go to the main screen again and select the menu button at the top then Exit and Save first to make sure everything is saved properly.

    + +

    Python Script

    + +

    Now it’s time to set it up the script, so create a new Python script and name it On.py then enter this code:

    + +
    +
    import requests
    +requests.get('[URL]')
    +
    +
    +
    + +

    Enter in your “On” URL then save it. Create another script but this time call it Off.py and enter your “off” URL instead.

    + +

    Home Assistant Configuration

    + +

    Add a command line switch to your Home Assistant configuration:

    + +
    +
    switch:
    +  platform: command_switch
    +  switches:
    +    tasker_say:
    +      oncmd: python "[LocationOfOnScript]"
    +      offcmd: python "[LocationOfOffScript]"
    +
    +
    +
    + +

    Now load up Home Assistant and whenever you toggle the switch you created your Android device will respond with either “On” or “Off”. :-)

    +]]>
    +
    + <![CDATA[InfluxDB and Grafana]]> @@ -761,328 +830,6 @@ Glances web server started on http://0.0.0.0:61208/ -]]> - - - - <![CDATA[Using MQTT with Home Assistant]]> - - 2015-09-11T02:19:38-07:00 - https://home-assistant.io/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant - MQTT support was added to Home Assistant recently. The MQTT component will enable you to do all sort of things. Most likely you will use it to communicate with your devices. But Home Assistant doesn’t care where the data is coming from or is limited to real hardware as long as there is MQTT support. This means that it doesn’t matter if the data is coming from a human, a web service, or a device.

    - -

    A great example is shown in a Laundry Automation post in this blog.

    - -

    This post will give you a small overview of some other possibilities on how to use MQTT with Home Assistant.

    - - - -

    Manual usage

    - -

    The simplest but not the coolest way as a human to interact with a Home Assistant sensor is launching a command manually. Let’s create a “Mood” sensor. For simplicity Home Assistant and the MQTT broker are both running on the same host. The needed configuration snipplets to add to the configuration.yaml file consists of two parts: one for the broker and one for the sensor.

    - -
    - - -
    1
    -2
    -3
    -4
    -5
    -6
    -7
    -
    mqtt:
    -  broker: 127.0.0.1
    -
    -sensor:
    -  - platform: mqtt
    -    name: "Fabian's Mood"
    -    state_topic: "home-assistant/fabian/mood"
    -
    -
    - -

    After a restart of Home Assistant the “Mood” sensor will show up in the frontend. For more details about the configuration of MQTT itself and the sensor, please refer to the MQTT component or the MQTT sensor documentation.

    - -

    Now we can set the mood. The commandline tool (mosquitto_pub) which is shipped with mosquitto is used to send an MQTT message.

    - -
    - - -
    1
    -
    $ mosquitto_pub  -h 127.0.0.1 -t "home-assistant/fabian/mood" -m "bad"
    -
    -
    - -

    - - The Mood sensor -

    - -

    This is a really bad example. Don’t do this in the real world because you won’t be able to create diagrams of historical data. Better use a numerical value.

    - -

    Python MQTT bindings

    - -

    The last section was pretty boring, I know. Nobody wants to send MQTT messages by hand if there is a computer on the desk. If you are playing the lottery this section is for you. If not, read it anyway because the lottery is just an example :-).

    - -

    This example is using the Paho MQTT Python binding because those binding should be available on the host where Home Assistant is running. If you want to use this example on another machine, please make sure that the bindings are installed (pip3 install paho-mqtt).

    - -

    The first step is to add an additional MQTT sensor to the configuration.yaml file. The sensor will be called “Lottery” and the unit of measurement will be “No.”.

    - -
    - - -
    1
    -2
    -3
    -4
    -
      - platform: mqtt
    -    name: "Lottery"
    -    state_topic: "home-assistant/lottery/number"
    -    unit_of_measurement: "No."
    -
    -
    - -

    Don’t forget to restart Home Assistant to make the configuration active.

    - -

    To play, we need numbers from 1 to 49 which can be marked on the ticket. Those numbers should be random and displayed in the Home Assistant frontend. The Python script below is another simple example on how to send MQTT messages from the commandline; this time in a loop. For further information and examples please check the Paho MQTT documentation.

    - -
    - - -
    1
    -2
    -3
    -4
    -5
    -6
    -7
    -8
    -9
    -10
    -11
    -12
    -13
    -14
    -15
    -16
    -17
    -18
    -19
    -20
    -21
    -22
    -
    #!/usr/bin/python3
    -#
    -import time
    -import random
    -import paho.mqtt.client as mqtt
    -import paho.mqtt.publish as publish
    -
    -broker = '127.0.0.1'
    -state_topic = 'home-assistant/lottery/number'
    -delay = 5
    -
    -# Send a single message to set the mood
    -publish.single('home-assistant/fabian/mood', 'good', hostname=broker)
    -
    -# Send messages in a loop
    -client = mqtt.Client("ha-client")
    -client.connect(broker)
    -client.loop_start()
    -
    -while True:
    -    client.publish(state_topic, random.randrange(0, 50, 1))
    -    time.sleep(delay)
    -
    -
    - -

    Every 5 seconds a message with a new number is sent to the broker and picked up by Home Assistant. By the way, my mood is much better now.

    - -

    - - The Lottery sensor -

    - -

    With only a few lines of Python and an MQTT broker you can create your own “smartdevice” or send information to Home Assistant which you haven’t think of. Of course this is not limited to Python. If there is an MQTT library available, the device can be used with Home Assistant now.

    - -

    Arduino

    - -

    To get started with real hardware that is capable to send MQTT messages, the Arduino platform is an inexpensive way to do it. In this section an Arduino UNO with an Ethernet shield and a photo resistor is used. The photo resistor is connected to analog pin 0 (A0) and has an output from 0 to 1024.

    - -

    - - The Arduino UNO with Ethernet shield and photo resistor -

    - -

    The MQTT client for the Arduino needs to be available in your Arduino IDE. Below you will find a sketch which could act as a starting point. Please modify the IP addresses, the MAC address, and the pin as needed and upload the sketch to your Arduino.

    - -
    - - -
    1
    -2
    -3
    -4
    -5
    -6
    -7
    -8
    -9
    -10
    -11
    -12
    -13
    -14
    -15
    -16
    -17
    -18
    -19
    -20
    -21
    -22
    -23
    -24
    -25
    -26
    -27
    -28
    -29
    -30
    -31
    -32
    -33
    -34
    -35
    -36
    -37
    -38
    -39
    -40
    -41
    -42
    -43
    -44
    -45
    -46
    -47
    -48
    -49
    -50
    -51
    -52
    -53
    -54
    -55
    -56
    -57
    -58
    -59
    -60
    -61
    -62
    -63
    -64
    -65
    -66
    -67
    -68
    -
    /*
    -  This sketch is based on the basic MQTT example by
    -  http://knolleary.github.io/pubsubclient/
    -*/
    -
    -#include <SPI.h>
    -#include <Ethernet.h>
    -#include <PubSubClient.h>
    -
    -#define DEBUG 1 // Debug output to serial console
    -
    -// Device settings
    -IPAddress deviceIp(192, 168, 0, 43);
    -byte deviceMac[] = { 0xAB, 0xCD, 0xFE, 0xFE, 0xFE, 0xFE };
    -char* deviceId  = "sensor01"; // Name of the sensor
    -char* stateTopic = "home-assistant/sensor01/brightness"; // MQTT topic where values are published
    -int sensorPin = A0; // Pin to which the sensor is connected to
    -char buf[4]; // Buffer to store the sensor value
    -int updateInterval = 1000; // Interval in miliseconds
    -
    -// MQTT server settings
    -IPAddress mqttServer(192, 168, 0, 12);
    -int mqttPort = 1883;
    -
    -EthernetClient ethClient;
    -PubSubClient client(ethClient);
    -
    -void reconnect() {
    -  while (!client.connected()) {
    -#if DEBUG
    -    Serial.print("Attempting MQTT connection...");
    -#endif
    -    if (client.connect(deviceId)) {
    -#if DEBUG
    -      Serial.println("connected");
    -#endif
    -    } else {
    -#if DEBUG
    -      Serial.print("failed, rc=");
    -      Serial.print(client.state());
    -      Serial.println(" try again in 5 seconds");
    -#endif
    -      delay(5000);
    -    }
    -  }
    -}
    -
    -void setup() {
    -  Serial.begin(57600);
    -  client.setServer(mqttServer, mqttPort);
    -  Ethernet.begin(deviceMac, deviceIp);
    -  delay(1500);
    -}
    -
    -void loop() {
    -  if (!client.connected()) {
    -    reconnect();
    -  }
    -  client.loop();
    -
    -  int sensorValue = analogRead(sensorPin);
    -#if DEBUG
    -  Serial.print("Sensor value: ");
    -  Serial.println(sensorValue);
    -#endif
    -  client.publish(stateTopic, itoa(sensorValue, buf, 10));
    -  delay(updateInterval);
    -}
    -
    -
    - -

    The Arduino will send the value of the sensor every second. To use the data in Home Assistant, add an additional MQTT sensor to the configuration.yaml file.

    - -
    - - -
    1
    -2
    -3
    -4
    -
      - platform: mqtt
    -    name: "Brightness"
    -    state_topic: "home-assistant/sensor01/brightness"
    -    unit_of_measurement: "cd"
    -
    -
    - -

    After a restart of Home Assistant the values of your Arduino will be available.

    - -

    - - The Brightness sensor -

    - -

    I hope that this post could give you some ideas about the usage Home Assistant and MQTT. If you are working on a cool project that includes Home Assistant, please let us now.

    ]]>
    diff --git a/blog/categories/how-to/index.html b/blog/categories/how-to/index.html index 221f3f1690..cd4b6c781b 100644 --- a/blog/categories/how-to/index.html +++ b/blog/categories/how-to/index.html @@ -110,6 +110,38 @@

    2015

    + + + +
    @@ -335,6 +367,12 @@ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 01e3242a9c..ef13a9610a 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: mqtt | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/index.html b/blog/categories/mqtt/index.html index 9098ccebdf..2c2a97d287 100644 --- a/blog/categories/mqtt/index.html +++ b/blog/categories/mqtt/index.html @@ -237,6 +237,12 @@ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 6faee0bd3d..7ce3c8f3e6 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: release-notes | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/index.html b/blog/categories/release-notes/index.html index 9be316360b..e3d21d2555 100644 --- a/blog/categories/release-notes/index.html +++ b/blog/categories/release-notes/index.html @@ -681,6 +681,12 @@ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 0045973b98..d82812e8c3 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: survey | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/survey/index.html b/blog/categories/survey/index.html index b4d9db078e..ea9c153c07 100644 --- a/blog/categories/survey/index.html +++ b/blog/categories/survey/index.html @@ -199,6 +199,12 @@ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index d35b73b705..b1400d38c0 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: user-stories | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/index.html b/blog/categories/user-stories/index.html index 3a760e1bc9..5627914796 100644 --- a/blog/categories/user-stories/index.html +++ b/blog/categories/user-stories/index.html @@ -231,6 +231,12 @@ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 4875f4ec92..1293f016c7 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: website | Home Assistant]]> - 2015-12-10T09:03:15-08:00 + 2015-12-10T09:18:54-08:00 https://home-assistant.io/ diff --git a/blog/categories/website/index.html b/blog/categories/website/index.html index b07bd1d3ba..9aeeaf58c0 100644 --- a/blog/categories/website/index.html +++ b/blog/categories/website/index.html @@ -199,6 +199,12 @@ diff --git a/blog/index.html b/blog/index.html index c0244c918d..f76047f5e8 100644 --- a/blog/index.html +++ b/blog/index.html @@ -27,26 +27,19 @@ - InfluxDB and Grafana + Activating Tasker tasks from Home Assistant using command line switches - December 07, 2015 - Fabian Affolter - two minutes reading time + December 10, 2015 + Rowan Hine + three minutes reading time - - - how-to - - - - - ..."> + ..."> @@ -119,6 +112,53 @@ +
    +
    + +

    + Activating Tasker tasks from Home Assistant using command line switches +

    + + + +
    + + + three minutes reading time + + + + + + Comments + +
    + +
    + + +
    +


    +In this tutorial I will explain how you can activate Tasker tasks from Home Assistant command line switches. We are going to set up a switch that when toggled will make your Android device say either “On” or “Off”.

    + +

    You could also do this with the automation component instead so whenever you put your house to sleep mode for example your Android device will open up Google Play Books or the Kindle app ready for you to read as well as dimming your lights, but this tutorial is all about the switches.

    + + + + Read on → + +
    +
    +
    +
    @@ -662,71 +702,6 @@ Map in Home Assistant showing two people and three zones (home, school, work)

    -
    -
    - -

    - Alarms, Sonos and iTunes now supported -

    - - - -
    - - - two minutes reading time - - - - - - Comments - -
    - -
    - - -
    -

    It’s like someone opened a can of rock solid developers and emptied it above our chat channel because it exploded with great conversations and solid contributions. Featured in release 0.7.3: Sonos, iTunes, Alarm component and Automation upgrade.

    - -

    See GitHub for more detailed release notes.

    - -

    Migration note: the scheduler component has been removed in favor of the automation component.

    - -

    Sonos
    - Sonos support has been added by @rhooper and @SEJeff. Home Assistant is now able to automatically detect Sonos devices in your network and set them up for you. It will allow you to control music playing on your Sonos and change the volume.

    - -

    iTunes and airplay speakers
    - @maddox has contributed support for controlling iTunes and airplay speakers. For this to work you will have to run itunes-api on your Mac as middleware.

    - -
    -
    # Example configuration.yaml entry
    -media_player:
    -  platform: itunes
    -  name: iTunes
    -  host: http://192.168.1.50
    -  port: 8181
    -
    -
    -
    - - - - Read on → - -
    -
    -
    -
    -
    - -
    -
    - -

    - Nest in the house! -

    - - - -
    - - - less than one minute reading time - - - - - - Comments - -
    - -
    - - -
    -

    For thet majority of its existence, Home Assistant primary focus was on presence detection, lights and switches. But not anymore as we’re expanding the supported devices. Today, we’re proud to introduce Nest Thermostat integration for Home Assistant contributed by Stefano Fiorini!

    - -

    - -

    - -

    The new integration exists out of two parts: a generic thermostat component and a Nest platform implementation. The initial version implements provides a read-only card and services to control it. The plan is in the future to add temperature and away mode controls from the thermostat card and more info dialog. Internally, we are using the Python package python-nest by jkoelker to talk to the Nest.

    - -

    If you own a Nest thermostat, add the following lines to your home-assistant.conf:

    - -
    -
    [thermostat]
    -platform=nest
    -username=YOUR_USERNAME
    -password=YOUR_PASSWORD
    -
    -
    -
    - -

    diff --git a/blog/posts/4/index.html b/blog/posts/4/index.html index b634d1f7ca..a8b439dcaf 100644 --- a/blog/posts/4/index.html +++ b/blog/posts/4/index.html @@ -27,13 +27,13 @@ - Bootstrapping your setup with Discovery + Nest in the house! - January 11, 2015 + January 13, 2015 Paulus Schoutsen less than one minute reading time @@ -41,7 +41,10 @@ - co..."> + component + + + ..."> @@ -114,6 +117,64 @@ +
    +
    + +

    + Nest in the house! +

    + + + +
    + + + less than one minute reading time + + + + + + Comments + +
    + +
    + + +
    +

    For thet majority of its existence, Home Assistant primary focus was on presence detection, lights and switches. But not anymore as we’re expanding the supported devices. Today, we’re proud to introduce Nest Thermostat integration for Home Assistant contributed by Stefano Fiorini!

    + +

    + +

    + +

    The new integration exists out of two parts: a generic thermostat component and a Nest platform implementation. The initial version implements provides a read-only card and services to control it. The plan is in the future to add temperature and away mode controls from the thermostat card and more info dialog. Internally, we are using the Python package python-nest by jkoelker to talk to the Nest.

    + +

    If you own a Nest thermostat, add the following lines to your home-assistant.conf:

    + +
    +
    [thermostat]
    +platform=nest
    +username=YOUR_USERNAME
    +password=YOUR_PASSWORD
    +
    +
    +
    + + +
    +
    +
    +
    diff --git a/cookbook/automation_for_rainy_days/index.html b/cookbook/automation_for_rainy_days/index.html index 6524468509..39c3a045b1 100644 --- a/cookbook/automation_for_rainy_days/index.html +++ b/cookbook/automation_for_rainy_days/index.html @@ -127,8 +127,8 @@ condition: use_trigger_values action: - execute_service: light.turn_on - service_entity_id: light.couch_lamp + service: light.turn_on + entity_id: light.couch_lamp
    @@ -148,8 +148,8 @@ condition: use_trigger_values action: - execute_service: light.turn_off - service_entity_id: light.couch_lamp + service: light.turn_off + entity_id: light.couch_lamp diff --git a/sitemap.xml b/sitemap.xml index b7057a4458..5303bff382 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1,5 +1,9 @@ + + https://home-assistant.io/blog/2015/12/10/activating-tasker-tasks-from-home-assistant-using-command-line-switches/ + 2015-12-10T02:39:41-08:00 + https://home-assistant.io/blog/2015/12/07/influxdb-and-grafana/ 2015-12-07T06:15:13-08:00 @@ -838,6 +842,9 @@ https://home-assistant.io/blog/2015/12/07/influxdb-and-grafana/ + + https://home-assistant.io/blog/2015/12/10/activating-tasker-tasks-from-home-assistant-using-command-line-switches/ + https://home-assistant.io/components/alarm_control_panel.html 2015-12-03T22:48:53-08:00