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

Update Lixee.ts, need help #8728

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

fairecasoimeme
Copy link
Contributor

I tried to update the converters but I don't know how to test in local.

  • I used external converter (following tutos) but I can't access to logs because I get a 500 internal server message, so I can't see if it's ok or not
  • When I try to do dev console read attribute, 'tariffPeriod' don't appear in 'lixeePrivate' so I think this is because cluster.ts take advantage ?

Can anyone help ?

const local = {
modernExtend: {
addCustomClusterManuSpecificLixee: () =>
deviceAddCustomCluster('liXeePrivate', {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
deviceAddCustomCluster('liXeePrivate', {
deviceAddCustomCluster('liXeePrivateCustom', {

Could you check if this now work from the dev console? Otherwise there is a conflict with the already existing cluster.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok thank you for this

@Koenkk
Copy link
Owner

Koenkk commented Feb 4, 2025

) but I can't access to logs because I get a 500 internal server message, so I can't see if it's ok or not

Where do you get this?

@fairecasoimeme
Copy link
Contributor Author

) but I can't access to logs because I get a 500 internal server message, so I can't see if it's ok or not

Where do you get this?

image

@fairecasoimeme
Copy link
Contributor Author

So I don't know how to test.
I read that I have to copy my lixee.js in external_converters folder and the file is used when I restart Z2M but I have some errors like :

  • z2m: Failed to call 'ExternalConverters' 'start' (/app/data/extension/lixee.js:125
    } satisfies Fz.Converter,

Or others but I don't know if it's linked to js file, if i have to use tz file ...
I'd really like to contribute but it's really complicated

@Koenkk
Copy link
Owner

Koenkk commented Feb 5, 2025

Try changing } satisfies Fz.Converter, to },, basically you have to remove all the Typescript stuff since this is a Javascript file. Could you send me the whole external converter?

@fairecasoimeme
Copy link
Contributor Author

Try changing } satisfies Fz.Converter, to },, basically you have to remove all the Typescript stuff since this is a Javascript file. Could you send me the whole external converter?

Thank you for the help. I removed all the typescript stuff and it's works now but how to compile to ts file ?

other question : I tried to enhance some exposes datas with composite and features but that's add an "apply button" how to do the same without button ? I didn't find the equivalent.

in attachment the lixee.js file (in txt format)
lixee.js.txt

@Koenkk
Copy link
Owner

Koenkk commented Feb 10, 2025

I tried to enhance some exposes datas with composite and features but that's add an "apply button" how to do the same without button ? I didn't find the equivalent.

Composite always has an apply button (since all attributes need to be submitted at once).

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

Successfully merging this pull request may close these issues.

2 participants