Closed malfroid closed 3 years ago
This can be overridden in configuration.yaml in zha leveraging device config. There are examples on the forum. I don’t have any off hand.
the device_type = 0x0100
and per Zigbee Home Automation Profile, the device with type id 0x0100 is an on/off Light.
to override, add to configuration.yaml
zha:
device_config:
00:0b:57:ff:de:ad:be:ef-1:
type: 'switch'
Closing as work around supplied and the device is being treated correctly by ZHA.
I looked up the ZBMINI hardware address in the UI:
I then added the proposed configuration by @Adminiuga to my configuration.yaml. Full configuration.yaml:
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
zha:
zigpy_config:
ota:
ikea_provider: true # Auto update Trådfri devices
ledvance_provider: true # Auto update LEDVANCE devices
device_config:
84:71:27:ff:fe:93:17:24: # Reclassify ZBMINI (kitchen ceiling light) as switch instead of light
type: 'switch'
84:71:27:ff:fe:93:10:ce: # Reclassify ZBMINI (kitchen fan) as switch instead of light
type: 'switch'
After saving configuration.yaml and restarting HA, the entity is still a light:
I tried clicking the button "Reconfigure device" in the UI, but that didn't help. Any suggestions?
You need {ieee}-{endpoint_id} not just ieee. Add -1
to both ieee addresses before the :
00:0b:57:ff:de:ad:be:ef-1:
^^^ your Endpoint ID
Thanks, by adding the endpoint it works as expected!
As I did not find anything related to this in the ZHA documentation, I made a suggestion to improve the documentation in https://github.com/home-assistant/home-assistant.io/pull/15989
Hi all. I followed the instructions for this the other day and it worked 100%. But for some strange reason the switch it created is now greyed out and when you click into it this is the message. This entity is no longer being provided by the zha integration. If the entity is no longer in use, delete it in settings.
The light entity that was the original entity is re-enabled and working but its a light not a switch so it turns of when I say turn off lights .
Not sure how to reverse this back to a switch. Anyone have this issue ?
Describe the bug After adding Sonoff ZBMINI = 01MINIZB to ZHA, the entity is classified as a light. This device is not a light, but a switch. It does not seem possible to change the domain of an entity from light to switch. See also my post on the HA forum.
To Reproduce Steps to reproduce the behavior:
Expected behavior Entity should be have the domain switch, ID should show switch.
Screenshots
Additional context Running Home Assistant 2020.12.1 + ZHA on Raspberry Pi 4 with Conbee II zigbee gateway.
Sonoff ZBMINI device signature: