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


Search the Community

Showing results for tags 'hc3'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • FIBARO Community
    • FIBARO Portal and Forum policy
    • FIBARO
    • Say hello!
    • Off-topics
  • FIBARO Update
    • FIBARO System Update
    • FIBARO Mobile Update
  • FIBARO Community Support
    • Scenes and Interface
    • FIBARO Products
    • FIBARO Mobile
    • FIBARO HomeKit
    • FIBARO Assistant Integrations
    • Other Devices / Third-party devices
    • Tutorials and Guides
    • Home Automation
    • Suggestions
  • FIBARO Społeczność
    • FIBARO
    • Przywitaj się!
    • Off-topic
  • FIBARO Aktualizacja
    • FIBARO System Aktualizacja
    • FIBARO Mobile Aktualizacja
  • FIBARO Wsparcie Społeczności
    • Sceny i Interfejs
    • FIBARO Urządzenia
    • FIBARO Mobilnie
    • FIBARO HomeKit
    • Integracja z Amazon Alexa i Google Home
    • Urządzenia Firm Trzecich
    • Poradniki
    • Automatyka Domowa
    • Sugestie

Categories

  • Scenes
  • Virtual Devices
  • Quick Apps
  • Icons

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook


Google+


Skype


Website URL


WhatsApp


Country


Gateway/s


