When configured as an On/Off switch either through Home Assistant or the button presses, the switch is still reporting its Matter category as a dimmer, making it not possible for matter servers to show the correct control. Is this something that should work?
The issue as I understand it is that when the switch is commissioned (ie first connected) it has to advertise itself as a switch or a dimmer etc. Once that is done it can’t be changed. The Inovelli White Dimmer advertises itself as a Dimmer since it has the greatest capability.
In Home Assistant however it is easy enough to use HA’s “Template” capability to change the “appearance and behavior” of a Dimmer to a Switch. A “Template Switch” once created operates as a switch can then be used on Home Assistant or published to Apple Home using the Homekit Bridge.
That is what I do in my Home. The vast amount of Inovelli Dimmers are actually used as On/Off Switches and I use the Template feature to sent them to Apple Home as switches. That way the family just sees what i want them to.
This topic was talking about a blue switch but it works just the same way with a White Dimmer.
Hope that this helps.
The endpoint type is fixed in the firmware so it will always report as a dimmer. All the “operate as a switch” function really does is force the dimmer circuitry to drive at either 0% or 100% (0 or 254). Note that power still passes through the dimmer circuitry so this isn’t a great solution for large loads - the dedicated-purpose “Switch” product is much better for that purpose.
As mentioned, in Home Assistant, you can use the Settings → Devices and services → Helpers → Create Helper → Template → Switch feature to create an virtual On/Off switch tied to the dimmer load control endpoint and use that.
I ended up creating a blueprint in HomeAssistant to do this as I’ve got a bunch of switches to configure.
blueprint:
name: Dimmer to On/Off Switch
description: Convert a dimmable light into a simple on/off template switch
domain: template
input:
light_entity:
name: Light Entity
description: The dimmable light to convert to an on/off switch
selector:
entity:
domain: light
variables:
light_entity: !input light_entity
switch:
turn_on:
- action: light.turn_on
target:
entity_id: "{{ light_entity }}"
turn_off:
- action: light.turn_off
target:
entity_id: "{{ light_entity }}"
state: "{{ is_state(light_entity, 'on') }}"
availability: "{{ states(light_entity) not in ('unknown', 'unavailable') }}"
name: "{{ state_attr(light_entity, 'friendly_name') }} Switch"
unique_id: "{{ light_entity }}_switch"
and to use it
template:
- unique_id: 0d327cdb-3aa5-4cc4-8566-7faaf72559ea
use_blueprint:
path: homeassistant/dimmer_to_on_off.yaml
input:
light_entity: light.living_room_light_6
- unique_id: eec9e669-577d-4d0a-9152-0d459f124de8
use_blueprint:
path: homeassistant/dimmer_to_on_off.yaml
input:
light_entity: light.hallway_light_1