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


parip69

Member
  • Posts

    130
  • Joined

  • Last visited

About parip69

Profile information

  • Country
    Germany
  • Gateway/s
    Home Center 2

Recent Profile Visitors

320 profile views

parip69's Achievements

Learner

Learner (2/8)

3

Reputation

  1. Hi. I've been reading the posts for days but unfortunately I haven't found anything I could cope with. Is there a way to change the global variable value by a HTTP command, like http://<HC2-IP>/api/globalVariables/<GLOBALVARIABLE> ?value=1 ? Hi fibro please make it easy for us hobby programmers.
  2. Hi. Can no one write me anything with a Example? I would like to set an existing variable from outside via HTML. Ask for a solution.
  3. Hi. Wie soll ich es eingeben? Bitte um einen Tipp. Danke dir. http://192.168.1.36/docs/#!/ globalVariables /modG Vari/{"Wert ": " 444 "} Or? http://192.168.178.111:80/api/globalVariables/HomeAssistant69?value=111
  4. Hi It still worked with v0.950. Unfortunately it no longer works with the latest version fibaroExtra v0.955. So far it has worked. I thank you in advance. fibaro.event({type='myEvent'}, function(env) print("Got value ",env.event.value) end) fibaro.post({type='myEvent',value=21}) [30.01.2023] [16:41:00] [DEBUG] [QUICKAPP604]: fibaroExtra v0.955, ©[email protected] QuickApp crashed[30.01.2023] [16:41:00] [ERROR] [QUICKAPP604]: main.lua:203: attempt to call a nil value (field 'event')
  5. Hi Each time you press one of the buttons, this message appears, "[object Object],[object Object]" see photo. Thanks in advance. "updateView" quick app fibaro does not update????????? self:setView("labelBypass", "text", "Bypass-Status: An") function QuickApp:mainPtl() --Unterstützung der Lüfterleistung local var_vent_string, var_vent, pwm_eff_vent var_vent_string = fibaro.getGlobalVariable("provent_gear") var_vent = tonumber(var_vent_string) if (var_vent == 4) then pwm_eff_vent = gear_4 elseif (var_vent == 3) then pwm_eff_vent = gear_3 elseif (var_vent == 2) then pwm_eff_vent = gear_2 elseif (var_vent == 1) then pwm_eff_vent = gear_1 else pwm_eff_vent = gear_0 end local wietrzenie_v_string = fibaro.getGlobalVariable("provent_airing") local wietrzenie_v = tonumber(wietrzenie_v_string) local var_nawiew = fibaro.getGlobalVariable("provent_supply") --Statusinformationen des Zuluftventilators werden angezeigt if var_vent == 0 and wietrzenie_v == 0 then self:setView("labelNawiew", "text", "Lüftung: -------") elseif var_nawiew == '0' then self:setView("labelNawiew", "text", "Lüftung: Aus") else self:setView("labelNawiew", "text", "Lüftung: An") end -- Lüftungsservice if var_vent > 0 or wietrzenie_v > 0 then if wietrzenie_v > 0 then wietrzenie_v = wietrzenie_v - 1 wietrzenie_v_string = tostring(wietrzenie_v) fibaro.setGlobalVariable("provent_airing", wietrzenie_v_string) self:setView("labelBieg", "text", "Belüftung: Leuft")--Beatmungsstatusanzeige pwm_eff_vent = gear_4 else --self:setView("labelBieg", "text", "Belüftung: Stuffe*"..(tostring(var_vent)))--Beatmungsstatusanzeige self:setView("labelBieg", "text", "Belüftung: Stuffe"..(tostring(var_vent)))--Beatmungsstatusanzeige end else self:setView("labelBieg", "text", "Belüftung: Stop") pwm_eff_vent = gear_0 end --Unterstützung für Bypassklappe und Zuluftventilatorstatus local var_bypass local pwm_bypass var_bypass = fibaro.getGlobalVariable("provent_bypass") if var_nawiew == '0' then pwm_bypass = 0 elseif var_bypass == '1' then self:setView("labelBypass", "text", "Bypass-Status: An") pwm_bypass = 255--100% else self:setView("labelBypass", "text", "Bypass-Status: Aus") pwm_bypass = 186--73% end -- Prüfen, ob eine Änderung an den Ausgängen erforderlich ist local local_prev_pwm_vent, local_prev_pwm_bypass local_prev_pwm_vent = tonumber(self:getVariable("prev_pwm_vent")) local_prev_pwm_bypass = tonumber(self:getVariable("prev_pwm_bypass")) if local_prev_pwm_vent ~= pwm_eff_vent or local_prev_pwm_bypass ~= pwm_bypass then self:setVariable("prev_pwm_vent", tostring(pwm_eff_vent)) self:setVariable("prev_pwm_bypass", tostring(pwm_bypass)) fibaro.call(rgbw_number, "setColor", pwm_eff_vent, pwm_bypass, 0, 0) end -- fibaro.call(rgbw_number, "setColor", pwm_eff_vent, pwm_bypass, 0, 0) -- prev_pwm_eff_vent = pwm_eff_vent --- prev_pwm_bypass = pwm_bypass -- end Alles OK -- Informationen zum Filterstatus anzeigen. -- Ich Gerhard habe unten 4 eingetragen alles ok local state_filter = math.floor(tonumber(fibaro.getValue(rgbw_number + 10, "value")))--IN3 --print(state_filter,"state_filter",rgbw_number + 10) if state_filter < 5 then self:setView("labelFiltry", "text", "Filterstatus: Filter reinigen") else self:setView("labelFiltry", "text", "Filterstatus: verschmutzte Filter") end -- Anzeigen von Informationen zu einem Alarm oder einem Not-Aus -- Ich Gerhard habe unten 4 eingetragen alles ok local state_emg = math.floor(tonumber(fibaro.getValue(rgbw_number + 11,"value")))--IN4 --print(state_emg,"state_emg",rgbw_number + 11) if state_emg < 5 then self:setView("labelAlarmy", "text", " Alles OK ") elseif state_emg < 8 then self:setView("labelAlarmy", "text", "Auf Alarme auf der Tastatur der Zentrale prüfen") else self:setView("labelAlarmy", "text", "Beachtung! Not-Aus der Zentrale") fibaro.setGlobalVariable("provent_gear", "0") end --print("ende") self:setView("labelBieg", "text", "Belüftung: Stuffe" .. tostring(fibaro.getGlobalVariable("provent_gear"))) --print("ende2") fibaro.setTimeout(3*1000, function()--licznik jest w ms 1000ms=1s self:mainPtl() end) end;
  6. Hallo Bei jedem Drücken einer der Tasten erscheint diese Meldung, "[object Object],[object Object]" siehe Foto. Danke im Voraus.
  7. That's exactly what I need. With open api.
  8. Ok Then I do that too. Thank you.
  9. No. I would also buy and install a new tougher one.
  10. Unfortunately, I have an official digital water meter that I cannot read. I would install an additional counter just for this one purpose. can someone recommend me one?????
  11. Hi. I would like to read the water consumption in real time. Can someone recommend me a counter that I can then integrate into my hc2 Or hc3. Thank you very much.
  12. Thank you very much, the first example is to my liking.
  13. Hi. Unfortunately, it doesn't work with multiple variables??? With device, yes. Thank you
  14. Hi Can anyone help me. I would like to include this character "~" in both variables. s= "20:15~15:45" h1,h2 = s:match("([0-9][0-9]:[0-9][0-9].*)([0-9][0-9]:[0-9][0-9])"); print(s) print(h1) print(h2) It should look like this. h1 20:15~ h2 ~15:45 Thanks in advance.
  15. OK. I solved this for myself. Just swapped the h with m. I have one more question What happens internally with the set cron can you delete them or is deleted with the init or restart the new set when changing in the shy the old ones? Thank you
×
×
  • Create New...