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

Eurotronic SPZB0001u Not recognize #1338

Closed
benoitfl opened this issue Nov 4, 2020 · 20 comments
Closed

Eurotronic SPZB0001u Not recognize #1338

benoitfl opened this issue Nov 4, 2020 · 20 comments
Labels
User needs help Extra attention is needed

Comments

@benoitfl
Copy link

benoitfl commented Nov 4, 2020

Hello,
All went well so far with the plugin, but at the moment where it come to the SPZB0001u, the plugin won't recognize it.
I'm wondering, is it because of the name that it return is SPZB0001u and not SPZB0001 as declare in the plugin ?
So far I can't get it to command the valve.
Thanks for the help !

@benoitfl
Copy link
Author

benoitfl commented Nov 5, 2020

Well looking into adding devices and found that the log said that the json file is not found :
[2020-11-05 11:44:31][ERROR] : getJSonConfigFilebyDevices: filename not found: /var/www/html/plugins/Abeille/resources/AbeilleDeamon/lib/../../../core/config/devices/SPZB0001/SPZB0001.json will send back default template.

The point is that the name of the valve keep changing ! If i paired it 3 times i'll SPZB0001 z,i,l,o ...

I don't know what to do ...

@KiwiHC16
Copy link
Owner

KiwiHC16 commented Nov 7, 2020

Hi,
Could you share the specification of this product ? Is it : https://github.com/KiwiHC16/Abeille/blob/master/core/config/devices/SPZB0001/doc/2019_03_18_12_05_39.pdf

From what I see the name include a space /SPZB0001 [space]/SPZB0001[space].json which is not normal as normaly Abeille remove such caracter so strange.

Could you check that you have the file
/var/www/html/plugins/Abeille/resources/AbeilleDeamon/lib/../../../core/config/devices/SPZB0001/SPZB0001.json
in your system ?

@KiwiHC16 KiwiHC16 added the User needs help Extra attention is needed label Nov 7, 2020
@benoitfl
Copy link
Author

benoitfl commented Nov 7, 2020

Hi, I have core/config/devices/SPZB0001/SPZB0001.json
containing :
{
"SPZB0001": {
"nameJeedom": "Eurotronic Spirit",
"timeout": "60",
"Categorie": {
"automatism": "1"
},
"configuration": {
"uniqId": "5c07c7822067c",
"icone": "SPZB0001",
"battery_type": "2x1,5V LR6 AA",
"mainEP": "#EP#"
},
"Commandes": {
"include1": "nom",
"include2": "societe",
"include3": "SW",
"include21": "getManufacturerName",
"include22": "getModelIdentifier",
"include23": "getSWBuild",
"include24": "Identify",
"include25 2 2 2": "spiritTemperatureConsigne",
"include25 2 2": "spiritTemperatureConsigneGet",
"include25 2": "spiritTemperatureConsigneSet",
"include25 2 2 2 2": "spiritTemperature",
"include25 2 2 3": "spiritTemperatureGet",
"include25 2 2 2 2 3": "spiritTemperatureBindShortToZigate",
"include25 2 2 2 2 2": "spiritTemperatureSetReport",
"include25 2 2 3 2 2": "spiritPiHeatingDemand",
"include25 2 2 3 2": "spiritPiHeatingDemandGet",
"include25 2 2 3 2 2 2": "spiritValvePosition",
"include25 2 2 3 2 2 2 2": "spiritValvePositionGet",
"include25 2 2 3 2 2 2 2 2": "spiritValvePositionSet",
"include25 2 2 3 2 2 3": "spiritTrvMode",
"include25 2 2 3 2 3": "spiritTrvModeGet",
"include25 2 2 3 2 3 2": "spiritTrvModeSet",
"include25 2 2 3 2 3 2 2": "spiritTrvModeSetManu",
"include25 2 2 3 2 3 2 2 2": "spiritTrvModeSetValve",
"include25 2 2 3 2 3 2 2 2 2 2 2": "spiritBatterie-Pourcent",
"include25 2 2 3 2 3 2 2 2 2": "BindShortToZigateBatterie",
"include25 2 2 3 2 3 2 2 2 2 2": "spiritSetReportBatterie",
"include25 2 2 3 2 3 2 2 2 2 2 3": "spiritHostFlags",
"include25 2 2 3 2 3 2 2 2 2 2 3 2": "spiritErrors",
"include25 2 3": "spiritHostFlagsDisplayDownSet",
"include25 2 3 2": "spiritHostFlagsDefaultSet",
"include25 2 3 2 2": "spiritHostFlagsBoostSet",
"include25 2 3 2 2 2": "spiritHostFlagsChildLockSet",
"include25 2 3 2 2 2 2": "spiritHostFlagsOffSet",
"include25 2 3 2 2 2 2 2": "spiritUnknown1",
"include25 2 3 2 2 2 2 2 2": "spiritUnknown2"
}
}
}
It's where I got lost, why would abeille not recognize the name of the device ?

