Triggers instead of full state events
This commit is contained in:
1 parent
771d702abd
commit
2730657952
11 files changed
+180
-66
No files matched your search
+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