Interests

  1. Is it possible to write a (one) trigger for the HC3 scene that responds to all devices, whose interfaces are light. I don't want to write for every light device a trigger.. What I've tried, and it doesn't work is: { operator = “all”, conditions = { { type = “device”, property = “value”, operator = “anyValue”, isTrigger = true } } } OR id= Or id = {45, 46}, --omit altogether and hard to maintain OR id= fibaro.getDevicesID Or id = fibaro.getDevicesID({ Interfaces = {“light”,}, Properties = { dead = false,}, Enabled = true, Visible = true }), And changing 'device' to 'interfaces' or 'interFaces' doesn't work either. { operator = “all”, conditions = { { type = “interfaces”, property = “value”, operator = “==”, value = “light”, isTrigger = true } } } The only code that's working is: But, this trigger is only for 2 devices, and I have a lot more.... And I don't like it because it's hard to maintain.. { operator = "any", conditions = { { type = "device", id = 45, property = "value", operator = "anyValue", isTrigger = true }, { type = "device", id = 46, property = "value", operator = "anyValue", isTrigger = true } } } Can someone help me with this? please!
  2. Hi Some problem with understanding Lua in the new HC3 , Trying to find out how Global variable works. What is it i am doing wrong fibaro.setGlobalVariable("c","1") fibaro.debug("Scene16", fibaro.getGlobalVariable("c")) I am trying to find out as in HC2 a Variables Panel but can not find it. Please advice
  3. Hello, I created following scene that turn off all the lights in my apartment: This scene should be automaticly launched while button 2 is pressed 2 times on Dimmer in Lobby. But it's not launching. It is properly running by mobile app. Does anyone knows what I am doing wrong ? What to check ? Regards.
  4. I have added Intercom Qapp (HC3) Trying to create a trigger to sound siren when Button is pressed on Intercom. However I can't get the trigger to work; { conditions = { { id = 347, isTrigger = true, operator = "==", property = "buttonTwoIsPressed", type = "device", value = true } }, operator = "all" } Any ideas how to get it working?
  5. Hello, im looking for a HC3 Script which switch a Bathroom Fan on/off with dependency relative humindity. I found a HC2 Script from kapitano1 (https://forum.siio.de/t/lua-taupunktlueftung-im-keller/5206) My Lua skill is very low, so i tried to change the code to hc3 and add my ids. The script will run correctly when humidInAbs - humidOutAbs > 1 but the switch off fan code is not correct. And sorry for my english, but it is not my native language; i tried my best. Can anyone correct it please? Debug: 28.08.2020] [12:44:00] [DEBUG] [SCENE218]: - 28.08.2020 12:44:00 AußenTemp 21.59°C rel. Feuchtigkeit 57.0% [28.08.2020] [12:44:00] [DEBUG] [SCENE218]: - 28.08.2020 12:44:00 absolute Luftfeuchtigkeit Außen 10.969697021231g/m³ [28.08.2020] [12:44:00] [DEBUG] [SCENE218]: - 28.08.2020 12:44:00 InnenTemp 25.4°C rel. Feuchtigkeit 51.0% [28.08.2020] [12:44:00] [DEBUG] [SCENE218]: - 28.08.2020 12:44:00 absolute Luftfeuchtigkeit Innen 12.211619119493g/m³ [28.08.2020] [12:49:00] [ERROR] [SCENE218]: Declaration: { conditions = { { type = "date", property = "cron", operator = "match", value = {"*", "*", "*", "*", "*", "*"}, isTrigger = true } }, operator = "all" } Action: local date = os.date("%d.%m.%Y %H:%M:%S", os.time()) local EXP = tonumber("2.71828182845904523536028747135266249775724709369995") local pressure = fibaro.getValue(425, "value") -- Luftdruck local tempOut = fibaro.getValue(422, "value") -- Außentemperatur local humidOut = fibaro.getValue(424, "value") -- Feuchtigkeit local tempIn = fibaro.getValue(120, "value") --Temp local humidIn = fibaro.getValue(122, "value") -- Luftfeuchtigkeit local timeout_min = 5 -- Wartezeit local I1 = tonumber(tempOut) -- Temperatur (in °C) local I2 = tonumber(humidOut) -- Relative Luftfeuchtigkeit (in %) local I3 = tonumber(pressure) -- Aktueller Luftdruck (in Millibar) local I4 = tonumber(tempIn) -- Temperatur (in °C) local I5 = tonumber(humidIn) -- Relative Luftfeuchtigkeit (in %) local humidOutAbs local humidInAbs local run = 0 function actionToHigh() -- Aktionen bei Erkennung zu hoher Luftfeuchtigkeit fibaro.call(148, "turnOn") end function actionToLow() -- Aktionen bei Erkennung zu niedriger Luftfeuchtigkeit fibaro.call(148, "turnOff") end -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- Werte Draußen -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ function Voutside() --print(" - " ..date .. " AußenTemp " ..tempOut .. "°C rel. Feuchtigkeit " ..humidOut.. "%") humidOutAbs = 0.622 * I2/100 * (1.01325 * 10^(5.426651 - 2005.1 / (I1 + 273.15) + 0.00013869 * ((I1 + 273.15) * (I1 + 273.15) - 293700) / (I1 + 273.15) * (10^(0.000000000011965 * ((I1 + 273.15) * (I1 + 273.15) - 293700) * ((I1 + 273.15) * (I1 + 273.15) - 293700)) - 1) - 0.0044 * 10^((-0.0057148 * (374.11 - I1)^1.25))) + (((I1 + 273.15) / 647.3) - 0.422) * (0.577 - ((I1 + 273.15) / 647.3)) * EXP^(0.000000000011965 * ((I1 + 273.15) * (I1 + 273.15) - 293700) * ((I1 + 273.15) * (I1 + 273.15) - 293700)) * 0.00980665) / (I3/1000 - I2/100 * (1.01325 * 10^(5.426651 - 2005.1 / (I1 + 273.15) + 0.00013869 * ((I1 + 273.15) * (I1 + 273.15) - 293700) / (I1 + 273.15) * (10^(0.000000000011965 * ((I1 + 273.15) * (I1 + 273.15) - 293700) * ((I1 + 273.15) * (I1 + 273.15) - 293700)) - 1) - 0.0044 * 10^((-0.0057148 * (374.11 - I1)^1.25))) + (((I1 + 273.15) / 647.3) - 0.422) * (0.577 - ((I1 + 273.15) / 647.3)) * EXP^(0.000000000011965 * ((I1 + 273.15) * (I1 + 273.15) - 293700) * ((I1 + 273.15) * (I1 + 273.15) - 293700)) * 0.00980665)) * I3/1000 * 100000000 / ((I1 + 273.15) * 287.1) --print(" - " ..date .. " absolute Luftfeuchtigkeit Außen " ..humidOutAbs.. "g/m³") end function Vinside() -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- Werte Drinnen -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --print(" - " ..date .. " InnenTemp " ..tempIn .. "°C rel. Feuchtigkeit " ..humidIn.. "%") humidInAbs = 0.622 * I5/100 * (1.01325 * 10^(5.426651 - 2005.1 / (I4 + 273.15) + 0.00013869 * ((I4 + 273.15) * (I4 + 273.15) - 293700) / (I4 + 273.15) * (10^(0.000000000011965 * ((I4 + 273.15) * (I4 + 273.15) - 293700) * ((I4 + 273.15) * (I4 + 273.15) - 293700)) - 1) - 0.0044 * 10^((-0.0057148 * (374.11 - I4)^1.25))) + (((I4 + 273.15) / 647.3) - 0.422) * (0.577 - ((I4 + 273.15) / 647.3)) * EXP^(0.000000000011965 * ((I4 + 273.15) * (I4 + 273.15) - 293700) * ((I4 + 273.15) * (I4 + 273.15) - 293700)) * 0.00980665) / (I3/1000 - I5/100 * (1.01325 * 10^(5.426651 - 2005.1 / (I4 + 273.15) + 0.00013869 * ((I4 + 273.15) * (I4 + 273.15) - 293700) / (I4 + 273.15) * (10^(0.000000000011965 * ((I4 + 273.15) * (I4 + 273.15) - 293700) * ((I4 + 273.15) * (I4 + 273.15) - 293700)) - 1) - 0.0044 * 10^((-0.0057148 * (374.11 - I4)^1.25))) + (((I4 + 273.15) / 647.3) - 0.422) * (0.577 - ((I4 + 273.15) / 647.3)) * EXP^(0.000000000011965 * ((I4 + 273.15) * (I4 + 273.15) - 293700) * ((I4 + 273.15) * (I4 + 273.15) - 293700)) * 0.00980665)) * I3/1000 * 100000000 / ((I4 + 273.15) * 287.1) --print(" - " ..date .. " absolute Luftfeuchtigkeit Innen " ..humidInAbs.. "g/m³") -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ end Voutside() Vinside() --if (humidInAbs > humidOutAbs) then if (humidInAbs - humidOutAbs) > 1 then print(" - " ..date .. " Bad 1.OG lüften!") actionToHigh() print(" - " ..date .. " AußenTemp " ..tempOut .. "°C rel. Feuchtigkeit " ..humidOut.. "%") print(" - " ..date .. " absolute Luftfeuchtigkeit Außen " ..humidOutAbs.. "g/m³") print(" - " ..date .. " InnenTemp " ..tempIn .. "°C rel. Feuchtigkeit " ..humidIn.. "%") print(" - " ..date .. " absolute Luftfeuchtigkeit Innen " ..humidInAbs.. "g/m³") fibaro.sleep(timeout_min*60*1000) else actionToLow() print(" - " ..date .. " Bad 1.OG nicht lüften") run = 0 end
  6. Hi, I'm new to Fibaro (HC3) and just finding my way around things. I've seen some reference in other forums that Quick Apps (buttons / controls) are not currently available in the Home Center mobile app - is this correct and still the case? Seems like a pretty basic requirement to be able to use Quick Apps doesn't it, or am I missing something? Otherwise, what is the point of them and how do you use them from your mobile other than building individual scenes for each action you want to take with it? Is anyone aware of a mobile app update on the horizon soon which will allow control of Quick Apps from the mobile app UI? Thanks
  7. I have deleted multiple aeotec mulitsensor 6, but they are still configured in the HC3 hub. They switched to hidden after i removed them, but are unable to remove them. I have tried to reset the hub. Is there i way to force them. Should it not be a trashbin next to device to force remove? if so that is missing.
  8. Does anyone have experience with Foscam on HC3? I do not get a picture in preview. I connect to an external ip. Do I have to use https and install SSL certificate? I did not find the model I have so I had to use "other" I have to use MJPG streaming and use this path http://USR:[email protected]:IP/video.cgi
  9. Hello everyone,.. I am pleased to announce that the first version of QA for controlling the iEAST streamer has already been published. It's the Lite version. You can download it here on the Marketplace: https://marketplace.fibaro.com/items/ieast-hc3-lite-player Current version: Lite 1.0.0 Date of publication: 7/08/2020 Last update: 17/08/2020 FUNCTIONS The functions of this Quick App are: Allowing to control iEAST Player from Home Center 3. You can control one device. It does support basic and advanced functions: Basic Control Chose the device preset (radio station/stream) – if your device supported this Initiate playback Button for Playback, Stop, Prvevious and Next track Toggle button, Pause/Playback Button for MUTE (unMUTEd will be when set some volume) Basic Rendering Control Get player volume and mute state Set player volume to a specific level and unmute the player if muted Increase or decrease player volume Get or Set or Toggle player mute state (Mute or unmute the player) Get or Set or Toggle player loudness state Basic Rendering States Get URL stream from device Get Title and Artist from device Get Play status – play/stop/pause/mute Get Volume level Show the QA status QA Properties Enable QA Debug Mode RELEASE NOTES - changelog Version 1.0.0 For HC3 v5.031 Support standard capabilities (PlayerControl, PlayerStatus) Displaying information on the currently playing (with some exceptions) Fully controllable from the LUA scenarios (see available command list) Directly controll the one of three devices For the future Support for select LineIN play mode Support fot Equaliser Toggle for STOP/PLAY MASTER / slave multiroom control support (in the Enhanced version) For more information, visit the Marketplace page: https://marketplace.fibaro.com/items/ieast-hc3-lite-player The description is part of the package. In case of questions, please write eM. EDIT 20200918: For debug some communication problem, pleas visit this post:
  10. Alarm Control HC3 new alarm concept could be used very efficiently by AOQ: For example: Assuming we have defined "nightSleep" which includes 1 doors and 2 window sensors. The zone is activated during the night (23:00~06:30). When the zone has breached we can send notification and/or send notification for breached device. When sensor has breached it will stay in breach mode and not monitored by alarm anymore, so additional breach is not identified. In order to monitor all sensors again, entire zone must be re-armed. Here is an example how to do it: jS2n={door=300, wSense1=410,wSense2=420, rgb=500} jM={ {0,"$blank",{timeSlot="06:30~23:00,23:00~,~06:30",initAct={"nightSleep","disarmAlarm",""}, trueAct={"nightSleep","armAlarm",""},falseAct={"nightSleep","disarmAlarm",""}}}, {0,"`door`|`wSense1`|`wSense2`",{state="alarm=breached",trueAct={{"Night Sleep Zone breached","sendEmail","$name at $room has breached"}}}}, {0,"$nightSleep",{state="value=breached",trueAct={{"nightSleep","disarmAlarm",""},{"nightSleep","armAlarm","5"}}}}, If you need visual indication of alarm status, we can add trigAct{} to set RGB Bulb according to alarm state by change last line as following: jS2n={door=300, wSense1=410,wSense2=420, rgb=500} jM={ {0,"$blank",{timeSlot="06:30~23:00,23:00~,~06:30",initAct={"nightSleep","disarmAlarm",""}, trueAct={"nightSleep","armAlarm",""},falseAct={"nightSleep","disarmAlarm",""}}}, {0,"`door`|`wSense1`|`wSense2`",{state="alarm=breached",trueAct={{"Night Sleep Zone breached","sendEmail","$name at $room has breached"}}}}, {0,"$nightSleep",{state="value=breached",trueAct={{"nightSleep","disarmAlarm",""},{"nightSleep","armAlarm","5"}}, trigAct={{"`rgb`","setColor,255,0,0,0","","{$nightSleep:value=breached}"},{"`rgb`","setColor,0,255,0,0","","{$nightSleep:value=armed}"},{"`rgb`","setValue,0","","{$nightSleep:value=disarmed}"}}}, You can use sendEmail, sendPush or sendiPush notification. Note: Using sendiPush you can define to execute scene or an action on any device (and any command) in the system. By pressing "RUN" button on iPush notification you can do follow: {"Night Sleep Zone breached","sendiPush,run_30","$name at $room has breached"} run scene 30 {"Night Sleep Zone breached","sendiPush,run85{turnOn}","$name at $room has breached"} turn ON device 85 {"Night Sleep Zone breached","sendiPush,run90{setColor,255,0,0,0}","$name at $room has breached"} set red color on device 90
  11. I'm really a noob with QA, and I've spent already hours and hours looking for a solution of my problem. Because HC3 does not yet support Somfy RTS, I want to control my Somfy roller shutters using Domoticz. I can easily operate them from Domoticz, and I can operate them also by an URL like http://192.168.1.138:8080/json.htm?type=command&param=switchlight&idx=52&switchcmd=(On, Off or stop) How can I integrate this in the standard QuickApp for the roller shutters? This QA has the following code: -- Roller shutter type should handle actions: open, close, stop -- To update roller shutter state, update property "value" with integer 0-99 function QuickApp:open() self:debug("roller shutter opened") self:updateProperty("value", 99) end function QuickApp:close() self:debug("roller shutter closed") self:updateProperty("value", 0) end function QuickApp:stop() self:debug("roller shutter stopped ") end -- Value is type of integer (0-99) function QuickApp:setValue(value) self:debug("roller shutter set to: " .. tostring(value)) self:updateProperty("value", value) end -- To update controls you can use method self:updateView(<component ID>, <component property>, <desired value>). Eg: -- self:updateView("slider", "value", "55") -- self:updateView("button1", "text", "MUTE") -- self:updateView("label", "text", "TURNED ON") -- This is QuickApp inital method. It is called right after your QuickApp starts (after each save or on gateway startup). -- Here you can set some default values, setup http connection or get QuickApp variables. -- To learn more, please visit: -- * https://manuals.fibaro.com/home-center-3/ -- * https://manuals.fibaro.com/home-center-3-quick-apps/ function QuickApp:onInit() self:debug("onInit") end I found a step by step tutorial, but only for the HC2:
  12. I’m a newby in the home center world, and i wonder if it’s possible to adjust the parameters with a quick app of a linked Z-wave alarm sound device, so it can make different sounds based on the event? Such as beeping softly at a entry delay, or alarm sound at a burglary. The sound device supports these capabilities, but i can't find a working solution in the HC3.
  13. Hello I'm new at lua programming and trying to use a variable to change light on or off, from a second button. But i can't get the variable to work. What is wrong here. Declaration { conditions = { { id = 187, isTrigger = true, operator = "==", property = "state", type = "device", value = false } }, operator = "all" } Actions local Status_186 = fibaro.getValue(186, "value") if Status_186 == 'ON' then fibaro.call(186, 'turnOff') else fibaro.call(186, 'turnOn') end
  14. Hey Guys Newbie here The new HC3 is now available for purchase in Australia. After reading this forum for a bit, Im a bit concerned that this product is not what it seems. ie a lot of its features are postponed till next year. I have also noticed that some features for HC2 are still not available. Do you think if I just stick to z-wave, I should be okay. Not planning on too many devices, maybe 30-40 Interested in your thoughts as HC3 isnt cheap Thanks JP
  15. WITAM. MAM PYTANIE ODNOŚNIE IKON ROLET W APLIKACJI MOBILNEJ OBSŁUGUJĄCEJ HC3. MIANOWICIE IKONY POKAZUJĄ INNY STAN ROLET NIŻ JEST FAKTYCZNIE (PRZY OTWARTYCH IKONA POKAZUJE ZAMKNIĘTĄ ROLETĘ I NA ODWRÓT), DOTYCZY TO WSZYSTKICH POMIESZCZEŃ. W WERSJI KOMPUTEROWEJ I W SAMYM HC3 FUNKCJA DZIAŁA PRAWIDŁOWO. CZY KTOŚ SPOTKAŁ SIĘ Z TYM PROBLEMEM I JAK GO ROZWIĄZAĆ?
  16. Hi everyone, I'm looking for a Quick app to control a Milight RGBW. I've found the above topic with a script, but the script is for a Virtual Device and in HC3, if I've correctly understood, Virtual Device has been replaced by Quick app. I'm new to the HC3 word and I don't know ho to "translate" VD script to QA. Is there a method ? I don't have any problems with LUA, but the QA scripting is not so far simple for me. Thanks for your help.
  17. Hello I wrote a QuickApp for controlling my Sony Bravia TV but I can´t find it in the Android app?
  18. I am building a small app (in Flutter) that needs to get data from the API of my HC3. I am not quite sure how to log in programmatically from within this app. Does the API provide a token to use with all requests, or do I need to provide username and password with each request? An how do the header have to look? Many thanks!
  19. Good evening everyone, .. I'm sending the first "taste" of the upcoming plug-in for iEAST. The purpose is to be able to establish LUA actions on the plugin and control the streamer from HC3 and its elements (tested by scene control from the NodON button). The primary purpose of this "Lite" application is to easily configure 6 Internet radio presets and name them so that a less knowledgeable user does not have to interfere with the code. As a bonus, there is control of this stream player, for example from a DLNA source. By no means does the app have any ambition to replace the original smart app on the phone / tablet. QuckApp is still in the BETA phase. I have test buttons here and some ready-made buttons for future use (master / slave multiroom, etc.). Furthermore, the test buttons "Test" for DEBUG (listing variables and JSON decoded values). I may need to modify the code, so I'll be happy if you test it and possibly send some info. I need to resolve some things about JSON some request. Still a picture, I'm working on the documentation. eM. Edit: Edited image description - Picture with Artist: Unknown, without the URL stream - this is real SLAVE speaker (you can configure from his own APP) - Picture with ERROR - some error with streamer Slave2 (not connected to the LAN) - Picture with Artist: ACDC - Actualy playing music from NAS - playing on the slave1 streamer - Picture with Artist: Unknown - Internet Radio from public stream - playing on the master streamer Configuration point Edit: 20200621 - New look. I'm just finishing the documentation before the release. The FCx3 button is switchable depending on the DEBUG mode. The play/pause button is a toggle switch.
  20. Witam potrzebuję pomocy jak zrobić aby oprogramować długie przytrzymanie ze smartimplant na wejściu INT1 tak aby wymusić zadziałanie Realy switch 2x1,5 tylko pierwszy kanał mam zaznaczone w parametrach Smart-a opcję Parametr 40: Wejście IN1 - aktywacja scen kanał i jest ustawione wciśnięte i przytrzymane po prawej wyświetla się cyfra "8" Deklaracje { conditions = { { id = 147, isTrigger = true, operator = "==", property = "centralSceneEvent", type = "device", value = { keyAttribute = "holddown", keyId = 8 }}}, operator = "all" } Akcje fibaro.call(152, 'turnOn')
  21. Witajcie, w nowej wersji jest obsługa napędu NICE i po zaprogramowaniu nawet działa :-). Niestety tylko w przeglądarce, w aplikacji w ogóle nie widać tego włącznika.
  22. How do I create a Global Variable from LUA in HC3? I'm trying to create a light dimmer function for Philips HUE using a Logic Group Matrix ZDB5100 switch so when I hold the Button its starts dimming up or down. But to keep track if the button is released and pressed again I need to keep track of the direction from last time it was pressed. So I'm thinking of using an Enumerated global variable "dimDirection" that can be set to Up or Down. I want the code to create the variable if not present. My working code whiteout remembering dimDirection is here https://pastebin.pl/view/d74c93bb In HC2 i used this snippet of code. But how is it in HC3 ? local ProjectorStatus = {On="Tændt", Off="Slukket"}; -- in code you then declare predefined global variable using users mapped values: local varName = { ["Projector"] = { value = ProjectorStatus.On, isEnum = true, isTable = false, enumValue = {ProjectorStatus.On, ProjectorStatus.Off} }, } function checkGlobalVariable(varName) -- Check if variable exist for i , v in pairs(varName) do if fibaro:getGlobalValue(i) == nil then api.post("/globalVariables/", { name = i }); fibaro:sleep(400) api.put("/globalVariables/"..i, { name = i, value = v.value, isEnum = v.isEnum, enumValues = v.enumValue }) if v.isTable then ok, msg = pcall(function() wT = json.decode(fibaro:getGlobalValue(i)) if type(wT) ~= "table" then error() end end ) if not ok then fibaro:debug("ERROR - Creating table was unsuccessful, error code: "..msg) else fibaro:debug("Variable '"..i.."' created successfully."); end else if fibaro:getGlobalValue(i) ~= nil then fibaro:debug("Variable '"..i.."' created successfully."); else fibaro:debug("ERROR - Variable '"..i.."' was NOT created!") end end end -- update all predefined global variables in case user changed default values if v.isEnum then fibaro:debug("Variable '"..i.."' allready exists."); local value = fibaro:getGlobalValue(i) for i,m in pairs(v.enumValue) do if m == value then v.value = value end end if v.value == value then fibaro:debug("For variable '"..i.."' found current value ("..value..") and will keep it") else fibaro:debug("For variable '"..i.."' NOT found current value, will set default value ("..value..")") end api.put("/globalVariables/"..i, { name = i, value = v.value, isEnum = v.isEnum, enumValues = v.enumValue }) fibaro:sleep(400) end end updateVar = true end checkGlobalVariable(varName)
  23. Hi, As i just moved recently from HC2 to HC3 i found myself with a heating problem. I have Danfoss Room Sensors and Danfoss LC-13 valves. They are supported in HC3, but i could not modify the temperature from the Danfoss Room Sensor. Even more, at this moment the HC3 climate interface does not allow for manual mode set via the GUI. So i wrote a bit of LUA code that will read the set temperature and set time interval from the Danfoss Room Sensor, will set the climate panel in Manual mode and sync all the TRV's. Hope it can help someone local fromID = 739 -- Danfoss RS senzor local toID = {721} -- Danfoss LC13 TRV local IdPanel = 1 --Birou fibaro.sleep(11*1000) local dev = api.get("/devices/"..fromID) local devname = dev.name local settemp = dev.properties.heatingThermostatSetpoint local setduration = dev.properties.schedules[1].schedules[1].duration.value local panel = api.get("/panels/climate/" .. IdPanel) panel.mode = "Manual" panel.properties.handSetPointHeating = tonumber(settemp) panel.properties.handTimestamp = os.time() + (60*60*setduration) api.put("/panels/climate/"..IdPanel, panel) fibaro.debug("Scene38","Danfoss TRV Synced With Danfoss RS.", "Climate Panel ", panel.name, "Set to Manual Mode for ", setduration, " Hours, Temperature ", settemp, "Degrees." ) The LUA trigger should be the Danfoss Room Sensor ID: { conditions = { { id = 739, isTrigger = true, operator = "!=", property = "heatingThermostatSetpoint", type = "device", value = 5 } }, operator = "all" } Enjoy
  24. Hello, I'm a newbee with Fibaro. I have a Fibaro Home Center 3, and created my Fibaro ID. Once I try to integrate Fibaro into Google home, the link is not created between them 2. I tried several times, I do not have any error message... But Fibaro is not added as a service into Google home (neither as a device...). I searched for tips in the web, but nothing I found gives a solution. Do you have any idea on how to proceed ? Thank you for your help.
  25. Hello, I'm a newbee with Fibaro. I have a Home Center 3, and I have configured it with rooms and devices. It seems to work properly using a connection via home.fibaro.com in my browser (I'm able to switch on and off my lights for example). But I'm facing an issue with the Home Center android app. Once connected with my fibaro ID, I'm not able to see any rooms or devices. I only use one user (the admin one) which is linked to my fibaro ID. I tried several ways, and search for tips into the web, but did not find any clue. Could you please help me to find what is the solution ?
×
×
  • Create New...