Add naive remote control implementation
This commit is contained in:
parent
d2864fcc22
commit
838bbb79a3
5 changed files with 78 additions and 26 deletions
|
|
@ -104,8 +104,9 @@ let mainAsync _ =
|
|||
do! mqttClient.ConnectAsync mqttClientOptions |> Async.AwaitTask |> Async.Ignore
|
||||
|
||||
do!
|
||||
mqttClient.SubscribeAsync "zigbee2mqtt/bridge/event"
|
||||
|> Async.AwaitTask
|
||||
[ "zigbee2mqtt/bridge/event"; $"zigbee2mqtt/{remoteControlFriendlyName.Get}" ]
|
||||
|> Seq.map (fun topic -> async { return! mqttClient.SubscribeAsync topic |> Async.AwaitTask })
|
||||
|> Async.Sequential
|
||||
|> Async.Ignore
|
||||
|
||||
while true do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue