Difference between revisions of "Homewizard"

From TD-er's Wiki
Jump to navigationJump to search
Line 4: Line 4:
 
Base of url is: http://<ip-homewizard>/<wachtwoord>
 
Base of url is: http://<ip-homewizard>/<wachtwoord>
  
 
+
== Switches and dimmers ==
== Read switchnumbers ==
+
Read switchnumbers:
 
* /swlist
 
* /swlist
  
== Read switchen and sensor status ==
+
Read sensor status:
 
* /get-sensors
 
* /get-sensors
  
== Switch (e.g. lamp) on or off ==
+
Switch (e.g. lamp) on or off:
 
* /sw/<switch-number>/<on|off>
 
* /sw/<switch-number>/<on|off>
  
== Operate dimmer ==
+
Operate dimmer:
 
* /sw/dim/<dimmer-number>/<value 0 ... 255>
 
* /sw/dim/<dimmer-number>/<value 0 ... 255>
  
Line 22: Line 22:
 
Switch scenes:
 
Switch scenes:
 
* /gp/<scene-number>/<on|off>
 
* /gp/<scene-number>/<on|off>
 +
 +
== Energy monitoring ==
 +
* /enlist
  
 
== Other commands ==
 
== Other commands ==
Line 35: Line 38:
  
 
== Awareness ==
 
== Awareness ==
 
 
 
Detection-sensors will be registered with an ID starting at 0 and a log will be created.
 
Detection-sensors will be registered with an ID starting at 0 and a log will be created.
 
This log will contain a timestamp for each event.
 
This log will contain a timestamp for each event.
Line 50: Line 51:
 
The temperature and humidity will be logged with a timestamp.
 
The temperature and humidity will be logged with a timestamp.
  
=== Resolution ===
+
Get a list of temperature-sensors:
 +
* /telist
 
To get the log:
 
To get the log:
 
* /te/graph/<id>/day-week-month-year
 
* /te/graph/<id>/day-week-month-year
  
==== Day ====
+
=== Resolution ===
 +
'''Day'''
 
For the current day, the resolution is one sample per 15 minutes.
 
For the current day, the resolution is one sample per 15 minutes.
  
==== Week ====
+
'''Week'''
 
20% of the data will be kept by removing 4 entries out of 5.
 
20% of the data will be kept by removing 4 entries out of 5.
  
==== Month ====
+
'''Month'''
 
For each day, the minimum and maximum value will be stored.
 
For each day, the minimum and maximum value will be stored.
  
==== Year ====
+
'''Year'''
 
Minimum and maximum of each month will be stored.
 
Minimum and maximum of each month will be stored.
 +
 +
 +
 +
 +
Used sources:
 +
* https://github.com/manuelvanrijn/homewizard-api/blob/master/homewizard-api.rb
 +
* [[http://www.homewizards.nl/forum/viewtopic.php?f=7&t=15&start=20|Homewizards.nl - Data uitlezen]]

Revision as of 08:07, 27 September 2013

The home-wizard URLs:

Note that the password is sent plain-text in the url. Base of url is: http://<ip-homewizard>/<wachtwoord>

Switches and dimmers

Read switchnumbers:

  • /swlist

Read sensor status:

  • /get-sensors

Switch (e.g. lamp) on or off:

  • /sw/<switch-number>/<on|off>

Operate dimmer:

  • /sw/dim/<dimmer-number>/<value 0 ... 255>

Scenes

Get list of scenes:

  • /gplist

Switch scenes:

  • /gp/<scene-number>/<on|off>

Energy monitoring

  • /enlist

Other commands

  • /get-status : state of all sensors
  • /get-sensors : all devices and sensors
  • /notifications: all your notifications
  • /nf-receivers: notification receivers
  • /timers: overview of timers
  • /suntimes/today: sunrise & sunset of today
  • /wea/get: your location according to HomeWizard


Awareness

Detection-sensors will be registered with an ID starting at 0 and a log will be created. This log will contain a timestamp for each event.

A doorbell will only have "yes" events and magnetic door-sensors or daylight-detectors will have a "yes" and "no" event (e.g. door opened, door closed). Both will be logged, including the event-type.

The logs can be retrieved using:

  • /kks/get/<id>/log


Temperature sensors

New temperature sensors will be assigned an ID starting at 0. The temperature and humidity will be logged with a timestamp.

Get a list of temperature-sensors:

  • /telist

To get the log:

  • /te/graph/<id>/day-week-month-year

Resolution

Day For the current day, the resolution is one sample per 15 minutes.

Week 20% of the data will be kept by removing 4 entries out of 5.

Month For each day, the minimum and maximum value will be stored.

Year Minimum and maximum of each month will be stored.



Used sources: