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

WebThings Gateway 1.2 Alpha testing feedback #3125

Open
IJCJI-IAN opened this issue Mar 6, 2024 · 6 comments
Open

WebThings Gateway 1.2 Alpha testing feedback #3125

IJCJI-IAN opened this issue Mar 6, 2024 · 6 comments

Comments

@IJCJI-IAN
Copy link

As a first attempt, I updated my current 1.1 gateway to 1.2.0-alpha.1 which was successful. Following the restart, my previously configured "things" were not visible (known issue). However, they appeared on a subsequent full reboot. However, no attributes are displayed. no actions are available, rules are not visible, and logs are not displayed. Removing things appears to work (they disappear) but do not appear to be correctly flushed from the configuration as all Zigbee devices are immediately ready to be re-added, even though they are offline (powered down in some cases) and were not put back into pairing status. Deleting an IKEA Tradfri smart plug caused it to turn on! The good news is that the "Systeminfo" and "Power settings" add-ons appear to be working. "Square theme" was also active but does not have much impact on functionality. I tested creating a group and moving things (temperature monitors) into the new group, deleted the group and the things were back in general collection. No testing done with Z-Wave at this stage. Will flash a clean install to a new SD card and test again adding things one by one.

@IJCJI-IAN
Copy link
Author

More feedback - then going back to version 1.1 ...
Clean SD card install, first boot, connect to gateway, reclaim my domain (success).
Added "systeminfo", "power settings", & "square theme".
Added new things - systeminfo - most things only allowed one attribute to be added, e.g. CPU only "Temperature" was available.. Some things showed multiple attributes when selected.
A browser refresh was required each time the "things" page was reloaded. Info was junk otherwise, but all things displayed after a refresh. I removed the CPU thing (success) but could not add it again without going into the add-in configuration, disabling and re-enabling the CPU thing.
Tried to add a Zigbee temperature monitor after putting it into pairing mode - success, but no temperature displayed on the Things page. The other parameters (humidity, pressure) were not available as options to select or displayed.
Tried to add a Zigbee motion detector after putting it into pairing mode - success, but no motion was displayed on the Things page.
Tried to add a Z-Wave bulb (recognized and added), but could not be controlled.

Looking through the log files, there are lots of warnings and errors (not terribly meaningful to me), but I did see that the temperature thing seemed to be reporting a temperature. Also, the "motion" value is being returned, just not displayed.

Logs can be provided if useful.

Ian B/geneva/switzerland

@benfrancis
Copy link
Member

Hi @IJCJI-IAN, thank you very much for doing all of this testing, it's very helpful.

Logs can be provided if useful.

Yes please! I'm not able to reproduce a lot of these bugs so logs would help a lot.

@benfrancis
Copy link
Member

However, no attributes are displayed. no actions are available, rules are not visible, and logs are not displayed.

I'm not able to reproduce this behaviour. At least with Things from the Virtual Things add-on I can see properties and actions and rules and logs are visible too.

Is there a specific add-on the devices use which are missing properties and actions?

System logs or browser logs might be helpful to debug the rules and logs issues.

Removing things appears to work (they disappear) but do not appear to be correctly flushed from the configuration as all Zigbee devices are immediately ready to be re-added, even though they are offline (powered down in some cases) and were not put back into pairing status.

This is actually not unusual. Unless the device has a specific unpairing procedure that you follow when removing it, Zigbee devices are often available to re-add to the dashboard without being re-paired, even if powered off.

Deleting an IKEA Tradfri smart plug caused it to turn on!

That does sound unusual! It may be the default behaviour of the smart plug when unpaired, but I don't have that model to test with.

The good news is that the "Systeminfo" and "Power settings" add-ons appear to be working.

👍

"Square theme" was also active but does not have much impact on functionality.

Does it render correctly? The CSS may have been broken by the new groups feature.

I tested creating a group and moving things (temperature monitors) into the new group, deleted the group and the things were back in general collection. No testing done with Z-Wave at this stage. Will flash a clean install to a new SD card and test again adding things one by one.

👍

@benfrancis
Copy link
Member

Added new things - systeminfo - most things only allowed one attribute to be added, e.g. CPU only "Temperature" was available..