@KiwiHC16
Copy link
Owner

KiwiHC16 commented Nov 8, 2020

Is it a print issue in Github or is it the real situation in your log ?
There is a space after the name.
Could you check ?

@benoitfl
Copy link
Author

benoitfl commented Nov 8, 2020

Well I had a space in the name, but in the log it would not appear as a space. It was replaced by a letter (u,z,o,...) or "]".
this morning I got this :
getJSonConfigFilebyDevices: filename not found: /var/www/html/plugins/Abeille/resources/AbeilleDeamon/lib/../../../core/config/devices/SPZB0001W/SPZB0001W.json will send back default template.

Then the name in Jeedom appear as SPZB0001T ...

@KiwiHC16
Copy link
Owner

KiwiHC16 commented Nov 9, 2020

So looks like one lettre to many is used.
Which version of Abeille are you using ?

@KiwiHC16
Copy link
Owner

KiwiHC16 commented Nov 9, 2020

You will find the information in the configuratioon page:
Capture d’écran 2020-11-09 à 08 25 56

And which firmware Zigate are you using ?

@benoitfl
Copy link
Author

benoitfl commented Nov 9, 2020

Stable du 30 septembre 2020 = Stable du 04.09.2020 avec Hue correction #1251
I Just installed the latest from the market.

@KiwiHC16
Copy link
Owner

KiwiHC16 commented Nov 9, 2020

I remember doing a correction on this subject few weeks ago.
If I propose a beta, would you be able to test ?

@benoitfl
Copy link
Author

benoitfl commented Nov 9, 2020

Yep ! Easy for me this week till this Monday for test.
Thanks for the help I'll go ahead on the "cagnotte"

@KiwiHC16
Copy link
Owner

KiwiHC16 commented Nov 9, 2020

Are you familiar with github ? with php ?

@benoitfl
Copy link
Author

benoitfl commented Nov 9, 2020

Github not much, PHP I use it at my job for website integration with Databeses, I should be fine.

@KiwiHC16
Copy link
Owner

KiwiHC16 commented Nov 9, 2020

Ok then I will generate a beta and then if needed will see to adapt some php if needed.

@KiwiHC16
Copy link
Owner

KiwiHC16 commented Nov 9, 2020

Which zigate firmware are you using ?

@benoitfl
Copy link
Author

benoitfl commented Nov 9, 2020

003 here

@KiwiHC16
Copy link
Owner

KiwiHC16 commented Nov 9, 2020

3.1b ? 3.1c ? 3.1d ?

@benoitfl
Copy link
Author

benoitfl commented Nov 9, 2020

3.1d
looking at Abeille.class.php line 1214 :
$trimmedValue = str_replace(' ', '', $trimmedValue);
this as far as i know, would efectively replace space by no caractere.

Few lines above, Abeille put stuff into log "info".
the output of this line was :
[2020-11-09 12:10:20][INFO] : Recherche objet: SPZB0001T dans les objets connus
[2020-11-09 12:10:20][DEBUG] : value:SPZB0001T / trimmed value: ->SPZB0001T<-

Seems like the device does not sent the space but a specific caractere et the end.
I'll try few times see if i always get the "T" at the end.

[2020-11-09 12:36:52][INFO] : Recherche objet: SPZB0001Z dans les objets connus
[2020-11-09 12:36:52][DEBUG] : value:SPZB0001Z / trimmed value: ->SPZB0001Z<-

@KiwiHC16
Copy link
Owner

KiwiHC16 commented Nov 9, 2020

AbeilleParser read one char too many. I'm nearly 100% sure that the issue is corrected in last versions.
I have created a beta-dev version which is now on all my system.
No crash up to now.
I'll wait few hours and then generate a beta version.

@benoitfl
Copy link
Author

benoitfl commented Nov 9, 2020

@KiwiHC16 Ok ! sounds good, it happened as well on the legrand Shutter switch with neutral], the caracter at the end is also here...
Thanks for the support

@benoitfl
Copy link
Author

Problem solved with Beta 13/11/2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User needs help Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants