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!



Smart Home Forum by FIBARO Team

Search the Community

Showing results for tags 'HC2'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


  • Scenes
  • Virtual Devices
  • Quick Apps
  • Icons

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start






Website URL





  1. Hi All Following on from posts elsewhere about my issue I am convinced the problem lies with the block/lua conversion. However as a newbie I do not know enough to decipher the flow of the code. Primarily I need to understand how this scene is triggered when %%autostart is not used. I get that a manual start will set things going by the first 4 lines but how does the scene trigger otherwise? If someone could add some comments to the offending code below for me it would be most useful! --[[ %% properties 172 value %% weather %% events %% globals --]] local startSource = fibaro:getSourceTrigger(); if(startSource["type"] == "other") then fibaro:call(64, "turnOff"); fibaro:call(66, "turnOff"); else if (( tonumber(fibaro:getValue(172, "value")) == 0 )) then setTimeout(function() local delayedCheck0 = false; local tempDeviceState0, deviceLastModification0 = fibaro:get(172, "value"); if (( tonumber(fibaro:getValue(172, "value")) == 0 ) and (os.time() - deviceLastModification0) >= 200) then delayedCheck0 = true; end local startSource = fibaro:getSourceTrigger(); if ( ( delayedCheck0 == true ) or startSource["type"] == "other" ) then fibaro:call(64, "turnOff"); fibaro:call(66, "turnOff"); end end, 200000) end end
  2. Hi there, I've been working on getting Google Home (GH) to work with my HC2. It requires a few components - IFTTT, AWS (for the web action) and an ESP8266 to poll AWS for actions. - ESP8266 - I use a WEMOS D1 Mini to use the built-in USB for power - configured to use Arduino code - AWS - I use API, Lambda and DynamoDB as a simple message process. - IFTTT - using the Assistant modules to call AWS and post data to the database I then use a Virtual Device to poll the ESP8266 to see if there are any messages on the database, pull them down and pass them back to HC2 as JSON. The ESP8266 then clears out the database record so the last command isn't used again. At the HC2, the JSON is used in an LUA script. It's a bit clunky, but the IFTTT integration is very fast to AWS, so any delay is really the second or two that it takes HC2 to poll a VC; about a second longer than the verbal response from IFTTT. If there's any interest - say 10 people - I'll rough up the components and post them over to Github.
  3. For reference in case some user needs it from hc2 manual here http://manuals.fibaro.com/content/manuals/en/HC2/HC2-EN.pdf
  4. Could someone please point me in the right direction to control 3 electric panel heaters (in the same room), using HC2, Fibaro wallplugs and Aeon multisensor. All 3 heaters are supposed to be controlled simultaneously as if they are 1 device? Thanks Thomas
  5. can anyone see why this simple block scene doesn't seem to function on Qubino DC shutter? (see attached). It should lower or raise to 50% if temperature between 16 -18 degrees. I have separate scenes to raise above 18 and lower below 16 which appear to work ok (The module is actually connected to my greenhouse door!). The LUA converts to this: --[[ %% properties 149 value %% globals --]] local startSource = fibaro:getSourceTrigger(); if ( ( tonumber(fibaro:getValue(149, "value")) > 16 ) and ( tonumber(fibaro:getValue(149, "value")) < 18 ) or startSource["type"] == "other" ) then setTimeout(function() end, 100000) end Thanks.
  6. Hey Everyone, had a friend ask me some time ago to design and print a desktop and wall mount for the HC2 Some time ago I created the desktop mount" https://www.thingiverse.com/thing:2002530 Then I started to create a wall mount version, using the desktop shape I had to add holes so in the dome so you could use a screwdriver....then looking at it I thought it looked like the android character... =)) There is a left and right version https://www.thingiverse.com/thing:2479144 Hope someone gets some use for it...
  7. we are in the process of remodeling our home and i am in trying to figure out if the BTICINO "sweet click" controls will work with the fibaro relay 2? I know they work as traditional toggle switches, but im not sure if they would be considered dry contacts toggle switches or not. The only info i have found is that they wont work with the Dimmer 2 modules. the only thing in their pdf, describe them as; "The electronic control which creates the perception of a digital device even in the traditional system." under the description it states: pulsante elettronico Sweet Click 1P NO - per dimmer o relè elettronici - assiale so im guessing they would work? any help with this would help me greatly! Thanks in advance Matt
  8. Hi, I have a few motion sensor I'm trying to add to my HC2, but it doesn't seem to be working properly. I have added a photo. Any ideas? Cheers
  9. Hi all, I searched through the forum and there does not seem to be much recent activity regarding this. Has anyone had much success in using the Harmony Home Hub Extender with Fibaro HC2 ? http://www.logitech.com/en-us/product/harmony-home-hub-extender If so, please can you share the level of success - what you have manage to achieve etc.? Many thanks
  10. Fibaro, can you please add a diagnostics screen to the HC2? This should include: - Node information (type and capabilities) - Node connections (mesh overview) Examples: LinuxMCE Domoticz EPIsensors - Node wireless strength (including transmit errors) - etc.
  11. I dont know if anyone else has come accross this, but this morning my system seemed to have froze! My last scene that ran was about 00:05, and after that i have just a couple of scenes to turn off bedroom lamps and these didnt work, neither did the morning water heating, central heating scenes etc when i tried to manually run them nothing worked. tried to disarm sensors but they would auto-re arm. tried the dimmers and they would stay on. no scene would run. a restart of HC2 did the trick. a client of mine reported the same thing this morning so Question: Has anyone else experienced this, this morning? thanks
  12. Hi, I've set direct association of Fibaro Motion Sensor and 2 x Fibaro RGBW controller in HC2. Set to Group 2 single channel per each. I can't solve the issue of brightness - it turns on the minimum level only. I need to manually turn the brightness to max. But when turns off and on again - level is again minimum. How can I set brightness in direct association? Parameter 14 on Motion Sensor is set to 255. Looks like I'm missing some important part! Thanks!
  13. Hi, I am looking to purchase a UPS to make sure my critical devices (HC2, NAS, Pi, etc) are powered down gracefully in the event of a power disruption. I was wondering what people use and how it is setup and if it is suiting your needs any input appreciated Thanks _f
  14. Hello guys, I ran into interesting problem. Honestly i do not know if problem is in Fibaro or Global Cache, so i need some help. Ticket in partners dedicated channel: #95470. I'm doing VD for a customer (Fibaro dealer) for control of Somfy RTS module (VD is below). But i'm able to receive only 8 comands, then it seems like connection get stucked. If i send commands from iTest (global cache app), that i am not a problem to receive more than 8 commands. If i send commands from Fibaro to PC directly (Hercules app can be set as TCP server), then i'm able receive more than 8 commands (Same port and protocol, just diffrent IP adress). I'm sending those serial commands (RS-232/RS-485) to my Laptop to application Hercules (Link below). Global Cache i'm using is iTach Flex IP. Cables connected are Flex Link RS-232 cable and Flex Link RS-485 cable. I tested it with both. As RS-485 to USB converter i'm using something like that: http://www.rockonpro.pl/monacor-da-70157 or this one (rs-232) http://www.aten.com/global/en/products/usb-&-thunderbolt/usb-converters/uc232a/#.WWNf3ulpzg4 @T.Konopka or @M.Baranowski, can you look at this one please? Global Cache Cables: https://www.globalcache.com/files/docs/DS_FLC-SL_final.pdf Hercules app link: http://www.hw-group.com/products/hercules/index_en.html Virtual device: Somfy_RTS.vfib
  15. Hi there, Anyone experience with installing a Fakro zws12? The manual of this motor is badly written, so I need some help. thanx
  16. Hello experts! This is kind of very strange and I hope, I am just missing something and that I find someone, who could point my nose on it: I just switched to a different, newer, better, faster, quieter router (AVM Fritzbox 7490) with 4 LAN ports. The Fibaro HC2 is connected (as well as e.g. the Philips Hue bridge, NAS and TV). All devices are working and shown as connected on the UI of the router. But HC2 is NOT! Strange enough, the LAN network light on HC2 (2nd from the right) is illuminated. But the router does not "see" the device. I plugged it back into the old router and everything works fine again. Back on the new one: Nothing! I tried Fibaro finder, but as expected, it can't find it. Any thoughts, ideas, ...? Thank you so much for helping!
  17. Hello, I recently updated to the app and cannot connect to my HC2 anymore. There used to be an option to enter the IP of the HC2 but I cannot seem to find it. The HC2 is not connected to the internet so I am not able to login via the Fibaro ID. Best Regards
  18. This is feature request with low priority. So i will post it only on forum Better function of clipboarding from debug windows from VD debug window and LUA scene debug window. How it is now works: Succesfull clipboard: Hold left mouse button to select some debug lines and then ctrl+C for copy, while left mouse button is held down. Unsuccesfull clipboard: Hold left mouse button to select some debug lines, release mouse button and then ctrl+C for copy, while left mouse button is holded. What is requested: Hold left mouse button to select some debug lines, release mouse button and then ctrl+C for copy, while left mouse button is holded.
  19. hi just got hold of a keyfob and quite like it compared to the other remotes i have had in the past. the problem i cam across is finding scene activation information so after digging around on different threads and sites got a working solution. attached is the scene lua code and also a short video demo..... enjoy.... KeyFob Scenes.txt
  20. I have some device connected to z-wave plugs that can measure the energy consumption (devolo (Metering Plug MT:2646) and aeon labs (aeotec ZW075 v2) plugs are used). Now I would like every month a report how many kWh each of the plugs counted so far. Best would be to get that report by email. Is something like this possible in the HC2 eg with LUA? Can anybody help me to get started: - how to get the combined kWh from the devices - how to send an email - how to run the script only once per month thanks
  21. HC2 startup,The LED light blinks left,then ,all the lights are on. Restoring factory settings too Has anyone ever had this problem?Is there a solution? I am eager to get your instruction. I will appreciate any of your help.
  22. I face a serious issue with my HC2 currently. HC2 does have a static IP right now, but it doesn`t stay stable for more than 4 seconds. I tried to make it DHCP and also recovered it , but for no use. The page can`t be opened at all .My version is 4.056. This is totally useless now and i require a solution to come out of it.
  23. Hello guys, Id need your help please. Over last night my HC2 stopped responding from no reason. When I came to my HC2, none LED lights were on. I tried to unplug the power and turn it back on. LED lights started flashing from right to left and every few seconds kept turned on one by one except the last one on the left (service). Now all lights are on and the left one flashes. I can not access the system anyhow. I tried to go through the recovery procedure, yet I can not access it. If I unplug the device, press the reset button + plug in the power, LED strat flashing from left to right but turns off in a few seconds. Please can anyone advice what to do? Thank you, tampiss
  24. Hello, I like to start a scene at every keypress on my Zipato Mini Keypad with RFiD Example: Zipato Away + PIN >>> Start scene Arm Zipato Home + TAG >>> Start scene DisArm Zipato Away + TAG >>> Start scene Arm Zipato Home + PIN >>> Start scene DisArm This works fine, no problem so far but if i'm also using my smartphone it doesn't work 1) Yesterday Alarm Disarmed by Zipato-Home-key + PIN 2) Today Alarm Armed by Smartphone 3) Today i try to disarm by Zipato-Home-key + TAG >>> NO TRIGGER Fibaro HC2 doesn't start a scene at step-3 because 'value' was not changed, for the system i pushed the home-key again (step 1 and 3) How do i trigger a scene with FIBARO LUA every time a key was pushed? ----------------------- Every key-press is send to Fibaro HC2 as it shows in the status screen [23:11:56] ID 299: locked by user 2 [23:24:50] ID 299: unlocked by user 2 [23:24:58] ID 299: locked by user 2 [23:25:25] ID 299: locked by user 2 [23:25:43] ID 299: locked by user 2 [23:25:54] ID 299: unlocked by user 2 [23:27:46] ID 299: locked by user 2 [23:27:52] ID 299: locked by user 3 [23:27:57] ID 299: unlocked by user 2 [23:31:03] ID 299: locked by user 2 [23:31:13] ID 299: unlocked by user 2 [23:47:04] ID 299: locked by user 1 [23:47:11] ID 299: unlocked by user 1 ----------------------- SCENE HEADER: --[[ %% properties 299 value %% events %% globals --]] Can somebody help?
  25. Hi to you all! Maybe you know that I'm a critical HC2 user since 2013. In short, as I mention here I was feeling the Fibaro was holding me back in possibilities, privacy and security. So I started to investigate to get more control over what I think was important to me. I said I would abandon the HC2. The good news, I will not (for now). After extensive testing and trying to find a proper configuration, I found a way to implement the HC2, demanding my needs and wishes concerning: Security Privacy Possibilities Time to spend (re-configuring 200+ devices, 50 scenes and 30 Virtual Devices) The solution I'm implementing is a Raspberry Pi 3 with Node-Red for all communications from the HC2. In short, this means using the HC2 solely as a Z-wave controller and automation gateway. Setup: - The Node-Red will receive commands from the HC2 by an encrypted (https) and password protected connection. At this point it's still one way by sending from the HC2 to Node-Red. - The HC2 is (will be) blocked from internet access. Internet access to the HC2 will be done by VPN. - All other domotica devices are on a separate subnet (VLAN). - All messages (email/push/Telegram) is processed by Node-Red. (disabling all Fibaro 'services'). Example: An alarm is breached: - HC2 will send a message by https to Node-Red. - Node-Red sends IP-Camera snapshots to own email-server, push-account or private Telegram-bot. - Node-Red will check my Ubiquiti manage-switch to check if someone is at home (Mobile phone present in LAN) at will send result to push or Telegram. For sending data to Node-Red a scene is used with content of 5 Global Variable, triggered by one: SC_Nred_VarName (Name variable to send. used as trigger, must be written as last) SC_Nred_VarVal (Value to send) SC_Nred_VarType (not used yet, could be used for sending the type of value, like string, date, time etc.) SC_Nred_VarLog (data for storing data in Node-Red logfiles) SC_Nred_VarPath (path to the Node-Red http-receive-node, default /hc2) The scene code (Beta code 20170526): --[[ %% properties %% events %% globals SC_Nred_VarName --]] -- -- Initialisation of user settings (change if necessary) -- -- Global variables (has to be added manually in HC2 variables panel) local globVarName = 'SC_Nred_VarName'; -- Name of global variable to send (trigger!) local globVarValue = 'SC_Nred_VarVal'; -- Value of global variable to send local globVarType = 'SC_Nred_VarType'; -- Type of global variable to send local globVarLog = 'SC_Nred_VarLog'; -- Logmessage to send local globVarPath = 'SC_Nred_VarPath'; -- Node-Red http-node path to interact with -- Node-Red server connections credentials local nredIp = '192.168.x.x'; -- Node-RED server IP-address local nredPort = 1880; -- Node-Red server port number local nredUser = 'HC2'; -- Node-Red user used to change variables local nredPass = 'XXXXXXXXXXXXXXXX'; -- Node-Red password of used user -- Node-Red server credentials options: true = Enable, false = Disable local nredUseLogin = false; -- TODO!! Option to use user/password login (default = false) local nredUseSecure = true; -- Option to use secure https connections (default = true) -- Node-Red http-node settings local nredPathDefault = 'hc2'; -- Default Node-Red http-node path to interact with local nredVarName = 'name'; -- Node-Red http-node option for variable name local nredVarValue = 'value'; -- Node-Red http-node option for variable value local nredVarType = 'type'; -- Node-Red http-node option for variable type local nredVarLog = 'log'; -- Node-Red http-node option for variable log -- Debug options: true = Enable (default), false = Disable local debug = true; -- -- Funtions (do not change) -- -- Debug and Log local function log(str) if debug then fibaro:debug('<font color="yellow">'..str..'</font>'); end; end local function errorlog(str) fibaro:debug('<font color="red">'..str..'</font>'); end -- -- Code (do not change) -- -- Prevents the scene from running when command is 0 if (tonumber(fibaro:getGlobalValue(globVarName)) == 0) then fibaro:abort(); end -- Get variable content from global variable and convert to usable values -- Name value content local nredName = fibaro:getGlobalValue(globVarName); local nredName = string.gsub(nredName,'%s','%%20'); -- Replace <space> with %20 local nredName = string.gsub((nredName),'?','%%3F'); -- Replace ? with %3F --local nredName = string.gsub((nredName),'%','%%25'); -- TODO! Replace % with %25 -- Value content local nredValue = fibaro:getGlobalValue(globVarValue); local nredValue = string.gsub((nredValue), '%s', '%%20'); -- Replace <space> with %20 local nredValue = string.gsub((nredValue),'?','%%3F'); -- Replace ? with %3F --local nredValue = string.gsub((nredValue),'%','%%25'); -- TODO! Replace % with %25 -- Type value content local nredType = fibaro:getGlobalValue(globVarType); local nredType = string.gsub((nredType), '%s', '%%20'); -- Replace <space> with %20 local nredType = string.gsub((nredType),'?','%%3F'); -- Replace ? with %3F --local nredType = string.gsub((nredType),'%','%%25'); -- TODO! Replace % with %25 -- Log value content local nredLog = fibaro:getGlobalValue(globVarLog); local nredLogIsChanged = ''; if nredLog == '' or nredLog == nil then nredLogIsChanged = ' is changed to'; nredLog = os.date("%d/%m/%Y %X ")..': '..nredName..' --> '..nredValue; end if debug then fibaro:debug('Logcontent'..nredLogIsChanged..': '..nredLog) end; local nredLog = string.gsub((nredLog), '%s', '%%20'); -- Replace <space> with %20 local nredLog = string.gsub((nredLog),'?','%%3F'); -- Replace ? with %3F -- Node-Red http-node path value local nredPath = fibaro:getGlobalValue(globVarPath); if debug then fibaro:debug('Node-RED Path: '..nredPath) end; if nredPath == '' or nredPath == nil then nredPath = nredPathDefault; end local nredPath = string.gsub((nredPath), '%s', '%%20'); -- Replace <space> with %20 local nredPath = string.gsub((nredPath),'?','%%3F'); -- Replace ? with %3F -- Construct API URL if nredUseSecure then urlPre = 'https'; else urlPre = 'http'; end local apiURL = urlPre..'://'..nredIp..':'..nredPort..'/'..tostring(nredPath)..'?'..tostring(nredVarName)..'='..tostring(nredName)..'&'..tostring(nredVarValue)..'='..tostring(nredValue)..'&'..tostring(nredVarType)..'='..tostring(nredType)..'&'..tostring(nredVarLog)..'='..tostring(nredLog); if debug then log(apiURL) end; -- Initialisation of communication to Node-Red local selfHttp = net.HTTPClient(); -- Sending HTTP apiURL selfHttp:request(apiURL, { options={ headers = selfHttp.controlHeaders, data = requestBody, method = 'GET', timeout = 5000 }, success = function(status) local result = json.decode(status.data); if result.status == 'OK' then if debug then log('<font color="green">Respond is OK</font>') end; else errorlog('failed'); if debug then log(status.data) end; end end, error = function(error) errorlog("ERROR"); if debug then log(error) end; end }) -- Reset the global command variable to 0 and empty all other global variables fibaro:setGlobal(globVarValue, ''); fibaro:setGlobal(globVarType, ''); fibaro:setGlobal(globVarLog, ''); fibaro:setGlobal(globVarPath, ''); fibaro:setGlobal(globVarName, '0'); -- Trigger variable, write as last To actually send data, a Virtual Device can be used with buttons to write values to the proper global variables. For example (when balcony security is breached, VD report-label name = RedNodeAlarmLabel): -- -- Initialisation of user settings (change if necessary) -- -- Global variables (has to be present in HC2 variables panel) local globVarName = 'SC_Nred_VarName'; -- Global variable used for Node-RED variable name local globVarValue = 'SC_Nred_VarVal'; -- Global variable used for Node-Red variable value local globVarType = 'SC_Nred_VarType'; -- Global variable used for Node-Red variable type local globVarLog = 'SC_Nred_VarLog'; -- Global variable used for Node-Red variable Log (String) local globVarPath = 'SC_Nred_VarPath'; -- Node-Red http-node path to interact with -- Symbol and text table local symbolTable = { -- Symbols to show in this VD buttonIcon = 'Balcony', -- Symbol representing activating this button (for VD Label) buttonText = 'Alarm', -- Text representing activating this button (for external log) timeLastRun = 'Time: ' -- Symbol representing time of last run } -- Node-Red http-node values to send local sendName = 'HC2_Alarm_Balcony'; -- Node-Red variable name to use local sendValue = 'Balcony'; -- Node-Red variable value to use local sendType = '2'; -- Node-Red variable type to use -- Types: 0 = Integer, e.g. -1, 1, 0, 2, 10 -- 1 = Float, e.g. -1.1, 1.2, 3.1 -- 2 = String -- 3 = Date in format DD/MM/YYYY -- 4 = Time in 24 hr format HH:MM -- 5 = DateTime (but the format is not checked) local sendLog = tostring(symbolTable.buttonText.. os.date(" %d/%m/%Y %X ")..symbolTable.buttonText..' --> '..sendValue); local sendPath = 'hc2_alarm'; -- Debug options local debug = true; -- Enable (default, true) or disable (false) general debug output local debugCommands = true; -- Enable (true) or disable (false, default) debug output of command sending to Homey -- ------------------------------------------------------------------------------------------ -- Initialisation of code (do not change unless you know what you are doing!) -- ------------------------------------------------------------------------------------------ local selfId = fibaro:getSelfId(); local selfLabel = 'RedNodeAlarmLabel'; local function debugLog(_logString, _logStringColor, _logValue, _logValueColor) fibaro:debug('<span style="color:'.._logStringColor..'"> '..tostring(_logString)..' </span><span style="color:'.._logValueColor..'"> '..tostring(_logValue)..'</span>'); end -- ------------------------------------------------------------------------------------------ -- Code (do not change) -- ------------------------------------------------------------------------------------------ -- store values (store scene-trigger as the last) fibaro:setGlobal(globVarValue, sendValue); fibaro:setGlobal(globVarType, sendType); fibaro:setGlobal(globVarLog, sendLog); fibaro:setGlobal(globVarPath, sendPath); fibaro:setGlobal(globVarName, sendName); -- Scene-trigger fibaro:call(selfId, "setProperty", "ui."..selfLabel..".value", symbolTable.buttonIcon..' '..symbolTable.timeLastRun.. os.date(" %d/%m/%Y %X ")); fibaro:log(symbolTable.buttonIcon); if debugCommands then debugLog(symbolTable.buttonIcon..' '..symbolTable.timeLastRun.. os.date(" %d/%m/%Y %X. "), 'orange', 'Variable name: '..sendName..', type: '..sendType..', value: '..sendValue, 'yellow') end; Node-Red Nodes examples: Receiving data and respond with 'OK' Processing content of received values: Example Commandfilter code with 5 outputs: var input = { payload: msg.payload }; // Output 1 (msg.payload) var hc2AlarmAlgemeen; // Output 2 (HC2_Alarm_Generic) var hc2AlarmGarage; // Output 3 (HC2_Alarm_Garage) var hc2AlarmBalkon; // Output 4 (HC2_Alarm_Balcony) var add2Log; // Output 5 (add2Log) // --> Output 1 (msg.payload) // Content of payload: // Name: msg.payload.name // Value: msg.payload.value // Type: msg.payload.type // Log: msg.payload.log // --> Output 2 (HC2_Alarm Generic) if (msg.payload.name === "HC2_Alarm_Generic") { hc2AlarmAlgemeen = { payload: msg.payload.value }; add2Log = { payload: msg.payload.log }; } // --> Output 3 (HC2_Alarm Garage) if (msg.payload.name === "HC2_Alarm_Garage") { hc2AlarmGarage = { payload: msg.payload.value }; add2Log = { payload: msg.payload.log }; } // --> Output 4 (HC2_Alarm Balcony) if (msg.payload.name === "HC2_Alarm_Balcony") { hc2AlarmBalkon = { payload: msg.payload.value }; add2Log = { payload: msg.payload.log }; } // Set to proper outputs return [ input, hc2AlarmGeneric, hc2AlarmGarage, hc2AlarmBalcony, add2Log ]; How to get snapshots from IP-camera and send to Telegram: https://github.com/guidone/node-red-contrib-chatbot/wiki/Examples Updates, changes and additional info: 20170527 Setup Raspberry Pi with Node-Red Short Guide 20171017 Setup Raspberry Pi with MQTT (Mosquitto) Short Guide Beware, this is not out-of-a-box solution. Just want to share this example because the possibilities are huge! Greetings, Lambik
  • Create New...