Which version of Raspberry Pi are you using? On Raspberry Pi 4 I can see multiple properties for the CPU Thing added from the Systeminfo add-on.

Screenshot 2024-03-07 at 10 24 32

Info was junk otherwise, but all things displayed after a refresh.

I suspect this is all related to #3122 because it isn't listening for property changes correctly, but it would be good to re-test this with the next pre-release when it's available (that bug is now fixed on the master branch).

I removed the CPU thing (success) but could not add it again without going into the add-in configuration, disabling and re-enabling the CPU thing.

I can reproduce this, but I'm not sure if it's an issue with the gateway or the add-on, might be worth filing an issue on the add-on repo https://github.com/tim-hellhake/systeminfo-adapter

Tried to add a Zigbee temperature monitor after putting it into pairing mode - success, but no temperature displayed on the Things page. The other parameters (humidity, pressure) were not available as options to select or displayed.

What model of device was this? Do you know if it worked in 1.1?

Tried to add a Zigbee motion detector after putting it into pairing mode - success, but no motion was displayed on the Things page. Tried to add a Z-Wave bulb (recognized and added), but could not be controlled.

Again, model names and whether they previously worked on 1.1 would be good to know.

Thanks again for doing all of this testing.

@benfrancis
Copy link
Member

Update: I was finally able to test with real devices and I can confirm that things are very broken! See #3126

@GHoGit
Copy link

GHoGit commented Mar 15, 2024

Test 1.2.0-alpha.1

Probably not much help in another report to further establish that the zigbee system has some problems.
However, if of use, I may contribute by verifying or reproducing observed problems or test proposed fixes.

When finally getting a sensor or two connected I note the same
- no change in graphics when sensor activated
- no expanded properties when clicking the icon

Also, type of sensor is significant. A tilt/vibration type refuses to appear despite repeated pairing attempts.

The zigbee remote mqtt reader system is in better shape, as this is what I used initially.

I have one ConBeeII and one Aeotec Zwave Stick-7.
These have been running with zigbee2MQTT and zwave-js-ui on RPIs separate from WT-gateway RPI.

To verifiy reported problems I connected these directly to WT server on RPI3+ and set forth attempting to find out how to make them work.

pi@gw-randine13:~ $ ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Mar 14 06:40 usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2677345-if00 -> ../../ttyACM0
lrwxrwxrwx 1 root root 13 Mar 13 23:37 usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_0e1147e97055ed11acba9c131d62bc44-if00-port0 -> ../../ttyUSB

After much fuzz I finally have contact with the ConBeeII.
HINT: Tick 'Deactivate automatic probing of the serial ports', otherwise the adapter code will exit.

Aeotec Stick 7 fails - NOT listed as supported, so if responding differently from Stick-5, this may be the cause of problems.
Possibly, if significant, I may not have a proper 16 byte hex key.

For putting these adapters to work I have one zwave and several zigbee sensors available for testing.

Both adapters complains at ERROR level with multiple lines like shown below. No idea whether this might have consequences for decoding and notification later.
If not, the message should probably not be at this level.
I also note that upon startup most addons complain similary, filling the log.

2024-03-13 18:05:34.089 ERROR : zwave-adapter: strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2024-03-14 09:01:43.971 ERROR : zigbee-adapter: strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)

Example - Water Leak sensor - DEBUG = 'property' - no change in graphics

