@@ -1365,7 +1365,7 @@ export interface CommandsLevelCtrl {
13651365export function commandsLevelCtrl ( args : CommandsLevelCtrl = { } ) : ModernExtend {
13661366 const {
13671367 commands = [
1368- "brightness_move_to_level" ,
1368+ "brightness_move_to_level" , // with on off "parameter" for all
13691369 "brightness_move_up" ,
13701370 "brightness_move_down" ,
13711371 "brightness_step_up" ,
@@ -1383,10 +1383,12 @@ export function commandsLevelCtrl(args: CommandsLevelCtrl = {}): ModernExtend {
13831383
13841384 if ( commands . includes ( "brightness_move_to_level" ) ) {
13851385 exposes . push ( e . action_level ( ) ) ;
1386+ exposes . push ( e . action_transition_time ( ) ) ;
13861387 }
13871388
13881389 if ( commands . includes ( "brightness_step_up" ) || commands . includes ( "brightness_step_down" ) ) {
13891390 exposes . push ( e . action_step_size ( ) ) ;
1391+ exposes . push ( e . action_transition_time ( ) ) ;
13901392 }
13911393
13921394 if ( commands . includes ( "brightness_move_up" ) || commands . includes ( "brightness_move_down" ) ) {
@@ -1449,6 +1451,7 @@ export function commandsColorCtrl(args: CommandsColorCtrl = {}): ModernExtend {
14491451 "move_to_saturation" ,
14501452 "move_to_hue" ,
14511453 "stop_move_step" ,
1454+ // TODO: "move_to_color", "move_to_color_temp", "color_step", more...
14521455 ] ,
14531456 bind = true ,
14541457 endpointNames = undefined ,
@@ -1459,6 +1462,17 @@ export function commandsColorCtrl(args: CommandsColorCtrl = {}): ModernExtend {
14591462 }
14601463 const exposes : Expose [ ] = [ e . action ( actions ) ] ;
14611464
1465+ // TODO: e.action_hue, e.action_enhanced_hue, e.action_direction, e.action_saturation,
1466+ // e.action_color, e.action_stepx, e.action_stepy, e.action_colortemp, e.action_minimum, e.action_maximum etc.
1467+ if (
1468+ commands . includes ( "enhanced_move_to_hue_and_saturation" ) ||
1469+ commands . includes ( "move_to_hue_and_saturation" ) ||
1470+ commands . includes ( "move_to_saturation" ) ||
1471+ commands . includes ( "move_to_hue" )
1472+ ) {
1473+ exposes . push ( e . action_transition_time ( ) ) ;
1474+ }
1475+
14621476 if (
14631477 commands . includes ( "color_temperature_step_up" ) ||
14641478 commands . includes ( "color_temperature_step_down" ) ||
@@ -1468,6 +1482,7 @@ export function commandsColorCtrl(args: CommandsColorCtrl = {}): ModernExtend {
14681482 commands . includes ( "color_saturation_step_down" )
14691483 ) {
14701484 exposes . push ( e . action_step_size ( ) ) ;
1485+ exposes . push ( e . action_transition_time ( ) ) ;
14711486 }
14721487
14731488 if (
0 commit comments