Replies: 1 comment 4 replies
-
New traits/device types need to be first supported by the nora service as they are validated against the schema to increase security (here's a list with the common stuff between the node-red client and the service: https://github.com/andrei-tatar/nora-firebase-common/blob/master/src/device.ts). The service already supports defining any combination of traits/device types/attributes/etc. (from the supported list). It would be nice to have a "device" node in the node-red plugin where you can combine all of these but the hardest part is the node-red html file where you define the interface for such a node. It would be a multi thousand line monster... Hard to write and maintain. There are some nodes that do support multiple device types (open/close, media) and only the specific traits but in general I find the specific nodes easier to use for > 90% of the cases. There's always an edge case where someone has a light with a fan and a camera built in... That being said, contributions are welcomed. So if you do want to add a device with customizable device type/traits/configuration per trait, just submit a PR. |
Beta Was this translation helpful? Give feedback.
-
The Smart Home API already splits up devices and traits, where-as it looks like Smart NORA devices have (mostly) hard-coded traits. It would be nice if it were possible to somehow split the traits out of the device definitions, and allow the device config to specify what the traits were (when configuring the device).
It would probably be quite a significant refactoring, but would also make it much simpler (hopefully near zero effort) to add new traits to devices.
Beta Was this translation helpful? Give feedback.
All reactions