Skip to content
Homewizard class
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
README.md
class.homewizard.php
example.php
thermometers.php

README.md

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();

?>

You can’t perform that action at this time.