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 'virtual device'.

  • 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. 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("192.168.8.106/j") local urad = Net.FHttp("{{192.168.8.106/j}}",80) local urad = assert(io.popen('curl http://192.168.8.106/j')) but these will not get the json string This is a part question for my thread:
  2. 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
  3. 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
  4. 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
  5. Version 1.0.1

    38 downloads

    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.
  6. Version 1.0.0

    110 downloads

    Virtual device for control of Daikin air conditioners with the SKYFi addon. (untested)
  7. 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
  8. 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.
  9. 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.
  10. DonZap

    IFTTT HC2

    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:[email protected]/api/callAction?deviceID=93&name=turnOn but when i usen the button indside the virtual device, it dose not work at all: http://User:[email protected]/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
  11. 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.
  12. 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!
  13. 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.
  14. 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
  15. 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 (10.0.0.11) 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:
  16. 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
  17. 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!
  18. 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
  19. 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
  20. 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..
  21. 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 : https://210.10.131.251/config/motion.cgi?enable=yes&user=admin&password=password 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
  22. 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!
  23. 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!
  24. 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
  25. Hi all, Is it possible to create a "tapable" virtual device? Meaning that - for example like the Fibaro plug - when you tap it it can execute some LUA code? What I want to do is quite simple: I have automatic lights in the bathroom, which is great. However, sometimes I want to take a bath and I do a) not want the lights to turn off automatically and b) set the lights to the lowest setting. I know how to achieve this in LUA, however I want to have a VD that I just tap to turn it on and off and perhaps change the icon while I'm at it. Is this possible? Thank you for your help, much appreciated. KR, Kristof
×
×
  • Create New...