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 'vd'.
-
Hi! I am working on my first VD and I want to change the text of a button during runtime. fibaro:call(SelfId, "setProperty", "ui.Button21.Label", "new text") fibaro:call(SelfId, "setProperty", "ui.Button21.value", "new text") None of the calls on top is working, I am a little bit frustrated Change a slider value or a text of a label is working fine Any help is welcome ...
-
charset/font in VD text in webinterface / mobile app
Armin_P posted a question in Scenes and Interface
Hello! I would like to know which char/fontset is used for displaying text in a virtual device? Some of the symbols I use are displayed properly some are not, especially in the android application: local grafik = "▄■▀■▄____▄▄▄▄■▀" mobile APP: webapplication: Is it also possible to change the color of the text? The string.format code does not work... fibaro:debug(string.format('<%s style="color:%s;">%s</%s>', "span", color, message, "span")); Thank's for help -
Im trying to control my foscam IP camera (PTZ and other) over the http commands. From any regular browser its a pice of cake. I would like to create virtual device where each button will represent specific command for camera control. I succeeded to create a scene with LUA to execute the commands: --[[ %% properties %% globals --]] local httpClient = net.HTTPClient(); httpClient:request('http://192.168.1.51:88/cgi-bin/CGIProxy.fcgi?cmd=ptzGotoPresetPoint&name=Vchod&usr=AAA&pwd=BBB') However when I use the same code in VD with LUA, it doesn't work. I would like to avoid creating 10 scenes and call the scenes from VD, I would like to execute the code directly from VD. Is it possible? Thanx for any advice.
-
Working SONOS VD and TTS workaround - quick install guide
morpheus75 posted a question in Scenes and Interface
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- 34 replies
-
- 2
-
- sonos
- virtual device
-
(and 1 more)
Tagged with:
-
When I plugin the plug in the power socket from my denon receiver, internally the unit is initializing different settings, like network, etc... when i plugin the unit, the receiver is set to standby, ok. I want to make a lua code whereby it makes a loop with repeat / until...until i get a code back from the unit if it's in standby mode, or on mode, from there it should continue, see below. but it's skips the repeat/until... When the unit is plugged in, no code is been returned... So i was thinking: instead of this: "if not(trim(result) == "PWON" or "PWSTANDBY") then" use "if (trim(result) == """) then" Are there other ways to detect an empty string ? With other words: When no code is been returned, stay in this loop until PWON or PWSTANDBY is been returned. fibaro:log("Connecting..."); tcpSocket = Net.FTcpSocket("10.0.1.155", 23); tcpSocket:setReadTimeout(1000); function trim(s) -- trim leading and trailing whitespaces -- return (s:gsub("^%s*(.-)%s*$", "%1")) end -- Denon is Initializing it's Network -- repeat fibaro:sleep(2000); tcpSocket:write(string.char(0x50, 0x57, 0x3f, 0x0d)); -- requesting for the PWON or PWSTANDBY status ? fibaro:sleep(500); result, err = tcpSocket:read(); tcpSocket:disconnect(); fibaro:debug("Denon Receiver..."..result); if (err == 0) then if not(trim(result) == "PWON" or "PWSTANDBY") then fibaro:sleep(1000) fibaro:debug("...is Initializing"); end end until (trim(result) == "PWON" or "PWSTANDBY") fibaro:debug("Ready to Receive Data: "..result); -- Rest of the code -- Please some help would be appreciated. Thankss a lot
- 13 replies
-
- vd
- repeat/until
-
(and 1 more)
Tagged with:
-
Remotec ZXT120 - AC Panel - Linked Devices
LiG posted a question in Other Devices / Third-party devices
Hi, i'm glad about the new compatibility between HC2 and Remotec ZXT-120 and now i'm trying to test it with Linked Devices, Heating and AC panels. In the Linked Devices - > Air Conditioning configuration I add my Remotec temperature sensor in Main Device option and i'd like to put my Remotec control in "1 Switch" device . It would be helpful to have at least the ability to add a virtual device with 2 buttons on / off that can control my Remotec through the panel but there's no way to add virtual devices. How can i solve it? Regards -
I have found in the forum a useful VD tool that scans all my scenes and looks for a specifi pattern (device id etc). When the script finish , it send an email with the search results. Does anyone know if there is any tool that does the same job against virtual devices ?