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 · 16 comments
Open

v15 firmware, no TARIFPERIOD available #318

KipK opened this issue Feb 3, 2025 · 16 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/[email protected]/node_modules/zigbee-herdsman/src/zspec/zcl/utils.ts:76:15) at Function.conditionsValid (/opt/zigbee2mqtt/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/zspec/zcl/zclFrame.ts:307:35) at ZclFrame.writePayloadGlobal (/opt/zigbee2mqtt/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/zspec/zcl/zclFrame.ts:95:35) at ZclFrame.toBuffer (/opt/zigbee2mqtt/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/zspec/zcl/zclFrame.ts:77:18) at EmberAdapter.sendZclFrameToEndpoint (/opt/zigbee2mqtt/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1961:31) at Request.func (/opt/zigbee2mqtt/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:298:36) at Request.send (/opt/zigbee2mqtt/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/helpers/request.ts:82:31) at Endpoint.sendRequest (/opt/zigbee2mqtt/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:324:34) at Endpoint.zclCommand (/opt/zigbee2mqtt/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:949:39) at Endpoint.configureReporting (/opt/zigbee2mqtt/node_modules/.pnpm/[email protected]/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

@fairecasoimeme
Copy link
Owner

Hi,
did you manage to do something ?
I succeeded to pnpm run build without error but I don't know yet how to test. with external converter, you have to do a js file but too many errors and you can't validate

@KipK
Copy link
Author

KipK commented Feb 8, 2025

Not sure you really need to use an external converter, just replace in the z2m "node_modules" folder with the one you've compiled aka zigbee-herdsman and zigbee-herdsman-converter

@fairecasoimeme
Copy link
Owner

I think I haven't the right config to do test. I think I have to do new install for tests.
Do you think, I have to get HA with manual installation and HA supervised ? What is your installation feature ?

@KipK
Copy link
Author

KipK commented Feb 8, 2025

Je continue en français ça sera plus simple.

Tu peux faire tourner z2m sans HA. Juste récupère les sources du git, compile le.
https://www.zigbee2mqtt.io/guide/installation/01_linux.html

De mon coté mon z2m est aussi installé comme ça, dans un container lxc, compilé depuis les sources.

Dans ton repertoire avec les sources, une fois compilé, tu vas avoir un dossier node_modules dans lequel tu remplaces zigbee-herdsman-converter par celui que tu as modifié et compilé aussi ( les fichiers doivent du coup être en .js )
Si tu utilise toujours le mêmes nom de cluster qu'avant il faudra aussi remplacer zigbee-herdsman dans lequel tu as retiré l'ancien cluster custom pour pas avoir de collision entre les 2.

Configure z2m dans le dossier data
Ensuite tu lance manuellement z2m ( pnpm start )

edit: malheureusement je peux pas tester pour l'instant de mon coté, j'ai seulement une prod z2m , et avec le froid qu'il fait là je voudrais pas tout péter mon délestage.

@fairecasoimeme
Copy link
Owner

Merci beaucoup, je vais suivre ton tuto pour tester

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