Geekzone: technology news, blogs, forums
Guest
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

SumnerBoy:

 

I have a few of these (http://www.wemos.cc/Products/) - 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 (http://www.electrodragon.com/product/wifi-iot-relay-board-based-esp8266/) 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

Subscriber

  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(switch.map):%d]" <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 »

UpStarters - the New Zealand tech and innovation story
Posted 21-May-2018 09:55


Lightbox updates platform with new streaming options
Posted 17-May-2018 13:09


Norton Core router launches with high-performance, IoT security in New Zealand
Posted 16-May-2018 02:00


D-Link ANZ launches new 4G LTE Dual SIM M2M VPN Router
Posted 15-May-2018 19:30


New Panasonic LUMIX FT7 ideal for outdoor: waterproof, dustproof
Posted 15-May-2018 19:17


Ryanair Goes All-In on AWS
Posted 15-May-2018 19:14


Te Papa and EQC Minecraft Mod shakes up earthquake education
Posted 15-May-2018 19:12


Framing Facebook: It’s not about technology
Posted 14-May-2018 16:02


Vocus works with NZ Police and telcos to stop scam calls
Posted 12-May-2018 11:12


Vista Group signs Aeon Entertainment, largest cinema chain in Japan
Posted 11-May-2018 21:41


New Privacy Trust Mark certifies privacy and customer control
Posted 10-May-2018 14:16


New app FIXR connects vehicle owners to top Mechanics at best prices
Posted 10-May-2018 14:13


Nutanix Beam gives enterprises control of the cloud
Posted 10-May-2018 14:09


D-Link ANZ launches Covr Seamless Wi-Fi System
Posted 10-May-2018 14:06


Telstra, Intel and Ericsson demonstrate a 5G future for esports
Posted 10-May-2018 13:59



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.