RobinFlikkema / homey-luxtronik

The Repository for Homey App Luxtronik / nl.robinflikkema.rluxtronik
0 stars 1 forks source link

Evaluate allow for writing values #6

Open RobinFlikkema opened 1 year ago

RobinFlikkema commented 1 year ago

Bouni/Luxtronik currently support writing some values back to the Heatpump.

This is something that should be evaluated; As some parameters aren't really useful in most scenarios, but giving people options is always nice.

This currently uses "parameters", and homey-luxtronik currently only reads "calculations".

BenPru commented 10 months ago

This is something that should be evaluated; As some parameters aren't really useful in most scenarios, but giving people options is always nice.

Hi @RobinFlikkema, in a new branch of my HA integration I try to seperate the params in different categories and would like to implement permission levels: See luxtronik_by_ids#const.py#L373

class Parameter_Write_Permission(IntFlag):
    READ_ONLY = 0
    OPERATION = 1  # -> Parameter_SensorKey
    CONFIG = 2  # -> Parameter_Config_SensorKey
    CALCULATION = 4  # -> Parameter_Calc_SensorKey
    STATIC = 8  # -> Parameter_Static_SensorKey
    UNKNOWN_PARAMS = 2^31  # Not in enum!