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 
Blanch
254 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.




chimera

506 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





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









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.