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
Craig 0
Hi,
I am trying to get a VD ui.lblStatus value to trigger the following scene but it seems to be stopped by the blank lblStatus values prior to receiving the ON or OFF values. Everything else works fine..
Does anyone know why this happens and how to work around it?
--[[
%% properties
46 ui.lblStatus.value
%% events
%% globals
--]]
PushNotificationID = fibaro:getGlobal('PushNotificationID')
local device = 46
local status = fibaro:getValue(device, "ui.lblStatus.value")
print (status)
if status == "OFF"
then
api.put('/scenes/133', {iconID=1023})
fibaro:call(PushNotificationID, "sendDefinedPushNotification", "17");
fibaro:call(2, "sendDefinedEmailNotification", "17");
end
if status == "ON"
then
api.put('/scenes/133', {iconID=1022})
fibaro:call(PushNotificationID, "sendDefinedPushNotification", "16");
fibaro:call(2, "sendDefinedEmailNotification", "16");
end
if status == "OFFLINE"
then
api.put('/scenes/133', {iconID=1034})
end
Please login or register to see this attachment.
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.