WLED Automations require new Service with HA 2021.12
-
The introduction of HA 2021.12 came with a breaking change to WLED whereby the lights no longer have the Service "wled.preset" or "wled.effect". The wled.preset service specifically allowed for the selection of a preset (specific color, effect, light intensity, etc) which was manually set up in the WLED application to use in automations. In MSR, to gain access to the service "wled.preset", a manual workaround was implemented which required the creation of a text file called local_hass_devices.yaml which then needed to be placed in the config subdirectory with some scripting that told the HassController class that the specific entity mentioned supports the wled service. More detail can be found in the prior post "MSR and WLED Presets". In 2021.12, however, to set up an automation Home Assistant, you must now select "select.select_option" as the Service with the entity being the specific WLED and the option being the actual name of the preset (versus the preset number required in wled.preset). Is there a way to implement the same Service in Reactor as that Service is not being provided as an option currently. Breaking change notes in Home Assistant simply say "The wled.effect and wled.preset services have been removed. For both services, full replacements are available as normal entities in Home Assistant."
-
It seems like you would just add the "select" service in
local_hass_devices
for that device in the same way that you previously added wled (and maybe remove wled since it isn't used any more?). Have you tried that? If HA is creating new entities for things, you may need to assign the service to those entities. -
It was looking good in the sense that in MSR, with that change, the included Service was "select.select_option" and there was the option to specify the preset name but unfortunately, it would not fire/turn the WLED device on. As a check, I set up the same in HA automations and it worked.
-
Please review the posting guidelines. You should at least be showing your work, and any action against a device/entity, particularly where some custom configuration is involved, is a good candidate for a review of the log files, and possibly posting of snippets (all actions sent to hubs are logged, together with the hub's response).
-
For those of you encountering the same issue, after further testing, I stumbled across the fact that the Entity Id that must be used now is "select_preset_wled" versus "light_wled" as was the case before HA 2021.12. When selected, the service drop down should only come up with "select.select_option" and the corresponding option field needs to be populated with the name of the preset you created in WLED (not the number). Note: if you have multiple WLED's set up, your selectable Entity ID list would contain: select_preset_wled, select_preset_wled_1, select_preset_wled_2 and so on...all referring to each of the WLED lights not the actual presets of that light. Hope that helps....