Hi.
I am developing a heat pump driver, which has.. well a lot of information available as sensors, few thermostats and also 3 different settable mode/state settings, which are enums; where 2 of these have setting “Off”, I’d like to make device “grey out”, like light switches do, when you toggle lights off, when either of these would be at state Off, maybe even when there is a problem that has stopped pump, why not… To indicate that device is not operating.
I have had a hard time implementing this, as it’s not very straight-forward; closest that I’ve got to it, is visible boolean by setting it to gettable, un-settable, ui-quickaction enabled and as a sensor;
Where I would like my settings for it to be: non-gettable, non-settable, no quick action and type would be null;
because device like this should not be stopped/started all the time, quick toggling should not be allowed, user should definetly pick it from list to really turn it off/on; so that’s for no settable and no quickaction..
non-gettable, null type, because state of this boolean should not be visible in sensors page; as it’s for internal use only.
I am pretty sure that fiddling with capability is done and all combinations to archieve this, have been used without success. Unless, I am incorrect here and you my dear reader, know where my mistake is.. But in case that I have not mistaken; is there another way to achieve entity dimming to darker?
I am not there yet, but I could make a warning that could be displayed on icon when off state is active; and I might do that as well, but best approach in my opinion would be graying device out indicating that it is disabled at the moment.