In this matter file, a default value of 0 is set for the onOff attribute, ensuring that the LED remains off upon initialization. This PR aligns the application's behavior with the default setting.
The first chip-tool onoff togglecommand can turn the LED on. Here is the log when the toggle command sent:
$ journalctl -f | grep matter-pi-gpio-commander
CHIP:DMG: AccessControl: allowed
CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0002
CHIP:ZCL: Toggle ep1 on/off from state 0 to 1
The first chip-tool onoff on command can turn the LED on. Here is the log when the on command sent:
$ journalctl -f | grep matter-pi-gpio-commander
CHIP:DMG: AccessControl: allowed
CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001
CHIP:ZCL: Toggle ep1 on/off from state 0 to 1
This PR will resolve https://github.com/canonical/matter-pi-gpio-commander/issues/14.
In this matter file, a default value of 0 is set for the
onOff
attribute, ensuring that the LED remains off upon initialization. This PR aligns the application's behavior with the default setting.Testing
Install and setup matter-pigpio-commander:
Commission and control via chip-tool:
The first
chip-tool onoff toggle
command can turn the LED on. Here is the log when the toggle command sent:The first
chip-tool onoff on
command can turn the LED on. Here is the log when the on command sent: