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 
253 posts

Ultimate Geek


  #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.




406 posts

Ultimate Geek


  #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 and LinkedIn »



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 »

Chorus completes the build and commissioning of two new core Ethernet switches
Posted 8-Jul-2020 09:48


National Institute for Health Innovation develops treatment app for gambling
Posted 6-Jul-2020 16:25


Nokia 2.3 to be available in New Zealand
Posted 6-Jul-2020 12:30


Menulog change colours as parent company merges with Dutch food delivery service
Posted 2-Jul-2020 07:53


Techweek2020 goes digital to make it easier for Kiwis to connect and learn
Posted 2-Jul-2020 07:48


Catalyst Cloud launches new Solutions Hub to support their kiwi Partners and Customers
Posted 2-Jul-2020 07:44


Microsoft to help New Zealand job seekers acquire new digital skills needed for the COVID-19 economy
Posted 2-Jul-2020 07:41


Hewlett Packard Enterprise introduces new HPE GreenLake cloud services
Posted 24-Jun-2020 08:07


New cloud data protection services from Hewlett Packard Enterprise
Posted 24-Jun-2020 07:58


Hewlett Packard Enterprise unveils HPE Ezmeral, new software portfolio and brand
Posted 24-Jun-2020 07:10


Apple reveals new developer technologies to foster the next generation of apps
Posted 23-Jun-2020 15:30


Poly introduces solutions for Microsoft Teams Rooms
Posted 23-Jun-2020 15:14


Lenovo launches new ThinkPad P Series mobile workstations
Posted 23-Jun-2020 09:17


Lenovo brings Linux certification to ThinkPad and ThinkStation Workstation portfolio
Posted 23-Jun-2020 08:56


Apple introduces new features for iPhone iOS14 and iPadOS 14
Posted 23-Jun-2020 08:28



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.