Heater Commands Update #67
@ -46,6 +46,10 @@ class Info:
|
|||||||
HEATER_HEALTHY_CMD = "Set to healthy"
|
HEATER_HEALTHY_CMD = "Set to healthy"
|
||||||
|
|
||||||
|
|
||||||
|
# Needed in OBSW to differentiate between external and internal heater commands
|
||||||
|
COMMAND_SOURCE_PARAM_EXTERNAL = 1
|
||||||
|
|
||||||
|
|
||||||
class ActionIds(enum.IntEnum):
|
class ActionIds(enum.IntEnum):
|
||||||
SWITCH_HEATER = 0
|
SWITCH_HEATER = 0
|
||||||
|
|
||||||
@ -214,6 +218,7 @@ def pack_switch_heater_command(
|
|||||||
command = bytearray()
|
command = bytearray()
|
||||||
command.append(switch_nr)
|
command.append(switch_nr)
|
||||||
command.append(switch_action)
|
command.append(switch_action)
|
||||||
|
command.append(COMMAND_SOURCE_PARAM_EXTERNAL)
|
||||||
return generate_action_command(
|
return generate_action_command(
|
||||||
object_id=object_id, action_id=ActionIds.SWITCH_HEATER, app_data=command
|
object_id=object_id, action_id=ActionIds.SWITCH_HEATER, app_data=command
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user