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. 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.
  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("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:
  3. 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!
  4. 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: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
  5. Hi, I am wondering about the properties of a Virtual Device and how they can be accessed and changed. For instance, if you want to change the icon of a VD you can use a statement like this: fibaro:call(100, "setProperty", "currentIcon", 200); If you want to update a label text you would do: fibaro:call(100, "setProperty", "ui.label1.value", "Label text" ); To my question then: Does anyone know of a complete list of properties applicable to a Virtual Device? For instance: devices which report power consumption use the footer area to display current power usage. Can this area be accessed in a VD too? Someting along the lines of: fibaro:call(100, "setProperty", "ui.footer.value", "Footer text" ); I am reading in Fibaro's documentation of the REST API about how to extract a list of all VDs and their properties/data. There are apparently properties like "caption", and "buttonIcon". The question is if and how these can be set via LUA code. Thanks for any tips and hints. /Per
  6. Hi! I have a Home Center LITE (without LUA support) and I am trying the creat a Virtual Device that can control my Synology NAS music player (AudioStation). It has a good webapi kit, that I can use with HTTP commands, but can't solve it. For example my ip addresses: - Fibaro HCL: 192.168.1.10 - NAS: 192.168.1.20:5000 - NAS l/p: admin:admin This is 3 command to the NAS (login / start music / pause music / etc.): LOGIN: http://192.168.1.20:5000/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=1&account=admin&passwd=admin START MUSIC: http://192.168.1.20:5000/webapi/AudioStation/remote_player.cgi?api=SYNO.AudioStation.RemotePlayer&method=control&action=play&id=__SYNO_USB_PLAYER__&version=2 PAUSE MUSIC: http://192.168.1.20:5000/webapi/AudioStation/remote_player.cgi?api=SYNO.AudioStation.RemotePlayer&method=control&action=play&id=__SYNO_USB_PLAYER__&version=2 I can transform to GET HTTP request as a virtual device button, but doesn't work (e.g.. Pause): GET /webapi/AudioStation/remote_player.cgi?api=SYNO.AudioStation.RemotePlayer&method=control&action=pause&id=__SYNO_USB_PLAYER__&version=2 HTTP/1.1 Host: 192.168.1.20:5000 Authorization: Basic admin:admin(Base64EncodedForm) I think it is ok, but what about Virtual Device advanced settings fields? - Name - Room - IP Address - TCP Port Is these IP Address and TCP Port the HCL's address or NAS's address? Don't working nether Can somebody help me, I fell I am so close! Thanks, Balage
  7. If a temperature sensor is installed in a room, that one is selected as temperature for the room (displayed at several places on the UI and used in heat control or so). Is is possible to have a value of virtual device defined as temperature of the room? Sorry, I found another item about this subject. This can be closed.
  8. 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.
  9. 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
  10. so im quite astonished that in the widget options on the android app, there is NO widgets to quickly access virtual devices. The only option is to open the app and hunt down for which virtual device i want to control., be it VSL for example... it really limits the "quick access" you'd expect from a smart phone/tablet app. Does anyone have any ideas or suggestions for quickly accessing them?
  11. 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:
  12. 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!
  13. 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
  14. 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
  15. 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
  16. 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..
  17. 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
  18. Hello! i Wonder how can i change width of virtual device to get perfect square? now it's very large and take much space for only energy consumption report
  19. 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!
  20. 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!
  21. 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
  22. Hey Guys, Trying to send a HTTP String from my HCL VD but it's not working.. anyone see what I'm doing wrong, String I'm trying to send is: GET https://api.thingspeak.com/update?api_key=MYKEY&field1=
  23. I want to be able to either : send a http request when a switch is pushed - in order to send a command to a GCE IPX800 relay or 'push'a virtual device to send the request when a switch is pushed. I can send a LUA command to the IPX800 and it works. I did not find how to do the same when a switch is pushed. I need to do that because the switches are not directly connect to the lights, ... Thanks a lot for your help. Pierre
  24. Hi. I have a fibaro HC Lite and have recently bought a Sonos Play:1. I would like to use the double click of my kitchen light switch to 'play' the speaker and then again to pause it.I've installed the plugin and have it working but I cannot see the device when in the graphical blocks scene builder, nor is it showing as a virtual device.I also tried to get the hcl virtual device to import but it just kept on saying doesn't support LUA code. Even though it was the specific home centre lite virtual device control plugin from the fibaro website.What am I doing wrong? Any advice would be greatly appreciated as I only bought the play:1 as it works with FibaroCheers,Steve
  25. Hello I have a HC2 v4.130. I wanted to try to create a new virtual device with a simple lua script. However the script always fails with '[ERROR] 15:47:28: line 183: Assertion failed'. The script currently only consists of the following lines: if (fibaro:countScenes() > 1) then fibaro:abort(); end fibaro:debug("run complete") If I remove the 'fibaro:countScenes' command, the script is working. Is it possible, that virtual devices in v4.130 do not understand the fibaro:countScenes() command? What can I do to fix it or to work around this issue? Thanks.
×
×
  • Create New...