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]: Mercator SSRM-ZB - rotary dimmer #18847

Closed
easyoz opened this issue Sep 3, 2023 · 7 comments
Closed

[New device support]: Mercator SSRM-ZB - rotary dimmer #18847

easyoz opened this issue Sep 3, 2023 · 7 comments
Labels
new device support New device support request

Comments

@easyoz
Copy link

easyoz commented Sep 3, 2023

Link

https://zigbee.blakadder.com/Mercator_SSWRM-ZB.html

Database entry

{"id":16,"type":"Router","ieeeAddr":"0x003c84fffe09a756","nwkAddr":20797,"manufId":4098,"manufName":"_TZE200_a0syesf5","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_a0syesf5","powerSource":1,"zclVersion":3,"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":83,"stackVersion":0,"hwVersi

Comments

Tried using the templates but still showing unknown

External converter

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 legacy = require('zigbee-herdsman-converters/lib/legacy');
const extend = require('zigbee-herdsman-converters/lib/extend');
const ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
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: tuya.fingerprint('TS0601', ['_TZE200_a0syesf5']),
    model: 'TS0601_Dimmer',
    description: 'Dimmer Switch',
    vendor: 'Mercator',
    ota: ota.zigbeeOTA,
    extend: tuya.extend.switch({
        electricalMeasurements: true, powerOutageMemory: true, indicatorMode: true, childLock: true, endpoints: ['l1', 'l2']}),
    whiteLabel: [
        tuya.whitelabel('Mercator', 'SSRM-ZB', 'Mercator Dimmer Switch', ['_TZE200_a0syesf5']),
    ],
    configure: async (device, coordinatorEndpoint, logger) => {
        await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
       
    },
    endpoint: (device) => {
        return {'l1': 1, 'l2': 2};
    },
    meta: {multiEndpoint: true},
};

module.exports = definition;

Supported color modes

No response

Color temperature range

No response

@easyoz easyoz added the new device support New device support request label Sep 3, 2023
@cloudbr34k84
Copy link

i would be interested in this getting developed. I have another zigbee device im trying to make a converter for, but no luck

@cloudbr34k84
Copy link

i forgot i create a issue for the same device
#18541

@Koenkk
Copy link
Owner

Koenkk commented Sep 6, 2023

Could you check if the issue is fixed with the following external converter: https://gist.github.com/Koenkk/a481e1f034099f5bfa7f48f0e16d7db3

  • save this as file next to configuration.yaml as ext_converter.js
  • add it to configuration.yaml:
external_converters:
  - ext_converter.js
  • start z2m, check if issue is fixed

@easyoz
Copy link
Author

easyoz commented Sep 8, 2023

Thanks you so much, have got file and will tomorrow

@jpg0
Copy link

jpg0 commented Sep 8, 2023

I just installed one and these and tested the linked external converter; it now works fine for me.

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Sep 9, 2023
@Koenkk
Copy link
Owner

Koenkk commented Sep 9, 2023

@jpg0 thanks, added!

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

@bjammin
Copy link

bjammin commented Nov 22, 2023

I just got one of these to test, and although it's working, I am getting warnings like this spammed in the log whenever the brightness is changed (either with physical dial, slider on "exposes" tab, or in HA).

Zigbee2MQTT:warn 2023-11-22 13:32:38: zigbee-herdsman-converters:tuya_dimmer: Received unexpected Tuya DataPoint #2 from 0x84ba20fffe97ca04 with raw data '{"dp":2,"datatype":2,"data":{"type":"Buffer","data":[0,0,0,55]}}': type='commandDataResponse', datatype='value', value='55', known DP# usage: ["heatingSetpoint","coverPosition","eardaDimmerLevel","moesHold","moesSheatingSetpoint","silvercrestChangeMode","tuyaSabCO2","tuyaSahkMP25","tuyaSabCO","moes105DimmerLevel1","trsSensitivity","trsfSensitivity","tvMode","nousHumidity","tthHumidity","tIlluminanceLux","evanellMode","AM02PercentControl","x5hMode","connecteMode","tshpscSensitivity","alectoSmokeValue","zsMode"]

Also, the min brightness and max brightness on the "exposes" tab do not seem to save or the state get reloaded. However they seem to have some effect (perhaps min only?).

Apart from this, it's working OK.

I am using Zigbee2Mqtt 1.33.2-1 with no external converters.

Any chance of fixing either of those issues?

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

5 participants