I don’t think so. I’ve literally just created an app with the lofty goal of getting LightwaveRF working on v 2.0 and added a 433 mhz driver using the CLI, then manually added the signals section to app.json.
As soon as I run it it seems to re-generate app.json using the driver.compose.json section found in the /drivers folder. The signals section just gets removed.
If you added an RF driver using the CLI, two plugins are added (rf and compose, see the file .homeyplugins.js that should exist in your project folder).
I think that the compose system assumes that you add the relevant signal configuration for your device to the drivers/DRIVERNAME/driver.compose.json file, not directly in app.json.
Thanks, that’s useful to know. I thought that, but the driver.compose.json just adds one json object that gets added into the drivers array. And would it make sense to register the signal in every driver file?
I’ve never used homey-rfdriver myself, and the documentation seems to be lacking a rather important part, namely where the signal definition should actually be added.
Indeed, if you follow the getting started guide here it tells use to use the CLI and then in the signals section of the same guide it tells you to add directly in to app.json.