2024-03-14 21:02:17.067 INFO : zigbee-adapter: zb-540f57fffe85c958-leak-sensor property: on profileId: 0104 endpoint: 1 clusterId: 0500 value: true zoneStatus: 0x5
2024-03-14 21:02:17.069 INFO : zigbee-adapter: ZigbeeProperty:asDict arguments: [Arguments] {}
2024-03-14 21:02:17.069 INFO : zigbee-adapter: ZigbeeProperty:asDict result: { name: 'on',
2024-03-14 21:02:17.070 INFO : zigbee-adapter: value: true, <<<<<<<<<<<<<< TRIGGED
2024-03-14 21:02:17.072 INFO : zigbee-adapter: title: 'Water',
2024-03-14 21:02:17.073 INFO : zigbee-adapter: type: 'boolean',
2024-03-14 21:02:17.074 INFO : zigbee-adapter: '@type': 'LeakProperty',
2024-03-14 21:02:17.076 INFO : zigbee-adapter: unit: undefined,
2024-03-14 21:02:17.077 INFO : zigbee-adapter: description: 'Water Sensor',
2024-03-14 21:02:17.078 INFO : zigbee-adapter: minimum: undefined,
2024-03-14 21:02:17.080 INFO : zigbee-adapter: maximum: undefined,
2024-03-14 21:02:17.081 INFO : zigbee-adapter: enum: undefined,
2024-03-14 21:02:17.082 INFO : zigbee-adapter: readOnly: true,
2024-03-14 21:02:17.083 INFO : zigbee-adapter: multipleOf: undefined,
2024-03-14 21:02:17.084 INFO : zigbee-adapter: forms: [],
2024-03-14 21:02:17.085 INFO : zigbee-adapter: profileId: 260,
2024-03-14 21:02:17.086 INFO : zigbee-adapter: endpoint: 1,
2024-03-14 21:02:17.087 INFO : zigbee-adapter: clusterId: 1280,
2024-03-14 21:02:17.089 INFO : zigbee-adapter: attr: '',
2024-03-14 21:02:17.090 INFO : zigbee-adapter: attrId: undefined,
2024-03-14 21:02:17.091 INFO : zigbee-adapter: fireAndForget: true,
2024-03-14 21:02:17.093 INFO : zigbee-adapter: bindNeeded: false,
2024-03-14 21:02:17.094 INFO : zigbee-adapter: configReportNeeded: false,
2024-03-14 21:02:17.095 INFO : zigbee-adapter: initialReadNeeded: false }

2024-03-14 21:02:21.374 INFO : zigbee-adapter: zb-540f57fffe85c958-leak-sensor property: on profileId: 0104 endpoint: 1 clusterId: 0500 value: false zoneStatus: 0x4
2024-03-14 21:02:21.375 INFO : zigbee-adapter: ZigbeeProperty:asDict arguments: [Arguments] {}
2024-03-14 21:02:21.377 INFO : zigbee-adapter: ZigbeeProperty:asDict result: { name: 'on',
2024-03-14 21:02:21.378 INFO : zigbee-adapter: value: false, <<<<<<<<<<<<<<< NOT TRIGGED
2024-03-14 21:02:21.379 INFO : zigbee-adapter: title: 'Water',
2024-03-14 21:02:21.380 INFO : zigbee-adapter: type: 'boolean',
2024-03-14 21:02:21.381 INFO : zigbee-adapter: '@type': 'LeakProperty',
2024-03-14 21:02:21.382 INFO : zigbee-adapter: unit: undefined,
2024-03-14 21:02:21.383 INFO : zigbee-adapter: description: 'Water Sensor',
2024-03-14 21:02:21.384 INFO : zigbee-adapter: minimum: undefined,
2024-03-14 21:02:21.385 INFO : zigbee-adapter: maximum: undefined,
2024-03-14 21:02:21.386 INFO : zigbee-adapter: enum: undefined,
2024-03-14 21:02:21.387 INFO : zigbee-adapter: readOnly: true,
2024-03-14 21:02:21.388 INFO : zigbee-adapter: multipleOf: undefined,
2024-03-14 21:02:21.389 INFO : zigbee-adapter: forms: [],
2024-03-14 21:02:21.390 INFO : zigbee-adapter: profileId: 260,
2024-03-14 21:02:21.390 INFO : zigbee-adapter: endpoint: 1,
2024-03-14 21:02:21.391 INFO : zigbee-adapter: clusterId: 1280,
2024-03-14 21:02:21.392 INFO : zigbee-adapter: attr: '',
2024-03-14 21:02:21.392 INFO : zigbee-adapter: attrId: undefined,
2024-03-14 21:02:21.393 INFO : zigbee-adapter: fireAndForget: true,
2024-03-14 21:02:21.394 INFO : zigbee-adapter: bindNeeded: false,
2024-03-14 21:02:21.395 INFO : zigbee-adapter: configReportNeeded: false,
2024-03-14 21:02:21.396 INFO : zigbee-adapter: initialReadNeeded: false }

// GHo

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

3 participants