Hello!
I am in a process of planning a move from OpenHAB and I am looking to get all my rules migrated.
A very loved use for the current system is ability to control the heterogeneous amount of RGB lights we have scattered around the house.
In the current setup, the light control starts with light presets - I have 6 different colour items that can be changed via the OH user interface (just standard colour pickers) and 4 different hidden colour items that are changed automatically (automatic light presets that change colour spectrum based on time of the day etc.).
This means that users do not have a direct control over the individual light colour - the control for each lights is a dropdown that starts with “Off” and includes all of the colours and presets that can be set in the same view. This allows very easy and intuitive grouping of lights without need of any further setting up on the backend side.
Once any of the dropdowns or light presets change, I have custom rule that detects which physical lights need to be updated and sends corresponding colour.
What I need to have this functionality achieved:
- generic light entity not linked to any physical object to represent the light presets and custom colours (visible in the UI)
- generic dropdown to pick colour preset for each light (visible in the UI)
- custom App to determine which lights need to be updated and to keep light presets up to date and in sync with the time of the day.
On the physical side, some of my lights are LIFX and a few custom built ones that are controlled via REST. Due to limitations of OH I’ve actually built my own LIFX controller that also communicates via REST.
Would the above be achievable with Home Assistant? If so, how can I create generic items (RGB pickers and dropdowns) to be shown in the UI? I am happy to do the rest of the processing in a custom App.