class.homewizard.php

This is a simple php class to get the communications going with a homewizard using php. You can use this class to controll switches/dimmers/somfy and read all the data from the homewizard.

A few usage examples:

session_start();

//Load the homewizard class...
require_once('class.homewizard.php');
$hw = new homewizard();

$hw->ip_address = '192.168.1.5';
$hw->password = 'PASSWORD';

//Load the sunrise/sunset times for today and display them`
if ($hw->suntimes()) {
echo 'Sun up: '.$hw->sunrise." - ";
echo 'Sun down: '.$hw->sunset';
}

//Load all the switches
$hw->get_switches();

//Load all the sensors
$hw->get_sensors();

//Load the sensors status again
$hw->get_status();

//Load all the timers
$hw->get_timers();

?>