Add second remote
This commit is contained in:
parent
48c58b610c
commit
8cde891ba2
8 changed files with 51 additions and 11 deletions
|
|
@ -11,7 +11,10 @@ type BedroomControllingRemoteInteraction =
|
|||
| RemotePressedOffButton
|
||||
| RemotePressedLeftButton
|
||||
|
||||
type LivingRoomControllingRemoteAction = | RemotePressedRightButton
|
||||
type LivingRoomControllingRemoteAction =
|
||||
| RemotePressedRightButton
|
||||
| LivingRoomRemotePressedOnButton
|
||||
| LivingRoomRemotePressedOffButton
|
||||
|
||||
type HumanInteraction =
|
||||
| LightPoweredOn of Light
|
||||
|
|
@ -145,6 +148,16 @@ type FakeHome() =
|
|||
Payload = @"{ ""action"": ""arrow_right_click"" }" }
|
||||
|> ReceivedZigbeeEvent
|
||||
|> onEventPublished.Trigger
|
||||
| LivingRoomControllingRemoteInteraction LivingRoomRemotePressedOnButton ->
|
||||
{ Topic = $"zigbee2mqtt/{livingRoomRemoteControlFriendlyName.Get}"
|
||||
Payload = @"{ ""action"": ""on"" }" }
|
||||
|> ReceivedZigbeeEvent
|
||||
|> onEventPublished.Trigger
|
||||
| LivingRoomControllingRemoteInteraction LivingRoomRemotePressedOffButton ->
|
||||
{ Topic = $"zigbee2mqtt/{livingRoomRemoteControlFriendlyName.Get}"
|
||||
Payload = @"{ ""action"": ""off"" }" }
|
||||
|> ReceivedZigbeeEvent
|
||||
|> onEventPublished.Trigger
|
||||
| TimeChanged newTime -> newTime |> Event.TimeChanged |> onEventPublished.Trigger
|
||||
|
||||
type FakeHome with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue