Asystent AI
Powiadomienia
Wyczyść wszystko

Reguła i wykozystanie Bildings ASTRO

1 Wpisów
1 Użytkownicy
0 Reactions
1,830 Wyświetleń
(@1paul11)
Wpisów: 57
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
[#925]

Jak w regułach wykozystać pory dnia z Astro ?

rule "TV"
when
Item Samsungtv_power changed
then
if ((Samsungtv_power.state == ON )||(KuchniaSwiatlo.state == OFF)) //telewizor człaczony i swiatlo w kuchni
sendCommand(fsinternetradio_radio_radio_power,OFF) //wylacz radio

if (Samsungtv_power.state == ON ) //telewizor załaczony w dzien
sendCommand(mqtt_topic_tvv_PRZEKAZNIK,ON)

if ((Samsungtv_power.state == OFF )||(Channel 'astro:sun:local:night#start' triggered START))
sendCommand(mqtt_topic_tvv_PRZEKAZNIK,OFF)
end

Mam taka ale minie działa. 

W logach  mam:

2019-05-01 16:47:18.125 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'Tv.rules' has errors, therefore ignoring it: [11,39]: no viable alternative at input 'Channel'

[11,47]: mismatched input ''astro:sun:local:night#start'' expecting ')'

[11,77]: no viable alternative at input 'triggered'

[11,92]: mismatched input ')' expecting 'end'

2019-05-01 16:47:19.239 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'Tv.rules' has errors, therefore ignoring it: [11,39]: no viable alternative at input 'Channel'

[11,47]: mismatched input ''astro:sun:local:night#start'' expecting ')'

[11,77]: no viable alternative at input 'triggered'

[11,92]: mismatched input ')' expecting 'end'

 


 
Dodane : 01/05/2019 4:48 pm
Udostępnij: