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 'Virtual Device'.

  • 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 there, I am facing such a problem as I can't send anything by using TCP connection from Fibaro to my Raspberry Pi using a C language's Socket Server. For more information, I am leaving my C's Socket Server as below. I can use telnet from my computer to send string to Raspberry Pi but I can't receive any string send from the Fibaro. I am using Raspberry's gpio to send Infrared code. #include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> int main(int argc, char *argv[]){ int sockfd = 0,forClientSockfd = 0; sockfd = socket(AF_INET, SOCK_STREAM,0); int port = 8982; if(sockfd == -1) printf("Failed to Open Socket.\n"); struct sockaddr_in serverInfo, clientInfo; int addrlen = sizeof(clientInfo); bzero(&serverInfo, sizeof(serverInfo)); serverInfo.sin_family = PF_INET; serverInfo.sin_addr.s_addr = INADDR_ANY; serverInfo.sin_port = htons(port); printf("Starting Server at Port %d", port); bind(sockfd,(struct sockaddr *)&serverInfo,sizeof(serverInfo)); listen(sockfd,5); char sock_message[] = {"Hello\n"}; forClientSockfd = accept(sockfd,(struct sockaddr*) &clientInfo, &addrlen); send(forClientSockfd,sock_message,sizeof(sock_message),0); char inputBuffer[256] = {}; while(1){ recv(forClientSockfd,inputBuffer,sizeof(inputBuffer),0); printf("Get:%s\n",inputBuffer); } } The Client Server's Code in Fibaro HC2 as below, and I am using a button to send String. if not (started == 'YES') then started = 'YES' tcpSocket = Net.FTcpSocket("",8982) end Thanks
  2. I get the following JSON string from my device in a browser by typing the IP of my device: {"data":{ "id":"8200007A","type":"8","detector":"SI29BG","voltage":382,"cpm":14,"temperature":9.45,"humidity":48.29,"pressure":100281,"voc":12800000,"co2":399,"noise":39,"ch2o":0.00,"pm25":3,"uptime": 107787}} is it possible to import these values into a virtual device in HC2? The closest I have found is: local urad = Net.FHttp("") local urad = Net.FHttp("{{}}",80) local urad = assert(io.popen('curl')) but these will not get the json string This is a part question for my thread:
  3. hello all. i have just bought some Sonos speakers and wanted to integrate with home center 2. first part is to control then second part text-to-speech workaround whilst i was going through the forums i found the info i needed scattered around different threads and the original thread was very long, so i have thought i might make it easier by creating a small quick guide: First thing is all credit to the virtual device goes to krikroff for the VD, original thread here - http://forum.fibaro.com/index.php?showtopic=12344 I have created a video demo instead as it was easier to show rather than write. video link is as above. enjoy... download link here: http://www.yorkshireautomation.co.uk/downloads/sonos.zip
  4. How can I add button in virtual device ( Remote for TV), by pressing it I can send command for channel No. Ex. Button Name MTV - which will send IR code for digit 2,3,4
  5. So, I don't know LUA, so I'm using commands to set up my sound system. I did buttons with preset volume settings: <12VO860x0D0x0A (This sets up to max that is 38) This is working perfectly. How can I set up a slider and make it work with the volume? Should something like this work? <12VO((_sliderValue_ / 100) * 38)0x0D0x0A
  6. Version 1.0.1


    1. The TCP Port setting is used to store the input timeout in seconds. Adjust as required. 2. Change the myGlobal button and code to suit the name of the global you wish to set.
  7. Version 1.0.0


    Virtual device for control of Daikin air conditioners with the SKYFi addon. (untested)
  8. Hi guys, I have used the Sonos VD before with the SONOS play:1 speakers and the Fibaro HC2, however I am planning to buy a Sonos One (with built-in Alexa), has anyone tried using the VD with this? Thanks, Prankit
  9. I am writing a mobile app where I want to change the value of a virtual device label from it. Do I really have to grab the json, modify and send it back ? Is there no way to run the equivalent of setproperty ? Background. My wife keeps losing her phone several times a day. So I have installed three beacons (for testing), I have another 20 to install. My app can now figure out which room the phone is in. All I have to do is to have a virtual device with a label for each member of the family. The app will update the location and we will know where the phone was last seen.
  10. I'm trying to understand the function/purpose of the option favourite which is visible when creating a label in a virtual device. I can mark and unmark this, but doesn't seem to have any effect.
  11. DonZap


    Hi I am new here, so sorry if I post this at the wrong forum I'm using fibaro HC2 together with google home by ifttt. I have created a user who only has access to a virtual device that I send the http command to. It works fine when I using device ID directly: http://User:Password@/api/callAction?deviceID=93&name=turnOn but when i usen the button indside the virtual device, it dose not work at all: http://User:Password@/api/callAction?deviceID=201&name=pressButton&arg1=button0 and I am getting the virtual device ID from the http link: /fibaro/en/devices/virtual_edit.html?id=201 I have no idea why it dose not work, its pretty Straight froward? thanks in advance for your inputs
  12. Hi ALL including the moderators @T.Konopka and @I.Srodka! I'm not sure where to post, because there is no RFC section, but I like to propose an RFC for the Virtual devices: 1. Make it possible same as for the scenes or physical devices to make a VD Hidden in the system. 2. Make it possible to stop the Main Loop in a VD. Specially option 2. can help to prevent disasters and is also very useful for testing purposes. Thank you very much for your attention.
  13. Hello, I can put data in Virtual device labels with a for loop in LUA code: fibaro:call(63, "setProperty", "ui." .. Labels[n] .. ".value", kwh[n] .. " Kwh") What property (like value) do i use to change the name of these labels? Where can i find this documentation? (it is not in http://myhc2ip/docs) Thanks!
  14. Hi, I am complete newbie trying to get up to speed with Fibaro/Lua. I have a HC2 running 4.160, several Fibaro Dimmers, a Netatmo weatherstation with two extra indoor modules, all imported into HC2, many Philips Hue lamps (not yet imported into HC2, working on it) and a HeatIT/Multireg Z-wave thermostat for my electrical floor heating in my living room. I find the thermostat is very inaccurate and the room temperature drifts many degrees. Also it only displays setpoint temperature, not actual temperature so I am not sure which tempeature the thermostat "sees". I have a Netatmo weatherstation indoor module in my livingroom that I would like to be used as thermostat room sensor instead of the built-in sensor, alternatively use the average between the two sensors. What is the simplest way of achieving this? I have recently chosen the Netatmo as the main room temperature sensor, but I assume this does not achieve what I want. Also I have considered creating an association between the Netatmo and the thermostat, but have not been able to find out how to do this. I tried searching forum and internet in general. Would appreciate any help the community can provide.
  15. Hi All, So, I have the LG tv plugin installed but apparently it cannot turn the tv on from standby. My thoughts are to write a scene to send an IR command from a GC ITACH that I am already using for Roomba etc. Anyone help me on how to write the scene, and get the standby button on the plugin to trigger it? Many thanks
  16. Hi, I would appreciate help to find the correct string to trigger HUE emulated devices on HA Bridge. The purpose for now, is to control Harmony Activities in block scenes on Home Center Light. The device to turn on/off, on HA Bridge ( with ID 24: A functioning http request using the Postman app in Chrome: The string I have tried to use in the Virtual Device is not working. This is from the VD found on this forum for Phillips HUE. PUT /api/test/lights/24/state HTTP/1.10x0D0x0AContent-Length: 120x0D0x0AContent-Type: application/json0x0D0x0A0x0D0x0A{"on":true} VD screenhots:
  17. I have an VD to gather real time values for monitoring battery bank. I can see these values in HC2 but not in Fibaro App (android). Is there an Fibaro App bug? Could be fixed somehow? Thank a lot for any feedback, Tomas
  18. Hi, Does anyone has a smart idea/code to get the device ID/Name of the device which triggered the alarm? Preferable a solution with flexible device detection, meaning, without the need to store the ID's in static tables in code. Thank you in advance!
  19. Hi, I am using HC-2 to configure all my Home Automation system. I have created Virtual device to control IR devices. As to show case Lable I need to code using Lua. Can any one tell me what's wrong with following Lua code. local hc = fibaro:getSelfId(); local ip = fibaro:getValue (hc, 'IPAddress'); local port = fibaro:getValue (hc,'TCPPort'); tcpSocket = Net.FTcpSocket (ip,port); fibaro:debug(hc); fibaro:debug(ip); fibaro:debug(port); tcpSocket:setReadTimeout(3000); tcpSocket:write("sendir,1:1,1,36337,1,1,95,33,16,16,16,16,16,32,16,32,32,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,32,16,16,32,16,16,16,4651\r"); tcpSocket:disconnect(); fibaro : call(hc, "setProperty", "ui.Label1.value","20°C"); For debugging purpose, I have used socket tester. On it, some time I am able to receive string, some time not. Some time socket connection remain open. Can any one help me. Is there any possibility to have problem with router? AC_Temp.vfib
  20. Dear forum, I googled a lot but cannot seem to find a solution. I bought a Philips Hue motion sensor and want to use it in my scenes. I wrote my own VD (loosely based on @Sankotronic's Hue VD) in order to use the motion sensor in my scenes. However, the response time is very slow. I read somewhere about a 3 second delay, not sure exactly what it is and if you can influence that. It correlates however with my observations that the VD seems to trigger itself every 3 seconds. For a motion sensor, you want instant response without delay. Anybody any suggestion how to speed up the VD response or how to read the data from the Hue motion sensor faster? I pasted my VD source below. ----------------------------------------------------------------------------- -- Philips HUE Motion Sensor Virtual Device ----------------------------------------------------------------------------- local hueTemperatureDeviceID = 2 local hueMotionDeviceID = 3 local hueLightlevelDeviceID = 4 -- enter name of the user that you added to the HUE bridge local hueUser = "your-user-here" -- enter icon ID's for corresponding status of the virtual device local iconOk = 1048 local iconUnreachable = 1033 local iconError = 1034 local debug = false -- get this virtual device ID vDeviceID = fibaro:getSelfId() -- get IP address and TCP port for PhilipsHUE bridge hueIP = fibaro:get(vDeviceID, "IPAddress") huePort = fibaro:get(vDeviceID, "TCPPort") -- connect to the Hue bridge Hue = Net.FHttp(hueIP,huePort) -- TEMPERATURE response, status, errorCode = Hue:GET('/api/'..hueUser..'/sensors/'..hueTemperatureDeviceID); -- continue if HTTP status code is 200 if (tonumber(status) == 200) then jsonTable = json.decode(response) -- get the temperature data hueTemperature = jsonTable.state.temperature if debug then fibaro:debug("hueTemperature = " .. tostring(hueTemperature)) end fibaro:call(vDeviceID, "setProperty", "ui.temperature.value", tostring(hueTemperature/100)) fibaro:call(vDeviceID, "setProperty", "currentIcon", iconOk) else fibaro:log("Hue: Bridge not reachable") fibaro:call(vDeviceID, "setProperty", "currentIcon", iconError) end -- MOTION response, status, errorCode = Hue:GET('/api/'..hueUser..'/sensors/'..hueMotionDeviceID) -- continue if HTTP status code is 200 if (tonumber(status) == 200) then jsonTable = json.decode(response) -- get the motion data hueMotionDetected = jsonTable.state.presence if debug then fibaro:debug("hueMotionDetected = " .. tostring(hueMotionDetected)) end fibaro:call(vDeviceID, "setProperty", "ui.motionDetected.value", tostring(hueMotionDetected)) if hueMotionDetected then huelastBreached = os.time() else if huelastBreached == nil then huelastBreached = 0 end end if debug then fibaro:debug("huelastBreached = " .. tostring(huelastBreached)) end fibaro:call(vDeviceID, "setProperty", "ui.lastBreached.value", tostring(huelastBreached)) fibaro:call(vDeviceID, "setProperty", "currentIcon", iconOk) else fibaro:log("Hue: Bridge not reachable") fibaro:call(vDeviceID, "setProperty", "currentIcon", iconError) end -- LIGHTLEVEL response ,status , errorCode = Hue:GET('/api/'..hueUser..'/sensors/'..hueLightlevelDeviceID) -- continue if HTTP status code is 200 if (tonumber(status) == 200) then jsonTable = json.decode(response) -- get the lightlevel data hueLightlevel = jsonTable.state.lightlevel if debug then fibaro:debug("hueLightlevel = " .. tostring(hueLightlevel)) end fibaro:call(vDeviceID, "setProperty", "ui.lightLevel.value", tostring(10^((hueLightlevel-1)/10000))) hueDark = jsonTable.state.dark if debug then fibaro:debug("hueDark = " .. tostring(hueDark)) end fibaro:call(vDeviceID, "setProperty", "ui.dark.value", tostring(hueDark)) hueDaylight = jsonTable.state.daylight if debug then fibaro:debug("hueDaylight = " .. tostring(hueDaylight)) end fibaro:call(vDeviceID, "setProperty", "ui.daylight.value", tostring(hueDaylight)) fibaro:call(vDeviceID, "setProperty", "currentIcon", iconOk) else fibaro:log("Hue: Bridge not reachable") fibaro:call(vDeviceID, "setProperty", "currentIcon", iconError) end
  21. Hi What I want to do is to show from a variable to a ipad fibre display - for example i have setup a variable that changes on a scene called Alarm at Home - I want to display this as a on or off state some how on the iPad in fibre display so that you can see if the alarm in home mode is on or off (active or not active) Just need a simple way to show the state of a variable visually - have tried doing it through a virtual device with no luck.... any help would be greatly appreciated..
  22. HI All, I was driven to get the above cameras due to an impossibility of running data to the camera location- plus they seemed a reasonable prospect being weatherproof and wireless. Cameras add just fine, however I am trying to get a virtual device to control the motion detection on the camera/s. The following command works just fine in a browser : I have tried various iterations of this inside of HC but it has no effect. I.e. GET /config/motion.cgi?enable=no&user=admin&password=mclachlan HTTP/1.1 Any ideas on how to overcome this
  23. Hell All! I am a new user to Fibaro... so far so good... A few questions though... 1. How can I set a widget (iOS) to toggle a device? I assume create a scene, but scenes need trigger, there is no "button" trigger as sone other systems have... This would allow me to toggle a specific device on and off from iphone today screen 2 .I'm not quite sure what a virtual device is, seems like just devices that are IP based? 3. Do not understand variables panel... I can create them IE: Alarm is armed... but doesn't tie into anything... 4. Will the alarm, ARM itself if I have created a GPS zone or will I need to create a scene to ARM and DISARM the system.. Thanks, I appreciate the help!
  24. Hi there, I'm trying to set up a Virtual Device in my HCL to control the Roomba at home over a RooWiFi board. I tried the code shown in this page, but cannot get it to work. I was just wondering if this is because the hub is a HCL (and not a HC2) or something else, anyone with a similar experience that could provide some light? Cheers!
  25. Hi As most people know the custom icons get 'broken' after a recovery I experienced this a few weeks ago and I went to clean up my system today and noticed an odd behaviour. As you can see below the broken icons are below Note - There are 10 that need to be deleted Clicking delete.. and the number broken is 3 Deleting one of the broken icons gives the following... Note - There are now 9 broken icons Can anybody else replicate this HC2 running 4.120, windows 7 machine, Chrome browser thanks -f
  • Create New...