add set ID for RTD

This commit is contained in:
2023-03-13 10:31:27 +01:00
parent c99a0701d2
commit d520a0e2f2
3 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,4 @@
import enum
from typing import Optional
import struct
@ -36,6 +37,10 @@ class CommandId:
WRITE_CONFIG = 6
class SetId(enum.IntEnum):
TEMPERATURE = 1
class OpCode:
ON = ["0", "on"]
OFF = ["1", "off"]