Difference between revisions of "AIO API Event Codes"

From OpenMotics
Jump to navigation Jump to search
Line 104: Line 104:
 
!<div align="center">0</div>
 
!<div align="center">0</div>
 
!<div align="center">0</div>
 
!<div align="center">0</div>
 +
!<div align="center">Bus</div>
 +
!<div align="center">Power_state</div>
 
!<div align="center">0</div>
 
!<div align="center">0</div>
 
!<div align="center">0</div>
 
!<div align="center">0</div>
 
!<div align="center">0</div>
 
!<div align="center">0</div>
!<div align="center">0</div>
+
|Power state change: When Bus=0 -> RS485 Bus, When Bus=1 -> CAN Bus, when Power_state=0 -> Bus OFF, when Power_state=1 -> Bus ON
!<div align="center">0</div>
 
|Power state change:
 
 
|-
 
|-
 
!<div align="center">254</div>
 
!<div align="center">254</div>

Revision as of 09:13, 13 March 2020

Type Action DeviceNr.MSB DeviceNr.LSB Data0 Data1 Data2 Data3 Description
0
0
x.MSB
x.LSB
y
z
u.MSB
u.LSB
Output x off: This Event will be send when an output is switched off with dimmer value y, timer type z and timer value u. See Note 1.
0
1
x.MSB
x.LSB
y
z
u.MSB
u.LSB
Output x on: This Event will be send when an output is switched on with dimmer value y, timer type z and timer value u. See Note 1.
1
0
x.MSB
x.LSB
0
0
0
0
Input x Released: This Event will be send when an input is released.
1
1
x.MSB
x.LSB
0
0
0
0
Input x Pressed: This Event will be send when an input is pressed.
2
0
0
x
0
y
0
0
Temperature sensor x changed: This Event will be send when Temperature sensor x has changed, new temperature will be found in y
2
1
0
x
0
y
0
0
Humidity sensor x changed: This Event will be send when Humidity sensor x has changed, new humidity will be found in y
2
2
0
x
y.MSB
y.LSB
0
0
Brightness sensor x changed: This Event will be send when Brightness sensor x has changed, new humidity will be found in y
20
0
0
x
Mode
Setpoint
0
0
Thermostat x has changed: The Thermostat setpoint/mode has been modified by the slave device (For example the Modbus thermostat connected to the Micro CAN has an updated value set by the user)
20
1
0
x
Mode
Setpoint
0
0
Thermostat x has changed: The Thermostat setpoint/mode has been modified by the Master device (For example the user has changed the setpoint using the Mobile app)
253
0
0
Bus
Power_state
0
0
0
Power state change: When Bus=0 -> RS485 Bus, When Bus=1 -> CAN Bus, when Power_state=0 -> Bus OFF, when Power_state=1 -> Bus ON
254
0
0
0
0
0
0
0
Eeprom activate has just been fully performed and is finished
254
1
0
0
Onboard_temp
0
0
0
Update of the Onboard Main PCB temperature. Temperature is represented as a signed integer.

Notes:

  • Note 1: timer type specifies which kind of timer is active for a given output and his timer value.
    • timer type=0: No timer is active
    • timer type=1: 100ms timer
    • timer type=2: 1s timer
    • timer type=3: 1m timer