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

Color Switch Eventhandler missing? #7

Open
TheMasterofBlubb opened this issue May 30, 2023 · 1 comment
Open

Color Switch Eventhandler missing? #7

TheMasterofBlubb opened this issue May 30, 2023 · 1 comment
Assignees

Comments

@TheMasterofBlubb
Copy link

More info:

  • Z-Uno bootloader version: 3.0.10
  • Security: S2
  • Frequency: EU
  • Device included: yes
  • Device included securely by the controller: yes?
  • Controller: RaZberry 700

Connected peripherals:
None currrently

Code:

ZUNO_SWITCH_COLOR(SWITCH_COLOR_FLAGS_RED|SWITCH_COLOR_FLAGS_GREEN|SWITCH_COLOR_FLAGS_BLUE, getterFunction, setterFunction)

Compiler log:

         ------------------------------------------------------------------------------------
                                        Z-Uno board information
          ------------------------------------------------------------------------------------
          
          FIRMWARE
          
          	 VERSION:		03.10
          	 BUILD_SEQUENCE:	00001842
          	 BUILD_DATETIME:	2023-01-17T16:38:12(MSK)
          	 SUPPORTED_HWREV:	0704
          
          LIMITS
          
          	 CODE:	178176 Bytes
          	 RAM:	16384 Bytes
          
          HARDWARE
          
          	 CHIP_UID:	 84 2E 14 FF FE 6A 29 7C
          	 PROD_TIME:	 2021-08-18T12:18:37(MSK)
          	 PROD_SN:	 109
          	 LOCK:		 DBG_LOCKED
          
          LICENSE
          
          	 SUB_VENDOR:	0000
          	 BITMASK:	0000000000000000
          	 FEATURES:	[]
          	 CRC16:		84f9
          
          NETWORK
          
          	 HOMEID:	eff8a47d
          	 NODEID:	14
          
          SECURITY
            ....

          DEVICE CFG
          	Z-Wave Region:EU
          	Security mode:01 Freqi:00 maxTxDb:2d adjTxDb:00 LRTxDb:00 extra_flags:04

Hi, i got a small issue, that im either to blindd to find the right "button" for or its some sort of bug or missing feature.

When using the line mentioned above in a sketch and checking the available endpoints on the Razberry controller, i can see that on the ZWChannel of the Color Switch there also is a Multilevel switch which in home assistant is linked to the brightness. In the Debug i can see that the command arrives in the channel (not ZWChannel) of the Color Switch (which is totally fine for me), but there is no way to actually process that packet in my sketch.

I also tried the "dynamic" way, but ended up having the issue described here https://forum.z-wave.me/viewtopic.php?f=3427&t=35761&p=97798&hilit=multichannel#p97798 , the gist is that if you try to dynamically make channels, the Z-Uno 2 stops responding to interviews (no other debug output then what is described in the forum post, HA with Zwave JS event log can read some hardware basics but fails when interviewing for functionality AND configuration, or basically only FW version etc is read).

What i want to achievve in my project is more or less just a LED Controller that is integrated into Home Assistant.

Help is much appreciated

@TheMasterofBlubb
Copy link
Author

TheMasterofBlubb commented May 30, 2023

08:53:31.367 -> ***BLOCK SLEEP!
08:53:31.367 -> Tread running:1
08:53:31.367 -> 1086031INCOMING   SRC_ID:1.0 DST_ID:8192.0 KEY:1 OPTS:0 DATA:60 0D 00 07 6C 01 A6 04 26 01
08:53:31.367 -> 46 FF 
08:53:31.367 -> 1086042UNPACKED:   SRC_ID:1.0 DST_ID:8192.7 KEY:1 OPTS:0 DATA:6C 01 A6 04 26 01 46 FF 
08:53:31.367 -> 1086052SV UNPACK:   SRC_ID:1.0 DST_ID:8192.7 KEY:1 OPTS:0 DATA:26 01 46 FF 
08:53:31.413 -> N_CH=9
08:53:31.413 -> CHANNEL WAS  FOUND:6
08:53:31.413 -> 
08:53:31.413 ->  >>> (1086064) ENQUEUED PACKAGE:  SRC_ID:14.7 DST_ID:1.0 KEY:1 OPTS:25 DATA:6C 02 26 FF 00 
08:53:31.413 -> CommandQueue Size:1
08:53:31.413 -> *** QCH:0
08:53:31.413 -> 
08:53:31.413 ->  >>> (1086077) OUTGOING PACKAGE:  SRC_ID:14.7 DST_ID:1.0 KEY:1 OPTS:25 DATA:6C 02 26 FF 00 
08:53:31.460 -> *** PROCESSED:1
08:53:31.460 -> *** CLEANUP:0

This is my debug output of when the packet arrives. 26 01 46 FF<- 26 is a Multileel Switch related command with the 0x46 beeing the set brightness.

8:55:27.116 -> ***BLOCK SLEEP!
08:55:27.116 -> Tread running:1
08:55:27.116 -> 1200608INCOMING   SRC_ID:1.0 DST_ID:8192.0 KEY:1 OPTS:0 DATA:60 0D 00 07 6C 01 A7 0A 33 05
08:55:27.116 -> 03 02 FF 03 00 04 00 FF 
08:55:27.116 -> 1200622UNPACKED:   SRC_ID:1.0 DST_ID:8192.7 KEY:1 OPTS:0 DATA:6C 01 A7 0A 33 05 03 02 FF 03
08:55:27.116 -> 00 04 00 FF 
08:55:27.162 -> 1200634SV UNPACK:   SRC_ID:1.0 DST_ID:8192.7 KEY:1 OPTS:0 DATA:33 05 03 02 FF 03 00 04 00 FF
08:55:27.162 -> 
08:55:27.162 -> N_CH=9
08:55:27.162 -> CHANNEL WAS  FOUND:6
08:55:27.162 -> Set RGB Ch# 0 Color RED New Value = 255
08:55:27.162 -> EEPROM.update(00000007, ff)
08:55:27.162 -> EEPROM.update(00000008, 00)
08:55:27.162 -> EEPROM.update(00000009, 00)
08:55:27.162 -> Set RGB Ch# 0 Color GREEN New Value = 0
08:55:27.162 -> EEPROM.update(00000007, ff)
08:55:27.162 -> EEPROM.update(00000008, 00)
08:55:27.162 -> EEPROM.update(00000009, 00)
08:55:27.209 -> Set RGB Ch# 0 Color BLUE New Value = 0
08:55:27.209 -> EEPROM.update(00000007, ff)
08:55:27.209 -> EEPROM.update(00000008, 00)
08:55:27.209 -> EEPROM.update(00000009, 00)

(Ignore all the rest of output) This is from when i sent a color comand from the same interface (doesnt matter if from the HA UI or froom ZWave JS Node details). Notably this arrives SOMEWHERE, but setting the brightness doesnt trigger any handler inside my sketch

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