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

v15 firmware, no TARIFPERIOD available #318

Open
KipK opened this issue Feb 3, 2025 · 11 comments
Open

v15 firmware, no TARIFPERIOD available #318

KipK opened this issue Feb 3, 2025 · 11 comments

Comments

@KipK
Copy link

KipK commented Feb 3, 2025

I saw you've added this new attribute on latest v15 update.

I've tried it with z2m ( just updated it before to new 2.1.0 ), forced the update using localota as still not available yet.
OTA succeed, everything seems ok but I can't get this new tariff_period.
I've already added it to Tic command whitelist using 'TARIFPERIOD' as it seems to be in LixeeCluster.h ( E_CLD_LINKY_TARIFPERIOD = 0x0010, ) , tried also using Tariff ( as it is in the lixee.js converter )

Also when configuring the device, z2m reports an error on this attribute:

z2m: Failed to configure 'Linky', attempt 1 (Error: ZCL command 0x00158d000638e0dc/1 liXeePrivate.configReport([{"attribute":"tariffPeriod","minimumReportInterval":60,"maximumReportInterval":900,"reportableChange":1}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"manufacturerCode":null,"writeUndiv":false}) failed (Don't know value type for 'undefined') at Object.getDataTypeClass (/opt/zigbee2mqtt/node_modules/.pnpm/zigbee-herdsman@3.2.5/node_modules/zigbee-herdsman/src/zspec/zcl/utils.ts:76:15) at Function.conditionsValid (/opt/zigbee2mqtt/node_modules/.pnpm/zigbee-herdsman@3.2.5/node_modules/zigbee-herdsman/src/zspec/zcl/zclFrame.ts:307:35) at ZclFrame.writePayloadGlobal (/opt/zigbee2mqtt/node_modules/.pnpm/zigbee-herdsman@3.2.5/node_modules/zigbee-herdsman/src/zspec/zcl/zclFrame.ts:95:35) at ZclFrame.toBuffer (/opt/zigbee2mqtt/node_modules/.pnpm/zigbee-herdsman@3.2.5/node_modules/zigbee-herdsman/src/zspec/zcl/zclFrame.ts:77:18) at EmberAdapter.sendZclFrameToEndpoint (/opt/zigbee2mqtt/node_modules/.pnpm/zigbee-herdsman@3.2.5/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1961:31) at Request.func (/opt/zigbee2mqtt/node_modules/.pnpm/zigbee-herdsman@3.2.5/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:298:36) at Request.send (/opt/zigbee2mqtt/node_modules/.pnpm/zigbee-herdsman@3.2.5/node_modules/zigbee-herdsman/src/controller/helpers/request.ts:82:31) at Endpoint.sendRequest (/opt/zigbee2mqtt/node_modules/.pnpm/zigbee-herdsman@3.2.5/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:324:34) at Endpoint.zclCommand (/opt/zigbee2mqtt/node_modules/.pnpm/zigbee-herdsman@3.2.5/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:949:39) at Endpoint.configureReporting (/opt/zigbee2mqtt/node_modules/.pnpm/zigbee-herdsman@3.2.5/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:686:20))

@fairecasoimeme
Copy link
Owner

I think it's linked to this issue : Koenkk/zigbee-herdsman#1310 (comment)
I need help to this point because I don't know how to do the switch

@KipK
Copy link
Author

KipK commented Feb 3, 2025

That clearly explains the issue yes.
Also that's a big rewrite for lixee.js converter.
I will give a look, can't guarantee I can help, I'm not really confident with z2m codebase

@fairecasoimeme
Copy link
Owner

Thanks a lot to give a look.
I have a look too but I saw also that's a big rewrite and I'm not comfortable with Z2m script

@KipK
Copy link
Author

KipK commented Feb 3, 2025

Perhaps @mildis / @vk496 could you help on this?

@CokACola44
Copy link

Hello everyone,

@fairecasoimeme: I recently opened an issue on the Zigbee2MQTT GitHub regarding the Lixee Zlinky _TIC: Koenkk/zigbee2mqtt#26146.
I wasn’t aware of your GitHub repository - thank you for your work!

I am also experiencing an issue with the current_price (LTARF) value, which no longer updates.
Do you have any idea what might be causing this? There are no error messages in the logs related to this device.

Thanks! Let me know if you need more details or if I can help in any way.

@mildis
Copy link

mildis commented Feb 3, 2025

@KipK Same as you : I'm currently looking at the code base but I've strictly no idea what is expected between zigbee-herdsman and zigbee-herdsman-converters in terms of class/methods contracts.

@KipK
Copy link
Author

KipK commented Feb 3, 2025

@mildis, I was expecting a developper doc but seems there's none...
The provided exemple of Nodon device helps a bit.

@activa73
Copy link

activa73 commented Feb 3, 2025

same issue for me.

@fairecasoimeme
Copy link
Owner

Hello everyone,

@fairecasoimeme: I recently opened an issue on the Zigbee2MQTT GitHub regarding the Lixee Zlinky _TIC: Koenkk/zigbee2mqtt#26146. I wasn’t aware of your GitHub repository - thank you for your work!

I am also experiencing an issue with the current_price (LTARF) value, which no longer updates. Do you have any idea what might be causing this? There are no error messages in the logs related to this device.

Thanks! Let me know if you need more details or if I can help in any way.

There is no reason that LTARF value no longer update with the new firmware.

@fairecasoimeme
Copy link
Owner

@KipK , I tried this but I don't know how to test :
Koenkk/zigbee-herdsman-converters#8728

@KipK
Copy link
Author

KipK commented Feb 4, 2025

Had the same problem yesterday :)

you'll need to remove the lixeePrivate from cluster.js while testing as they have the same name.

But the thing I haven't found yet, is how to compile the .ts to .js to have them in the node_modules dir.

edit: was probably tired yesterday, it's just written in the zhc zh readme:

npm install -g pnpm
pnpm install --frozen-lockfile
pnpm run eslint --fix
pnpm run pretty:write
pnpm run build

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

No branches or pull requests

5 participants