Faster transition
This commit is contained in:
+6
-6
@@ -91,15 +91,15 @@ buttonSpec = describe "bedroomButtonController" $ do
|
||||
|
||||
it "Masse single click turns on his nightstand scene (lowest)" $
|
||||
concat (services (runHASS bedroomButtonController [masseButton "1_short_release"]))
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_masse" (Just $ object ["transition" .= (5 :: Int)])]
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_masse" (Just $ object ["transition" .= (1 :: Int)])]
|
||||
|
||||
it "Masse double click turns on the middle scene" $
|
||||
concat (services (runHASS bedroomButtonController [masseButton "1_double_press"]))
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_keski" (Just $ object ["transition" .= (5 :: Int)])]
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_keski" (Just $ object ["transition" .= (1 :: Int)])]
|
||||
|
||||
it "Masse long click turns on the bright scene" $
|
||||
concat (services (runHASS bedroomButtonController [masseButton "1_long_press"]))
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_kirkas" (Just $ object ["transition" .= (5 :: Int)])]
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_kirkas" (Just $ object ["transition" .= (1 :: Int)])]
|
||||
|
||||
it "Masse off click turns the bedroom lights off" $
|
||||
concat (services (runHASS bedroomButtonController [masseButton "2_short_release"]))
|
||||
@@ -107,15 +107,15 @@ buttonSpec = describe "bedroomButtonController" $ do
|
||||
|
||||
it "Enishen single click turns on her nightstand scene (lowest)" $
|
||||
concat (services (runHASS bedroomButtonController [enishenButton "1_short_release"]))
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_jemina" (Just $ object ["transition" .= (5 :: Int)])]
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_jemina" (Just $ object ["transition" .= (1 :: Int)])]
|
||||
|
||||
it "Enishen double click turns on the middle scene" $
|
||||
concat (services (runHASS bedroomButtonController [enishenButton "1_double_press"]))
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_keski" (Just $ object ["transition" .= (5 :: Int)])]
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_keski" (Just $ object ["transition" .= (1 :: Int)])]
|
||||
|
||||
it "Enishen long click turns on the bright scene" $
|
||||
concat (services (runHASS bedroomButtonController [enishenButton "1_long_press"]))
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_kirkas" (Just $ object ["transition" .= (5 :: Int)])]
|
||||
`shouldContain` [activateSceneWith "scene.makuuhuone_kirkas" (Just $ object ["transition" .= (1 :: Int)])]
|
||||
|
||||
it "Enishen off click turns the bedroom lights off" $
|
||||
concat (services (runHASS bedroomButtonController [enishenButton "2_short_release"]))
|
||||
|
||||
Reference in New Issue
Block a user