const Homey = require('homey');
class App extends Homey.App {
const myAnimation = await this.homey.ledring.createAnimation({
fps: 1, // real frames per second
tfps: 60, // target frames per second. this means that every frame will be interpolated 60 times
rpm: 0, // rotations per minute
priority: "INFORMATIVE", // or FEEDBACK, or CRITICAL
duration: 3000, // duration in ms, or keep empty for infinite
// register the animation with Homey
// The animation has started playing
// The animation has stopped playing
await myAnimation.start();