Hmm mozesz odczytać co się dzieje z pogodą z API /api/weather
np tak:
if (
fibaro:getValue(3, "WeatherCondition") == "rain" OR fibaro:getValue(3, "WeatherCondition") == "innydeszcz"
then
fibaro:call(62, "turnOn");
end
Jak dobrze pamiętam ID 3 to pogoda :-)
Program możesz w LUA wywolac
fibaro:call(ID, "startProgram", IDProgram)
Zmiana koloru:
fibaro:call(ID, "setColor", R, G, B, W)