element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs RPi/Z-wave project: Controlling lights with wget
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: packetgeek
  • Date Created: 27 Jul 2013 3:03 AM Date Created
  • Views 507 views
  • Likes 0 likes
  • Comments 1 comment
  • raspberry
  • pi
  • z-wave
  • raspberry_pi
  • rpi
  • zwave
Related
Recommended

RPi/Z-wave project: Controlling lights with wget

packetgeek
packetgeek
27 Jul 2013

Had a chance to play with the RaZberry yesterday.  In reading about it, noticed that you could control devices via either JSON or simple URLs (via a browser).  Being a total n00b, it took me an hour or so to figure out what was needed to control the lights with a browser but the first of the following two URLs will turn my floor lamp on, the second will turn it off:

 

  • http://pi1:8083/ZWaveAPI/Run/devices[2].instances[0].SwitchMultilevel.Set(0)
  • http://pi1:8083/ZWaveAPI/Run/devices[2].instances[0].SwitchMultilevel.Set(255)

 

As you can guess, anything between 0 and 255 is a dimmer setting, which the GE Lamp Module is capable of.  Note: the "pi1" in "pi1:8083" indicates that I'm running an internal DNS server and have /etc/resolv.conf to first search the local domain before going out into the real world.

 

In short, I now have a yellow light bulb icon (and a grey one) on my menu bar that controls the floor lamp.  The code behind it is nothing more than:

 

  wget -O /dev/null "http://pi1:8083/ZWaveAPI/Run/devices[2].instances[0].SwitchMultilevel.Set(255)"

 

The "-O /dev null" tells wget to no save what is returned by the URL.

 

To go with this, I came up with another project for the second RPi.  I picked up a couple door bell buttons at Lowes this afternoon and some cheap wire.  I plan on mounting them on the side of the cheap desk next to my bed and mounting the RPi to the underside of the desk.  The buttons will be connected to the PiFace daughterboard on the RPi.  I'll need to write code that will send commands to the RPi with the RaZberry daughterboard.  To start, I'm thinking that I'll configure it as a simple toggle for the lamps (one for the desk lamp, one for the floor lamp).  I'm also thinking that if I ever add additional lights, I can "chord" the buttons (2 buttons being able to control 3 lamps, 3 buttons being able to control 7 lamps, etc.).

 

Other thoughts:

  • Home automation software: Whenever I get enough time to stand up actual home automation, I will probably repurpose the buttons to send signals to that software, vice directly to the RPi with the RaZberry.
  • Voice control: Tieing the two RPis into the Palaver software.  Only needs the addition of a powered USB microphone, which I already have.

 

Anyone else have ideas?

  • Sign in to reply
  • Former Member
    Former Member over 11 years ago

    From what i got in forum disscuss Raspberry Pi • View topic - Automation with voice recognition is that Voice recognition on a raspberry pi has been developped by Steven Hickson (http://stevenhickson.blogspot.fr/2013/0 ... ry-pi.html) and is based on google voice API to translate and synthetize text.


    have you have any progess on this project so far? im interested to know as i am in the planning stages of designing my families houses with Z Wave communication using raspberry pi and using voice control as well.



    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube