larsbeck / HomematicIp

This package allows to query the HomematicIp REST and WebSocket endpoint.
MIT License
7 stars 2 forks source link

Send Commands #30

Open Lucitus opened 3 years ago

Lucitus commented 3 years ago

Is the implementation only for reading out values? I cant find an example for sending state changes.

SaschaWeisenberger commented 3 years ago

I do something like this: ` var fan = _environment.Devices.FirstOrDefault(x => x.Label == "Lüfter");

var result = _homematicService.SetSwitchState(1, fan.Id, FanIsOn);

result.Wait();
` works fine