Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


drivex

Member
  • Posts

    36
  • Joined

  • Last visited

Everything posted by drivex

    I think that script is very useful but in my case it doesnt work. Progress bar stops at 79% with following error [DEBUG] 00:36:44: 2019-01-06 00:36:44.883673 [ fatal] Unknown exception: /opt/fibaro/scenes/229.lua:95: attempt to perform arithmetic on a nil value
  1. @Sankotronic Could you share some code of that "function" that pack and unpack somethings to global variable ? It sounds nice Greetings
  2. thats true, when there is no WAN connection, script die
  3. Today: [DEBUG] 05:02:03: Time of day set to: Night - Day of week is Saturday [DEBUG] 05:02:03: Season is Summer, Month is August [DEBUG] 05:02:03: Scheduled scene BatteryCheck weekday flag is: 1 [DEBUG] 05:02:03: Scheduled scene BatteryCheckrun time[1][1] is: 00:00h; current time is: 05:02h [DEBUG] 05:02:03: Scheduled scene HC2reboot weekday flag is: 1 [DEBUG] 05:02:03: Scheduled scene HC2rebootrun time[2][1] is: 06:00h; current time is: 05:02h [DEBUG] 05:02:03: Scheduled global wasCleaned weekday flag is: 1 [DEBUG] 05:02:03: Scheduled global wasCleaned run time[1][1] is: 00:00h; current time is: 05:02h [DEBUG] 05:02:03: Darkness: 1 Sunset: 19:54 (set:19:51) Sunrise: 05:33 (set:05:33) TimeOfDay: Night [DEBUG] 05:03:03: [1;31m2018-08-18 05:03:03.110097 [ error] API: Host not found (authoritative) [DEBUG] 05:03:03: [1;31m2018-08-18 05:03:03.111681 [ error] API: Host not found (authoritative) [DEBUG] 05:03:03: [1;31m2018-08-18 05:03:03.112536 [ error] API: Host not found (authoritative) [DEBUG] 05:03:03: [1;31m2018-08-18 05:03:03.113173 [ error] API: Host not found (authoritative) [DEBUG] 05:03:03: [1;31m2018-08-18 05:03:03.113863 [ error] API: Host not found (authoritative) [DEBUG] 05:03:03: [1;31m2018-08-18 05:03:03.114628 [ error] API: Host not found (authoritative) [DEBUG] 05:03:03: [1;31m2018-08-18 05:03:03.115285 [ error] API: Host not found (authoritative) [DEBUG] 05:03:03: [1;31m2018-08-18 05:03:03.115907 [ error] API: Host not found (authoritative) [DEBUG] 05:03:03: [1;31m2018-08-18 05:03:03.116523 [ error] API: Host not found (authoritative) [DEBUG] 05:03:03: [1;31m2018-08-18 05:03:03.118003 [ fatal] Unknown exception: /opt/fibaro/scenes/99.lua:452: bad argument #1 to 'match' (string expected, got nil)
  4. Hi @Sankotronic No problem at all, thought that it will be faster. Error is still coming in random situations. Additionally I still receive a lot of emails about blocked connection to my hc2 , but it is not related to this topic at all. scene.txt scene.txt errorLog.txt
  5. Same here, 4.504 BETA [DEBUG] 05:00:33: Darkness: 0 Sunset: 20:32 (set:20:29) Sunrise: 05:00 (set:05:00) TimeOfDay: Morning [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.763409 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.764215 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.764949 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.765365 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.765671 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.765955 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.766268 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.766580 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.766852 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.767533 [ fatal] Unknown exception: LOG: [DEBUG] 04:58:32: Scheduled scene BatteryCheckrun time[1][1] is: 00:00h; current time is: 04:58h [DEBUG] 04:58:32: Scheduled scene HC2reboot weekday flag is: 0 [DEBUG] 04:58:32: Scheduled global wasCleaned weekday flag is: 1 [DEBUG] 04:58:32: Scheduled global wasCleaned run time[1][1] is: 00:00h; current time is: 04:58h [DEBUG] 04:58:32: Darkness: 1 Sunset: 20:32 (set:20:29) Sunrise: 05:00 (set:05:00) TimeOfDay: Night [DEBUG] 04:59:31: Day time: 10:30, Night time: 23:29, Time to raise blinds: 10:00 [DEBUG] 04:59:32: Time of day set to: Night - Day of week is Thursday [DEBUG] 04:59:32: Season is Summer, Month is July [DEBUG] 04:59:32: Scheduled scene BatteryCheck weekday flag is: 1 [DEBUG] 04:59:32: Scheduled scene BatteryCheckrun time[1][1] is: 00:00h; current time is: 04:59h [DEBUG] 04:59:32: Scheduled scene HC2reboot weekday flag is: 0 [DEBUG] 04:59:32: Scheduled global wasCleaned weekday flag is: 1 [DEBUG] 04:59:32: Scheduled global wasCleaned run time[1][1] is: 00:00h; current time is: 04:59h [DEBUG] 04:59:32: Darkness: 1 Sunset: 20:32 (set:20:29) Sunrise: 05:00 (set:05:00) TimeOfDay: Night [DEBUG] 05:00:32: Day time: 10:30, Night time: 23:29, Time to raise blinds: 10:00 [DEBUG] 05:00:32: Time of day set to: Morning - Day of week is Thursday [DEBUG] 05:00:33: Season is Summer, Month is July [DEBUG] 05:00:33: Scheduled scene BatteryCheck weekday flag is: 1 [DEBUG] 05:00:33: Scheduled scene BatteryCheckrun time[1][1] is: 00:00h; current time is: 05:00h [DEBUG] 05:00:33: Scheduled scene HC2reboot weekday flag is: 0 [DEBUG] 05:00:33: Scheduled global wasCleaned weekday flag is: 1 [DEBUG] 05:00:33: Scheduled global wasCleaned run time[1][1] is: 00:00h; current time is: 05:00h [DEBUG] 05:00:33: Darkness: 0 Sunset: 20:32 (set:20:29) Sunrise: 05:00 (set:05:00) TimeOfDay: Morning [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.763409 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.764215 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.764949 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.765365 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.765671 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.765955 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.766268 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.766580 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.766852 [ error] API: Host not found (authoritative) [DEBUG] 05:01:32: [1;31m2018-07-26 05:01:32.767533 [ fatal] Unknown exception:
  6. @Sankotronic Hi! I ve got a question, trying to launch 2 scheduled scenes... -- SCHEDULED SCENES SETUP ------------------------------------------------ -- here you can setup scenes that will be executed at predefined time of -- day in format "00:00". You can set up more than one time during day. -- Also you can enter flag for each day of the week when scene will be -- executed or not. See more details bellow. local runSceneSchedName = {{"BatteryCheck"}, {"HC2reboot"}}; -- enter scene IDs that will run at scheduled time separated by comma. local runSceneSchedID = {{"177"}, {"179"}}; -- enter at what time of day will scenes run separated by comma. -- You can define more than one time in format "00:00" for one scene -- or even use local or global variables like sunsettime or sunrisetime -- Example: {{"13:30", "19:20"}, {sunrisetime, "13:00", sunsettime}} -- in above example first scene will run at 13:30 and 19:20 while -- second scene will run at sunrisetime, 13:00 and at sunsettime -- IMPORTANT NOTE - if you use variable to set time then make sure that -- you add refreshing of value in function extraUserCodeFirst() like -- this for above example: -- runSceneSchedHour[2][1] = sunrisetime -- runSceneSchedHour[2][3] = sunsettime where first square brackets -- [2] with number inside refers to second scene and second square -- brackets [1] with number inside refers to time in order which means -- sunrisetime is 1st time [1] for 2nd [2] scene and sunsettime is -- 3rd [3] time for 2nd [2] scene in a row added to the variable. local runSceneSchedHour = {{"10:00"}, {"05:00"}}; -- enter here flag for each day of the week for scene to run at above -- scheduled time. if flag 1 the scene will run and if flag 0 then -- will not be run for that day. Remeber, Sunday is first day of the -- week on HC2! Example for two scenes: -- {{1, 0, 0, 0, 0, 0, 0}, {0, 1, 1, 1, 1, 1, 0}} - in this example -- first scene will run only on Sunday, and second scene will run on -- weekdays byt not on weekends (Saturday and Sunday). local runSceneSchedWeek = {{1,1,1,1,1,1,1}, {1,1,1,1,1,1,1}}; -- enter here flag for sending push message when scene is executed -- 1 for sending message, 0 no messages local runSceneSchedPushFlag = {{1}, {1}}; -- enter here message content that will be sent to you when scene is -- executed. If above flag is 0 for any of the scenes then just put -- empty "" for it. local runSceneSchedPushMessage = {{"BatteryCheck ON"}, {"HC2 Reboot starting"}}; and there is a error... what im doing wrong ? error is shown when local exDebug = true; -- for checking repeating and scheduled scene
  7. Witam, chciałbym zgłosić, że na przeglądarce Edge w momencie otwarcia kolejnej karty np Pomieszczenia czy Konfiguracja czy jakiejkolwiek innej - za każdym razem trzeba podawać dane do logowania. Prawdopodobnie istnieje jakiś problem z sesją. Na Google Chrome ani w Operze nie ma takiego problemu. Jest to trochę uciążliwe kiedy pracuje nad skryptem, potrzebuje nową kartę żeby znaleźć np id urządzenia i za każdym razem musze podawać dane do logowania
  8. No więc dlatego w pomysłach pozwoliłem sobie wrzucić taki request. Skoro jest możliwość zmiany integera to powinna być tez możliwość zmiany stringa W każdym razie nie zawsze można przewidzieć predefiniowaną zmienną i stąd moje zapytanie
  9. Chciałbym w scenie blokowej ustawić wartość zmiennej na dowolny tekst, nie posługując się zmiennymi globalnymi (predefiniowanymi) tylko bezpośrednio w scenie ustawiać wartość. Czyli tak jak w tym przypadku ustaw zmienną na "wykryto ruch w pomieszczeniu", w innej scenie "pranie skonczone", w jeszcze innej "uruchomiono tryb away" a jeszcze w innej "uruchomiono ogrzewanie podłogowe" Dzieki takiemu rozwiazaniu nie trzeba by było definiować wczesniej zmiennych (wybieralnych) w panelu zmiennych - tylko bezposrednio ze sceny blokowej. Scena która opiera się o tą zmienną globalną SmartPhoneMessage w momencie zmiany, wysyła powiadomienie na telefon. Mam nadzieje ze sie rozumiemy
  10. Witaj, zgadza się znam zmienne predefiniowane globalne, ale chodzi bardziej o to ze niektore sceny jak np ta wyzej uruchamiają się w momencie kiedy zmienna globalna zmienia zawartość. Zatem w tym konkretnym przykładzie chciałbym poprzez scene blokową ustawić zmienną typu string, po to by scena która wyłapuje tą zmienną zaskoczyła i wysłała powiadomienie typu push. Jest to dużo wygodniejsze niż korzystanie z domyślnego systemu powiadomień, gdzie muszę je predefiniować wcześniej --- ale to inny temat. Wydaje mi się, że możliwość wysłania powiadomienia o dowolnej zawartości ze sceny blokowej również powinna być standardem (bez tego całego procesu predefiniowania powiadomień) Na ten moment w scenie blokowej można zmienić zawartość zmiennej tylko w zakresie liczb, wydaje mi się że powinna być też możliwość wpisania tekstu który byłby zapisywany do zmiennej. Wiadome jest to, że mogę skorzystać z LUA ale czasami szybciej ustawić scenę blokową niż pisać skrypt --- nie mówiąc już o Alexie która nie akceptuje innych scen niż blokowe
  11. Prosiłbym o dodanie opcji wyboru czy zmiana zmiennej w scenie blokowej ma byc typu integer (liczb) czy typu string (tekst) W tym momencie domyślnie mozna wpisac tylko tylko cyfrę tzn integer
  12. dzieki za info, zatem czekamy pewnie na panel. Z tego co widzę mogę sam się dodac jako instalator.
  13. Witam, w ustawieniach uprawnień zauważyłem możliwość dodania instalatora. Z czym to się je ? Jest gdzieś jakiś panel ? Wersja HC 4.152 BETA
×
×
  • Create New...