Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New device support]: GIRIER smart curtain switch 1CH #22321

Closed
marcopaggioro opened this issue Apr 26, 2024 · 8 comments
Closed

[New device support]: GIRIER smart curtain switch 1CH #22321

marcopaggioro opened this issue Apr 26, 2024 · 8 comments
Labels
new device support New device support request

Comments

@marcopaggioro
Copy link

Link

https://it.aliexpress.com/item/1005005225077998.html?spm=a2g0o.order_list.order_list_main.10.6e143696EdOWAe&gatewayAdapt=glo2ita

Database entry

{"id":13,"type":"Router","ieeeAddr":"0xa4c13872579760cf","nwkAddr":5683,"manufId":4417,"manufName":"_TZ3210_dwytrmda","powerSource":"Mains (single phase)","modelId":"TS130F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":514,"inClusterList":[4,5,258,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"stackVersion":0,"dateCode":""}},"closuresWindowCovering":{"attributes":{"32768":0,"tuyaMovingState":1,"currentPositionLiftPercentage":0,"moesCalibrationTime":100,"tuyaMotorReversal":0,"tuyaCalibration":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":66,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1714124493148}

Comments

Hi,
I bought this Smart curtain switch module from Aliexpress. I tried to pair with Z2M but it is recognized as https://www.zigbee2mqtt.io/devices/TS130F.html#tuya-ts130f

The problem is that are parameters that has no sense like "Backlight mode" and there are parameters like "Calibration time" that are not editable.

External definition

const {windowCovering} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['TS130F'],
    model: 'TS130F',
    vendor: '_TZ3210_dwytrmda',
    description: 'Automatically generated definition',
    extend: [windowCovering({"controls":["lift","tilt"]})],
    meta: {},
};

module.exports = definition;
@marcopaggioro marcopaggioro added the new device support New device support request label Apr 26, 2024
@marcopaggioro
Copy link
Author

Maybe something like (inspired by #8781)

// Add the lines below
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const ota = require('zigbee-herdsman-converters/lib/ota');
const utils = require('zigbee-herdsman-converters/lib/utils');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const e = exposes.presets;
const ea = exposes.access;


const definition = {
	fingerprint: [
		{modelID: 'TS130F', manufacturerName: '_TZ3210_dwytrmda'}
	],
	model: 'Smart Curtain Switch',
	vendor: 'Girier',
	description: 'Curtain motor controller',
	fromZigbee: [fz.cover_position_tilt, fz.tuya_cover_options],
	toZigbee: [tz.cover_state, tz.moes_cover_calibration, tz.cover_position_tilt, tz.tuya_cover_calibration, tz.tuya_cover_reversal],
	meta: {coverInverted: true},
	exposes: [e.cover_position(), exposes.enum('moving', ea.STATE, ['UP', 'STOP', 'DOWN']),
	exposes.binary('calibration', ea.ALL, 'ON', 'OFF'), exposes.binary('motor_reversal', ea.ALL, 'ON', 'OFF'),
	exposes.numeric('calibration_time', ea.ALL).withValueMin(1).withValueMax(100)]
};

module.exports = definition;

@tajnymag
Copy link

tajnymag commented May 9, 2024

Just for a future reference, in Czechia, the same module can be bought under the name CEL-TEC L120Z-C. I've just now installed two modules and they both look the same and they share the same attributes like the mentioned GRIER.

Indeed backlight does not do anything and calibration time is readonly.

@dhalidi
Copy link

dhalidi commented Jul 24, 2024

I had the same issue with the same module and to resolve the calibration time issue i just had to go into device settings in zigbee2mqtt.

  1. Go to Dev console and select Closures in cluster then choose moescalibrationtime in attribute and put the calibration time manually in MoesCalibrationTime. If you enter 300 it will be 30 seconds.
    There you go, you finally updated the calibration time manually

@xanfia
Copy link

xanfia commented Nov 3, 2024

I confirm that @marcopaggioro's code is working perfectly for this device. Can it be merged into the main branch? It's still being sold in Aliexpress being a solid and cheap option, once this patch is applied...

@Koenkk
Copy link
Owner

Koenkk commented Nov 5, 2024

Added!

Could you also submit a picture for the docs? This can be done by:

  1. Create a fork by clicking here
  2. Go to the public/images/devices directory, Add file -> Upload files
  3. Upload the files and press Commit changes
  4. Press Contribute -> Open pull request -> update title/description -> Create pull request

Make sure that:

  • The filename is TS130F_GIRIER.png
  • The size is 512x512
  • The background is transparent (use e.g. Adobe remove background)

@Koenkk Koenkk closed this as completed Nov 5, 2024
@xanfia
Copy link

xanfia commented Nov 5, 2024

Done! Thank you so much for this project; I’m truly happy to have contributed, even if it’s just with this small detail.

@xarly
Copy link

xarly commented Nov 11, 2024

@max930710
Copy link

Hey,
thank you for the general support here.
Do you guys don’t have problems with interlock function when stopping the curtain manually half way?
I can’t use these modules right now, because when I stop at some point and then want to close it to 0% the modules switch on for the full calibration time again. One module switches both outlets on, when the curtain is at 0% and the module is still on because of calibration time. The other one switches both outlets on when it’s moving down and is just half way down! So interlock isn’t working on both modules which I ordered for testing.

I‘m scared they crash my motors. So I installed again the Sonoff, they just work perfectly. But unfortunately they are to big to install behind my switches. So I need to put them by the motor instead of the switches. These girier ones would be the perfect alternative, but for me they don’t work and may even grill my motors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device support New device support request
Projects
None yet
Development

No branches or pull requests

7 participants