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

Question
colibri 0
Hello guys,
My first post here.
I've made some research and now I know (of course it is obvious to experienced devs but confusing for beginners) you can't write LUA code in the same way in VD and scenes.
Ok I don't know why developers decided to make it so but it's fact you can't use Net. in scenes. Yes there is net.HTTPClient workaround for Net.FHttp but I need Net.FTcpSocket and it seems there is no substitution for that works in scenes.
Probably my task can be solved in an easier way, but my mind is burning and I'm going slightly mad ))
I just want to make z-wave doorbell.
I have Fibaro Universal Binary Sensor for my doorbell button ( Fibaro please release Button ASAP!
Please login or register to see this image.
/emoticons/default_icon_smile.gif" alt=":-)" /> )I have Logitech Media Server to play home music and I want to use it as unit plays doorbell,mp3 )
It can be easily achieved by the following code ( credits go to i-magin from
Please login or register to see this link.
):Please login or register to see this code.
It works in Virtual Device just perfectly, sending by TCP text string to make player plays specific mp3 file.
Of course ( just yesterday I was thinking WTF
Please login or register to see this image.
/emoticons/default_icon_smile.gif" alt=":-)" /> ) this code doesn't work in scenes because of Net.FTcpSocket is not defined there.Do you guys think any chances for me?
My own list:
Option 1:
Find out how to run TCP socket function in scenes
Find out how to run code connected to VD from scene, like DoorBell.run
Option 3:
Something else I currently didn't realized
Option 4:
Give up ( not an option really
Please login or register to see this image.
/emoticons/default_icon_smile.gif" alt=":-)" /> )Thank you all.
Edited by colibri3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.