Logic Machine Forum
somfy sonesse zigbee - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: somfy sonesse zigbee (/showthread.php?tid=5807)



somfy sonesse zigbee - hocine - 24.12.2024

Hello, 

I have this product and i want to control it with my LM.
with the Zigbee module the product are well recognized but it's impossible tio control the motor with the LM.

Do you have an idea how i can control this motor ?

THX


RE: somfy sonesse zigbee - AlexLV - 25.12.2024

Hy Hocine,
I think you can ask admin on the forum, may be he can help to you attach this device to LM, but you need show here more info about your device's zigbee profile. Look zigbee on forum, hope will understand more. If your device also have RTS (additional connection for direct control - 4 wires needed - GND, Stop, Up and Down signals) or direct control just with powering wires - I can help you.

Somfy devices has at least 5 possible controlling solutions, it depends from model - direct with power (230V AC - 3 wires usually - N, L1 phase Up and L1 phase down signals), RTS - additional RJ-12 (6 pins, not RJ-45!!) for 6 wires, where 4 is used - (GND, stop, Up and Down). RS-485 - communication protocol (Modbus RTU), Zigbee you have or remote control. Please describe what you have onboard.

BR, Alex


RE: somfy sonesse zigbee - hocine - 27.12.2024

(25.12.2024, 19:02)AlexLV Wrote: Hy Hocine,
I think you can ask admin on the forum,  may be he can help to you attach this device to LM, but you need show here more info about your device's zigbee profile. Look zigbee on forum, hope will understand more. If your device also have RTS (additional connection for direct control - 4 wires needed - GND, Stop, Up and Down signals) or direct control just with powering wires - I can help you.
Somfy devices has at least 5 possible controlling solutions, it depends from model - direct with power (230V AC - 3 wires usually - N, L1 phase Up and L1 phase down signals), RTS - additional RJ-12 (6 pins, not RJ-45!!) for 6 wires, where 4 is used - (GND, stop, Up and Down). RS-485 - communication protocol (Modbus  RTU), Zigbee you have or remote control. Please describe what you have onboard.
BR, Alex

Thanks AlexLV  my Somfy motor are directly in zigbee, you can find the information here.
The product are recognize by the Zigbee app but the control don't work

https://www.somfysystems.com/en-us/products/1241970/sonesse-30-24v-dc-zigbee

Manufacturer: SOMFY
Model: Sonesse 30 DC 24V Roller
Firmware version: 5

Device type: Router
Power source: Mains
Receive when idle: Yes

Endpoint 1
Profile: 260
Input clusters
- Basic (0)
- Identify (3)
- Groups (4)
- Scenes (5)
- ClosuresWindowCovering (258)

Endpoint 232
Profile: 260
Input clusters
- Basic (0)
- Ota (25)
Output clusters
- Basic (0)
- Ota (25)

Endpoint 242
Profile: 41440
Output clusters
- GreenPower (33)


RE: somfy sonesse zigbee - admin - 27.12.2024

Enable debug logs in ZigBee app configuration and post logs after controlling the device.


RE: somfy sonesse zigbee - hocine - 27.12.2024

(27.12.2024, 09:15)admin Wrote: Enable debug logs in ZigBee app configuration and post logs after controlling the device.
here the log and the monitor 


