Disabled switch by param #28

Closed
opened 2023-04-19 19:44:24 +02:00 by MiguelAngelLV · 3 comments
MiguelAngelLV commented 2023-04-19 19:44:24 +02:00 (Migrated from github.com)

The active switch (on/off) must be disabled when remote control is disabled in some devices (oven, dishwasher...).

The active switch (on/off) must be disabled when remote control is disabled in some devices (oven, dishwasher...).
Andre0512 commented 2023-04-20 14:42:45 +02:00 (Migrated from github.com)

That's a good idea, I will add this 👍

That's a good idea, I will add this 👍
MiguelAngelLV commented 2023-04-20 15:03:08 +02:00 (Migrated from github.com)

I think a switch a disabled parameter and disabled_on_value could be the most useful for multiples cases

HonSwitchEntityDescription(
            key="active",
            name="Oven",
            icon="mdi:toaster-oven",
            turn_on_key="startProgram",
            turn_off_key="stopProgram",
            disabled="attributes.parameters.remoteCtrValid"
            disabled_on_value="0"
        ),
I think a switch a disabled parameter and disabled_on_value could be the most useful for multiples cases ```python HonSwitchEntityDescription( key="active", name="Oven", icon="mdi:toaster-oven", turn_on_key="startProgram", turn_off_key="stopProgram", disabled="attributes.parameters.remoteCtrValid" disabled_on_value="0" ), ```
Andre0512 commented 2023-05-07 19:16:08 +02:00 (Migrated from github.com)

Hi, finally fixed 🙂
I think we can go with the entity category here, because when it's not a config, it must be a control.

Hi, finally fixed :slightly_smiling_face: I think we can go with the entity category here, because when it's not a config, it must be a control.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xiconfjs/hon#28
No description provided.