Hi there,
Me = Newbie. I have been in IT for 20 years, largely as a network/security and Infrastructure engineer. I am in no way a coder. Knowing my limitations, and wanting to use/learn i added a VAM to my Vista 20p security panel to leverage the API for automation. below is the API, but I don't know how to use it in Hubitat. I tried making a rule to get the alarm status - it works fine, but what to do with it? I would like to start simple by just displaying alarm status, then maybe some rules to turn all the house lights in if there is an alarm. All help appreciated, but examples would be great!!
/ system_http_api / API_REV01
Contents:
Registration
-- Register/Unregister your system and applications with Tuxedo. Setup options for Associate/disassociate your system, add/remove your device MACID to tuxedo, view the enrolled device MACID, login setup, authentication setup, association setup, network setup and filter setup.
AdvancedSecurity
-- Security Related Commands.
AdvancedAutomation
-- Automation Related Commands.
AdvancedMultimedia
-- Multimedia Related Commands.
System
-- System Related Commands.
GetDeviceList
-- Get the latest device list with all or some of devices enrolled to Tuxedo. Default gets all the devices in all categories, or pass a category parameter to get only a specific category of device list.
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/GetDeviceList?category=[category:optional]&operation=set
Catergories
All(default)
AllZwaveDevices
Cameras
Lights
Thermostats
Locks
Shades
OneTouchScene/AllScenes
Sensors (future)
Appliances (future)
EMON Electric meter (future).
GetSecurityStatus
-- Get the default home partition status, Partition ID is optional.
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/GetSecurityStatus?partition=part_ID[part_ID:optional]
SetSecurityArm
-- Use this service to change the partition status.Default is AWAY and partition 1.
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/SetSecurityArm?arming=[arming=AWAY,STAY,NIGHT]&pID=[part_ID:optional]&operation=set
GetOccupancyMode
-- Get the occupancy status from automation mode.
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/GetOccupancyMode
SetOccupancyMode
-- This Service is used to set the occupancy status for automation mode
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/SetOccupancyMode?omode=[occupancy=AWAY/CLOSE,NIGHT]&operation=set
GetLightStatus
-- This Service will get the status off a particular binary light (Nodeid,Device Name,Device Type and Status [Binary Switch 0-OFF,255-ON][Multilevel Switch 0-OFF, 1 to 99-ON)
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/GetLightStatus?nodeID=[node_ID=dev_id]&operation=set
SetLight
-- This Service will set the status off a particular binary or dimmer light
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/SetLight?nodeID=[node_ID=dev_id]&percent=[percent=ON, OFF, DIM1,…DIM10]&operation=set
Where DIM1-DIM10 equal to 10 to 99.
GetThermostatMode
-- This service will return the mode of particular thermostat(Nodeid,Device Name,Device Type and Mode [OFF,HEAT,COOL,AUTO,SAVECOOL,SAVEHEAT])
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/GetThermostatMode?nodeID=[node_ID=dev_id]&operation=set
GetThermostatSetPoint
-- This service will give Heat and Cool Setpoint of particular thermostat(Nodeid,Device Name,Device Type,Heat Setpoint,Cool Setpoint,Save Heat,Save Cool)
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/GetThermostatSetPoint?nodeID=[node_ID=dev_id]&operation=set
GetThermostatEnergyMode
-- This service will give the thermostat mode,Energy Save or Normal
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/GetThermostatEnergyMode?nodeID=[node_ID=dev_id]&operation=set
GetThermostatSchedule
-- This service will give the thermostat Schedule details
GetThermostatClock
-- This service will give the thermostat time details
SetThermostatMode
-- Use this service to change the thermostat mode [mode=OFF,HEAT,COOL,AUTO].Modes 0-OFF,1-HEAT,2-COOL,3-AUTO,11-SAVEHEAT,12-SAVECOOL.
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/SetThermostatMode?nodeID=[node_ID=dev_id]&mode=[mode=OFF,HEAT,COOL,AUTO]&operation=set.
SetThermostatSetPoint
-- Use this service to change the Heat and Cool Setpoint of particular thermostat [mode=HEAT,COOL,SAVEHEAT,SAVECOOL].Modes 1-HEAT,2-COOL,11-SAVEHEAT,12-SAVECOOL.
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/SetThermostatSetPoint?nodeID=[node_ID=dev_id]&mode=[mode=HEAT,COOL,SAVEHEAT,SAVECOOL]&setPoint=[setpoint=temp_value]&operation=set.
SetThermostatEnergyMode
-- Use this service to change the thermostat mode to Energy Save or Normal[dev_id=node_ID], [energy_mode=NORMAL,ECO].
SetThermostatSchedule
-- Use this service to set the thermostat Schedule details. [dev_id=node_ID], [day_slot=MON_S1], [time=hhmm, cooltemp=cooltemp_val, heattemp=heattemp_value].
SetThermostatSetClock
-- Use this service to set the thermostat time details
GetDoorLockStatus
-- Use this service to get the status of a particular doorlock
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/GetDoorLockStatus?nodeID=[node_ID=dev_id]&operation=set
SetDoorLock
-- Use this service to set the status of a particular doorlock[LOCK or 1]
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/SetDoorLock?nodeID=[node_ID=dev_id]&cntrl=[cotnrol=LOCK or 1]&operation=set
GetShadeStatus
-- Use this Service to get the status of a particular Shade[dev_id=node_ID].
SetShade
-- Use this service to set the status of a particular Shade[dev_id=node_ID], [control=OPEN, CLOSE, LEV1,…LEV10]. Default is first shade on the list and OPEN.
OneTouchSceneRun
-- Use this service to execute specific purpose scenes. [onetouch_scene = onetouch_ID].
SetGarrage
-- Use this command to set the garrage door status [garrage_door_id=(0,1,2)].[Mode OPEN=1, CLOSE=0]
GetSceneList
-- Use this command to retrieve all the Scenes
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/GetSceneList
ExecuteScene
-- Use this command to execute the scene
Example : http://<Tuxedo IP>:<port>/system_http_api/API_REV01/ExecuteScene?sceneID=[SceneID=1]&operation=set