Skip to content

Commit

Permalink
Added NEXENTRO Blinds Actuator Fingerprints (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorInsta authored Sep 25, 2023
1 parent 1acfb6c commit e394dd7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions drivers/SmartThings/zigbee-window-treatment/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ zigbeeManufacturer:
manufacturer: Smartwings
model: WM25/L-Z
deviceProfileName: window-treatment-battery
- id: "Insta GmbH/Blinds Actuator"
deviceLabel: NEXENTRO Blinds Actuator
manufacturer: Insta GmbH
model: NEXENTRO Blinds Actuator
deviceProfileName: window-treatment-profile

zigbeeGeneric:
- id: "genericShade"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ local function current_position_attr_handler(driver, device, value, zb_rx)
local level = 100 - value.value
local current_level = device:get_latest_state("main", capabilities.windowShadeLevel.ID, capabilities.windowShadeLevel.shadeLevel.NAME)
local windowShade = capabilities.windowShade.windowShade
if level == 0 then
if level == -155 then -- unknown position
device:emit_event(windowShade.unknown())
device:emit_event(capabilities.windowShadeLevel.shadeLevel(100))
elseif level == 0 then
device:emit_event(windowShade.closed())
device:emit_event(capabilities.windowShadeLevel.shadeLevel(0))
elseif level == 100 then
Expand Down Expand Up @@ -95,7 +98,8 @@ local ikea_window_treatment = {
},
can_handle = function(opts, driver, device, ...)
return device:get_manufacturer() == "IKEA of Sweden" or
device:get_manufacturer() == "Smartwings"
device:get_manufacturer() == "Smartwings" or
device:get_manufacturer() == "Insta GmbH"
end
}

Expand Down

0 comments on commit e394dd7

Please sign in to comment.