Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.
View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 
236 posts

Master Geek
+1 received by user: 17

  Reply # 1535681 19-Apr-2016 15:20
Send private message



I have a few of these ( - their shop link just takes you direct to Aliexpress. They are a very small size and have some cool little shields which makes life easy for prototyping. And also got a few of these ( which are pretty impressive for the price - case included! 


I have Homie running on both and they seem very reliable/solid so far (early days admittedly).



Thanks for the links, I was just about to ask the same question.

278 posts

Ultimate Geek
+1 received by user: 53

  Reply # 1545517 2-May-2016 18:16
Send private message

Slight improvement on the code, as I use Amazon Echo (Alexa) to open or shut the garage door - if I tell her to open it when its already open she shuts it and visa versa.  


For brevity, this just makes sure if I say "Alexa, shut the garage door" and its already shut, she won't open it and if I say "Alexa, open the garage door" and its already open, she won't close it.




Change line in Arduino code where it says if ( msgString == "ACTIVATE" ) { to this:


if ( (msgString == "ACTIVATE" && doorState != DOOROPEN) || (msgString == "DEACTIVATE" && doorState != DOORCLOSED) )  {




Change Openhab sitemap file to this:


Frame label="Garage Door" {
   Text item=doorStatus
   Switch item=doorButton mappings=[ON="Open", OFF="Close"]




Change OpenHAB items file to this:


/* Doors */
Number doorStatus "Door Status [MAP(]" <garagedoor> (gGarage) { mqtt="<[mqttbroker:openhab/garage/doorstatus:state:default]" }
Switch doorButton "Garage Door" <garage> (gGarage) { mqtt=">[mqttbroker:openhab/garage/doorswitch:command:ON:ACTIVATE],>[mqttbroker:openhab/garage/doorswitch:command:OFF:DEACTIVATE]" }

1 | 2 
View this topic in a long page with up to 500 replies per page Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

Intel introduces new NUC kits and NUC mini PCs
Posted 16-Aug-2018 11:03

The Warehouse leaps into the AI future with Google
Posted 15-Aug-2018 17:56

Targus set sights on enterprise and consumer growth in New Zealand
Posted 13-Aug-2018 13:47

Huawei to distribute nova 3i in New Zealand
Posted 9-Aug-2018 16:23

Home robot Vector to be available in New Zealand stores
Posted 9-Aug-2018 14:47

Panasonic announces new 2018 OLED TV line up
Posted 7-Aug-2018 16:38

Kordia completes first live 4K TV broadcast
Posted 1-Aug-2018 13:00

Schools get safer and smarter internet with Managed Network Upgrade
Posted 30-Jul-2018 20:01

DNC wants a safer .nz in the coming year
Posted 26-Jul-2018 16:08

Auldhouse becomes an AWS Authorised Training Delivery Partner in New Zealand
Posted 26-Jul-2018 15:55

Rakuten Kobo launches Kobo Clara HD entry level reader
Posted 26-Jul-2018 15:44

Kiwi team reaches semi-finals at the Microsoft Imagine Cup
Posted 26-Jul-2018 15:38

KidsCan App to Help Kiwi Children in Need
Posted 26-Jul-2018 15:32

FUJIFILM announces new high-performance lenses
Posted 24-Jul-2018 14:57

New FUJIFILM XF10 introduces square mode for Instagram sharing
Posted 24-Jul-2018 14:44

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.