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
Mohamed Refaat 7
Hi,
I have HC3 with multi slaves HC3L. I created a scene that can be trigerred by multi devices.
In the scene, there is a different approach of controlling lights according to the trigger device. How can I get the trigger device id to resolve this issue. I know I can make a scene for each trigger device, but this will increase no. of scenes in a massive way.
I have already tried all the following with no success:
1. local Trigger_id = sourcetrigger.event.data.deviceId
2. local Trigger_id = trigger.event.data.deviceId
3. local Trigger_id = json.encode(sourceTrigger.value.deviceid)
4. local Trigger_id = json.encode(Trigger.value.deviceid)
5. local trigger = fibaro:getSourceTrigger()
Trigger_id = trigger['deviceID']
All above result either in errors or 'nil' value. Any clue or help is much appreciated
Link to comment
Share on other sites
4 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.