PHP code example of riwin / qivicon-api

1. Go to this page and download the library: Download riwin/qivicon-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

riwin / qivicon-api example snippets



"Content-Type: application/json");
$api = new \riwin\QiviconAPI\QiviconAPI("hostname-Homebase", "Serien-Nummer", "[email protected]", "Passwort");
print_r($api->execute());

/index.php?module=AlarmSystem&cmd=activateAlarmSystem

/index.php?module=AlarmSystem&cmd=deactivateAlarmSystem

/index.php?module=AlarmSystem&cmd=deactivateAlarm

/index.php?module=AlarmSystem&cmd=getAlarmSystemProperties

/index.php?module=Generic&cmd=getDashboardInfo

/index.php?module=Generic&cmd=getHomeboxProperties

/index.php?module=Generic&cmd=listRooms

/index.php?module=Situation&cmd=activateVirtualResident

/index.php?module=Situation&cmd=deactivateVirtualResident

/index.php?module=Situation&cmd=getVirtualResidentProperties

/index.php?module=Situation&cmd=listSituations

/index.php?module=Situation&cmd=getSituation&param_id={situationId}

/index.php?module=Situation&cmd=setSituationState&param_id={situationId}&param_active={true|false}

/index.php?module=Situation&cmd=removeSituation&param_id={situationId}

/index.php?module=Situation&cmd=listAvailableSoundFiles

/index.php?module=Notification&cmd=listNotifications

/index.php?module=Device&cmd=setHomeStatePresent

/index.php?module=Device&cmd=setHomeStateAway

/index.php?module=Device&cmd=setDimmerCommand&param_uid={uid}&param_level={0-100}

/index.php?module=Device&cmd=setHueCommand&param_uid={uid}&param_isCombinedBulb={true|false}&param_hue={0-360}&param_saturation={0-100}&param_brightness={0-100}

/index.php?module=Device&cmd=setJunkersHotWaterState&param_uid={uid}&param_state={0-1}

/index.php?module=Device&cmd=setMieleState&param_uid={uid}&param_active={true|false}

/index.php?module=Device&cmd=setPlugState&param_uid={uid}&param_state={0-1}

/index.php?module=Device&cmd=setShutterCommand&param_uid={uid}&param_level={0-100}

/index.php?module=Device&cmd=setSonosControlPlayer&param_uid={uid}&param_control={PLAY,PAUSE,PREVIOUS,NEXT}

/index.php?module=Device&cmd=setSonosVolume&param_uid={uid}&param_volume={0-100}

/index.php?module=Device&cmd=setTunableWhiteValuesCommand&param_uid={uid}&param_brightness={0-100}&param_colorTemperature={0-100}

Philips Hue White Ambiance:
/index.php?module=Device&cmd=setDeviceValue&param_uid={uid}&param_value={0-100@on|off}

/index.php?module=Temperature&cmd=setDeviceTemperature&param_uid={uid}&param_targetTemperature={0.0-35.0}

/index.php?module=Temperature&cmd=setJunkersHotWaterDeviceTemperature&param_uid={uid}&param_targetTemperature={temperature}

/index.php?module=Temperature&cmd=setRoomTemperature&param_room={room}&param_targetTemperature={temperature}

/index.php?logout