MSR and WLED Presets
-
Attempting to set up an automation that turns on one of my WLED lights running in Home Assistant to a specific "preset", defined in the WLED application. In HA automations, there is an option to input the specific preset number but that doesn't seem to be an option in MSR. Am I missing something or can this be added in a future release?
-
What service do you use in HA to do that?
-
OK. If the
x_hass_wled
service is not on your entity you need to add it manually through configuration. One of the issues with Home Assistant is that their API does not enumerate what services are supported by a (HA) entity, so there is no way MSR can determine which services apply other than the service implied by the entity's domain name (e.g.switch.living_room
is assumed to support theswitch
service because it's in the name). So, you have to declare those yourself.Make a text file called
local_hass_devices.yaml
in yourconfig
subdirectory. Format it as shown below, using spaces for indents (two spaces per indent level). Replace my placeholder (MSR) entity canonical ID with the actual canonical ID of your MSR entity:entities: "hass>light.whatever_id_it_is": <--- your canonical ID here services: - wled
That will tell the
HassController
class that the specific entity mentioned supports thewled
service. Restart MSR, and after that, you should findx_hass_wled
capability on the entity with whatever actions it supports. -
Thanks. This worked perfectly and do appreciate the added context to understand why. Note: there was already a "local_hass_devices.yaml" file in my config with an entities header. Therefore, I just needed to enter the following 3 lines/entity information you noted below that heading and all was good.
-
T toggledbits locked this topic on