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

Not all attributes published when spaces are contained in attribute values #43

Open
Freefall90 opened this issue Feb 20, 2022 · 1 comment

Comments

@Freefall90
Copy link

I've got a Quirky smart outlet (Zigbee) that reports the following from aprontest:

[root@flex-dvt dev]# aprontest -l -m 1
Gang ID: 0x7cf1c22d
Manufacturer ID: 0xbbaa, Product Number: 0x8a3a
Device has 22 attributes...
outlet1
   ATTRIBUTE |                         DESCRIPTION |   TYPE | MODE |                              GET |                              SET
       61440 |                          ZCLVersion |  UINT8 |    R |                                1 |                                 
       61441 |                  ApplicationVersion |  UINT8 |    R |                                7 |                                 
       61442 |                        StackVersion |  UINT8 |    R |                                2 |                                 
       61443 |                           HWVersion |  UINT8 |    R |                                1 |                                 
       61444 |                    ManufacturerName | STRING |    R |                           Quirky |                                 
       61445 |                     ModelIdentifier | STRING |    R |                   ZHA Smart Plug |                                 
       61446 |                            DateCode | STRING |    R |                         20141217 |                                 
       61447 |                         PowerSource |  UINT8 |    R |                                1 |                                 
           1 |                              On_Off | STRING |  R/W |                               ON |                              OFF
           4 |                         NameSupport |  UINT8 |    R |                              128 |                                 
  4230017024 |                                Mode |  UINT8 |  R/W |                                  |                                 
  4230017025 |                 LED Fast Flash Rate |  UINT8 |  R/W |                                  |                                 
  4230017026 |                 LED Slow Flash Rate |  UINT8 |  R/W |                                  |                                 
  4230017027 |                LED Error Flash Rate |  UINT8 |  R/W |                                  |                                 
   117633024 |        ZB_CurrentSummationDelivered | UINT64 |    R |                          6139585 |                                 
   117633536 |                           ZB_Status |  UINT8 |    R |                                0 |                                 
   117633792 |                    ZB_UnitOfMeasure |  UINT8 |    R |                                0 |                                 
   117633793 |                       ZB_Multiplier | UINT32 |    R |                                1 |                                 
   117633794 |                          ZB_Divisor | UINT32 |    R |                          3600000 |                                 
   117633795 |              ZB_SummationFormatting |  UINT8 |    R |                              206 |                                 
   117633798 |               ZB_MeteringDeviceType |  UINT8 |    R |                                0 |                                 
     1699842 |               ZB_CurrentFileVersion | UINT32 |    R |                         16908295 |

However, it only reports the following on the Mqtt topic home/wink/1/status
{"ApplicationVersion":7,"HWVersion":1,"ManufacturerName":"Quirky","StackVersion":2,"ZCLVersion":1}

Publishing anything to the home/wink/1/1/set results in what appears to be a no-op.

@Freefall90
Copy link
Author

Freefall90 commented Feb 20, 2022

I think I've identified the issue (although, my data points are admittedly limited). It seems that as soon as there is a string attribute whose value contains a space, the mqtt daemon decides it's had enough and stops processing attributes.

ETA: Confirmed my suspicion. For now I'm editing the sqlite DB on the Wink directly to remove the spaces.

@Freefall90 Freefall90 changed the title Quirky (Zigbee) outlet not working as expected Not all attributes published when spaces are contained in attribute values Feb 20, 2022
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

1 participant