Hello-
I am attempting to make use of the LED indicators in a Zooz ZEN32 5-button scene controller.
I have been able successfully write config parameters to the device using the following call:
self.call_service("zwave_js/set_config_parameter", device_id='eeddd26cbccf9afc7550103dd7c37b41', parameter=2 , value=3)
However, when I attempt to call use the service zwave_js/invoke_cc_api
(to get additional functionality) I get the following log entries in AppDaemon:
2024-03-24 05:53:31.815401 WARNING HASS: Code: 400, error: 400: Bad Request
2024-03-24 05:53:31.815172 WARNING HASS: Error calling Home Assistant service default/zwave_js/invoke_cc_api
Full code below:
import hassapi as hass
class HelloWorld(hass.Hass):
def initialize(self):
self.log("Attempting to call service zwave_js/invoke_cc_api")
## Test ZEN32 LED indications:
self.call_service('zwave_js/invoke_cc_api', device_id='eeddd26cbccf9afc7550103dd7c37b41', command_class='135' , method_name='set', parameters={'indicatorId': 69, 'propertyId': 2, 'value': False})
Full Log:
2024-03-24 05:56:28.767619 WARNING HASS: Code: 400, error: 400: Bad Request
2024-03-24 05:56:28.767375 WARNING HASS: Error calling Home Assistant service default/zwave_js/invoke_cc_api
2024-03-24 05:56:28.763875 INFO hello_world: Attempting to call service zwave_js/invoke_cc_api
2024-03-24 05:56:28.761334 INFO AppDaemon: Calling initialize() for hello_world
2024-03-24 05:56:28.759537 INFO AppDaemon: Loading app hello_world using class HelloWorld from module hello
I am able to successfully accomplish what I want to do from within HA’s Developer Tools, using the following YAML service call:
service: zwave_js.invoke_cc_api
data:
command_class: '135'
method_name: set
parameters:
- - indicatorId: 0x45
propertyId: 2
value: false
target:
device_id: eeddd26cbccf9afc7550103dd7c37b41
Has anybody else seen something like this, or have an idea where I may be going wrong?
Some additional things I have tried include: restarting AppDaemon, passing the “parameters” as both strings and Booleans/Integers as well as passing the “command_class” as both a string and an integer. All attempts have resulted in WARNING HASS: Code: 400, error: 400: Bad Request
Thanks,
Adam