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

Switches does randomly set on/off #6

Open
marino1982 opened this issue Sep 24, 2024 · 15 comments
Open

Switches does randomly set on/off #6

marino1982 opened this issue Sep 24, 2024 · 15 comments

Comments

@marino1982
Copy link

Switches seems to randomly get on/off
Can not reproduce it exactly

@Xenomes
Copy link
Owner

Xenomes commented Sep 24, 2024

Is it only in Domoticz, or also on the device itself? Which device is it?

@marino1982
Copy link
Author

marino1982 commented Sep 24, 2024 via email

@Xenomes
Copy link
Owner

Xenomes commented Sep 24, 2024

Okay, i will setup a test to see what is going on.

@marino1982
Copy link
Author

marino1982 commented Sep 24, 2024 via email

@Xenomes
Copy link
Owner

Xenomes commented Sep 24, 2024

That’s not good... I’ll keep you updated on the process. Did this happen with the previous version?

@Xenomes
Copy link
Owner

Xenomes commented Sep 25, 2024

Found the issue, in the new scaling, type detection was incorrect. A True or False was converted to 1 and 0. 😅
Fixed in the latest push.

@marino1982
Copy link
Author

marino1982 commented Sep 25, 2024 via email

@marino1982
Copy link
Author

marino1982 commented Sep 29, 2024 via email

@Xenomes
Copy link
Owner

Xenomes commented Sep 29, 2024

Dat is vervelend, ik kan het probleem helaas niet nagebootst. Mijn testapparaat staat al twee dagen uit en is niet vanzelf aan gegaan.

That's unfortunate, I can't replicate the issue. My test device has been off for two days and hasn't turned on by itself.

@Xenomes
Copy link
Owner

Xenomes commented Sep 30, 2024

Heb een nieuwe versie online gezet, kwam er achter dat de DSP some niet in een run gevonden werden, met een extra detectie in test script nog geen misser gehad.

I uploaded a new version online, discovered that the DSPs were not found in a run, but with an additional detection in the test script, haven't had any misses so far.

@marino1982
Copy link
Author

marino1982 commented Oct 4, 2024 via email

@Xenomes
Copy link
Owner

Xenomes commented Oct 4, 2024

Heb je een indicatie welk apparaat het is? Op regel 355 wordt de schaalfactor aangeroepen. Ik heb een detectie ingebouwd die ervoor zorgt dat alleen float, int en numerieke strings worden toegelaten in de berekening.

Do you have any indication of which device it is? On line 355, the scaling function is called. I've implemented a check that only allows floats, integers, and numeric strings in the calculation.

@Xenomes
Copy link
Owner

Xenomes commented Oct 4, 2024

Gevonden! De JSON zonder schaal veroorzaakte een fout, opgelost in versie 0.5a.

Found it! The JSON without scale caused an error, fixed in version 0.5a.

@marino1982
Copy link
Author

marino1982 commented Oct 6, 2024 via email

@Xenomes
Copy link
Owner

Xenomes commented Oct 6, 2024

Dat is goed, dit zijn debugmeldingen voor mappings die geen apparaat krijgen in Domoticz. Als je de debugmodus uitschakelt bij de plugin, verdwijnen ze.

That's fine, these are debug messages for mappings that don't receive a device in Domoticz. If you turn off debug mode in the plugin, they will disappear.

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

2 participants