riwin / qivicon-api
PHP-API,用于访问Qivicon Homebase。
1.0.8
2022-01-03 16:06 UTC
Requires
- riwin/logger: >=1.0.1
This package is auto-updated.
Last update: 2024-09-04 22:47:11 UTC
README
Homebase 兼容性
状态
安装
composer require riwin/qivicon-api
或
{ "require": { "riwin/qivicon-api": "1.*" } }
绑定API
<?php require_once 'vendor/autoload.php'; header("Content-Type: application/json"); $api = new \riwin\QiviconAPI\QiviconAPI("hostname-Homebase", "Serien-Nummer", "email@mein.qivicon", "Passwort"); print_r($api->execute());
模块 - AlarmSystem
设置警报
/index.php?module=AlarmSystem&cmd=activateAlarmSystem
取消警报
/index.php?module=AlarmSystem&cmd=deactivateAlarmSystem
结束触发警报
/index.php?module=AlarmSystem&cmd=deactivateAlarm
显示警报系统属性
/index.php?module=AlarmSystem&cmd=getAlarmSystemProperties
模块 - Generic
仪表板信息
/index.php?module=Generic&cmd=getDashboardInfo
Homebase 属性
/index.php?module=Generic&cmd=getHomeboxProperties
房间与设备/频道
/index.php?module=Generic&cmd=listRooms
模块 - Situation
开启看护者
/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¶m_id={situationId}
启用/禁用情况
/index.php?module=Situation&cmd=setSituationState¶m_id={situationId}¶m_active={true|false}
删除情况
/index.php?module=Situation&cmd=removeSituation¶m_id={situationId}
列出可用声音文件
/index.php?module=Situation&cmd=listAvailableSoundFiles
模块 - Notification
列出通知
/index.php?module=Notification&cmd=listNotifications
模块 - Device
设置在场
/index.php?module=Device&cmd=setHomeStatePresent
设置不在场
/index.php?module=Device&cmd=setHomeStateAway
设置亮度(0-100)
/index.php?module=Device&cmd=setDimmerCommand¶m_uid={uid}¶m_level={0-100}
setHueCommand
/index.php?module=Device&cmd=setHueCommand¶m_uid={uid}¶m_isCombinedBulb={true|false}¶m_hue={0-360}¶m_saturation={0-100}¶m_brightness={0-100}
setJunkersHotWaterState
/index.php?module=Device&cmd=setJunkersHotWaterState¶m_uid={uid}¶m_state={0-1}
setMieleState
/index.php?module=Device&cmd=setMieleState¶m_uid={uid}¶m_active={true|false}
setPlugState
/index.php?module=Device&cmd=setPlugState¶m_uid={uid}¶m_state={0-1}
setShutterCommand
/index.php?module=Device&cmd=setShutterCommand¶m_uid={uid}¶m_level={0-100}
setSonosControlPlayer
/index.php?module=Device&cmd=setSonosControlPlayer¶m_uid={uid}¶m_control={PLAY,PAUSE,PREVIOUS,NEXT}
setSonosVolume
/index.php?module=Device&cmd=setSonosVolume¶m_uid={uid}¶m_volume={0-100}
setTunableWhiteValuesCommand
/index.php?module=Device&cmd=setTunableWhiteValuesCommand¶m_uid={uid}¶m_brightness={0-100}¶m_colorTemperature={0-100}
setDeviceValue
Philips Hue White Ambiance:
/index.php?module=Device&cmd=setDeviceValue¶m_uid={uid}¶m_value={0-100@on|off}
模块 - Temperature
设置设备温度
/index.php?module=Temperature&cmd=setDeviceTemperature¶m_uid={uid}¶m_targetTemperature={0.0-35.0}
设置Junkers热水设备温度
/index.php?module=Temperature&cmd=setJunkersHotWaterDeviceTemperature¶m_uid={uid}¶m_targetTemperature={temperature}
设置房间温度
/index.php?module=Temperature&cmd=setRoomTemperature¶m_room={room}¶m_targetTemperature={temperature}
结束会话(注销)
/index.php?logout