Nr,Time,Type,Address,Cluster,Action,Data
"16","10:40:09.768","RX 8%","000d6f00162c440a ","Ota","QueryNextImageRequest","FieldControl = 0, FileVersion = 34, ImageType = 8459, ManufacturerCode = 4619"
"15","10:39:51.413","RX","'- ","'-","zcl","fn = getnamedattributes, from = 4cc206fffe182b7f, result = [  ]"
"14","10:39:51.412","RX 64%","4cc206fffe182b7f ","ClosuresWindowCovering","ReadAttributesResponse","ReadAttributeStatusRecords = [ { AttributeIdentifier = 8, Status = CALIBRATION_ERROR }, { AttributeIdentifier = 9, Status = UNSUPPORTED_ATTRIBUTE } ]"
"13","10:39:51.342","TX","'- ","'-","zcl","addr = 4cc206fffe182b7f, args = [ 258, [ CurrentPositionLiftPercentage, CurrentPositionTiltPercentage ], 2 ], fn = getnamedattributes"
"12","10:39:49.947","RX","'- ","'-","zcl","fn = setwindowcovering, from = 4cc206fffe182b7f, result = 2"
"11","10:39:49.921","TX","'- ","'-","zcl","addr = 4cc206fffe182b7f, args = [ Stop ], fn = setwindowcovering"
"10","10:39:42.266","RX 60%","70b3d52b60012702 ","Basic","ReportAttributes","AttributeReports = [ { Attribute = { Type = uint8, Value = 100 }, AttributeIdentifier = 1 } ]"
"9","10:39:41.485","RX 65%","4cc206fffe182b7f ","ClosuresWindowCovering","DefaultResponse","CommandIdentifier = 1, Status = FAILURE"
"8","10:39:41.444","RX 64%","4cc206fffe182b7f ","ClosuresWindowCovering","ReportAttributes","AttributeReports = [ { Attribute = { Type = enum8, Value = 1 }, AttributeIdentifier = 1 } ]"
"7","10:39:41.289","RX","'- ","'-","zcl","fn = setwindowcovering, from = 4cc206fffe182b7f, result = 1"
"6","10:39:40.874","TX","'- ","'-","zcl","addr = 4cc206fffe182b7f, args = [ DownClose ], fn = setwindowcovering"
"5","10:39:35.592","TX","'- ","'-","getotastate","'-"
"4","10:39:35.592","RX","'- ","'-","getpermitjoin","addr = -1, max = 50"
"3","10:39:35.592","TX","'- ","'-","getpermitjoin","'-"
"2","10:39:35.591","RX","'- ","'-","gwdata","connmode = 10c4/bee0, fwversion = 20240710, ieeeaddr = 00124b002f8a9a15"
"1","10:39:35.590","TX","'- ","'-","getgwdata","'-"

the adress of the product and new log

4cc206fffe182b7f


RE: somfy sonesse zigbee - admin - 27.12.2024

Seems that a calibration procedure is needed for this device to work.
Run this script once and post what you get in LM Logs:
Code:
zb = require('applibs.zigbee')
res, err = zb.cmdsync('getnamedattribute', '4cc206fffe182b7f', 'ClosuresWindowCovering', 'Mode')
log(res, err)



RE: somfy sonesse zigbee - hocine - 27.12.2024

(27.12.2024, 14:09)admin Wrote: Seems that a calibration procedure is needed for this device to work.
Run this script once and post what you get in LM Logs:
Code:
zb = require('applibs.zigbee')
res, err = zb.cmdsync('getnamedattribute', '4cc206fffe182b7f', 'ClosuresWindowCovering', 'Mode')
log(res, err)

here the log 

"date","script","text"
"2024.12.27 21:16:31","initscript","* arg: 1
  * table:
  [""4""]
    * bool: false
  [""7""]
    * bool: false
  [""3""]
    * bool: false
  [""5""]
    * bool: false
  [""2""]
    * bool: false
  [""6""]
    * bool: false
  [""1""]
    * bool: false
  [""0""]
    * bool: false
* arg: 2
  * nil
"


RE: somfy sonesse zigbee - admin - 02.01.2025

Try enabling calibration mode:
Code:
zb = require('applibs.zigbee')

value = {
  [1] = true, -- enable calibration
}

res, err = zb.cmdsync('setnamedattribute', '4cc206fffe182b7f', 'ClosuresWindowCovering', 'Mode', value)
log(res, err)

You might need to disable it afterwards for the device to operate properly. If this does not help then contact the device manufacturer support.