Triggers instead of full state events
This commit is contained in:
+5
-3
@@ -32,9 +32,11 @@ spec = pure ()
|
||||
-- doorEvent :: Text -> Value
|
||||
-- doorEvent state = object
|
||||
-- [ "event" .= object
|
||||
-- [ "data" .= object
|
||||
-- [ "entity_id" .= ("binary_sensor.makuuhuone_ovi_contact" :: Text)
|
||||
-- , "new_state" .= object ["state" .= state]
|
||||
-- [ "variables" .= object
|
||||
-- [ "trigger" .= object
|
||||
-- [ "entity_id" .= ("binary_sensor.makuuhuone_ovi_contact" :: Text)
|
||||
-- , "to_state" .= object ["state" .= state]
|
||||
-- ]
|
||||
-- ]
|
||||
-- ]
|
||||
-- ]
|
||||
|
||||
Reference in New Issue
Block a user