Search found 2 matches

by Fanfan
Wednesday 22 July 2015 15:56
Forum: LUA
Topic: Lua: Trigger a virtual text sensor
Replies: 7
Views: 4229

Re: Lua: Trigger a virtual text sensor

Hi Thanks, for your feedback. @mrf68: This is the last solution tested and she works fine. Thank @jan_nl: My commandarray type " commandArray['UpdateDevice'] = 'idx|0|Present''" for changing the value of the virtual text sensor is good, when a script who use this command is running, the value change ...
by Fanfan
Tuesday 21 July 2015 22:09
Forum: LUA
Topic: Lua: Trigger a virtual text sensor
Replies: 7
Views: 4229

Lua: Trigger a virtual text sensor

Hi everybody, I have a virtual text sensor (Home_Context ) that displays the status of the house ( Vacant or Present ), and try to trigger a script on his change of value. With an API call, the trigger works, but with a change initiate in a lua script with the command " commandArray['UpdateDevice ...