Jump to content

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


All-in-One Scene: How to do it Better


cag014

Recommended Posts

For me working correctly the push messages. With this update, no send the push messages to my all phones, only for that one, which is in the JM line added.

Edited by SmartLifeSystems
Link to comment
Share on other sites

  • Topic Author
  • 3 hours ago, SmartLifeSystems said:

    For me working correctly the push messages. With this update, no send the push messages to my all phones, only for that one, which is in the JM line added.

    What do you mean only in the jM line?

     

    Link to comment
    Share on other sites

  • Topic Author
  • 50 minutes ago, Rover said:

    No problems with 5.070?

    Looks like push notifications work with mobile device ID only (user ID not supported in QA anymore)

    Please after an update change push notification to mobile ID of the user.

    Edited by cag014
    • Like 1
    Link to comment
    Share on other sites

    10 hours ago, cag014 said:

    What do you mean only in the jM line?

     

    If I add in the line only my phone, only my phone get the notifications. For me was not so till now. Every phone got the notifications.

    10 hours ago, Rover said:

    No problems with 5.070?

    Only problem, what I see, I can't change the Satel Integra alarm system icons.

    Link to comment
    Share on other sites

  • Topic Author
  • 2 hours ago, SmartLifeSystems said:

    If I add in the line only my phone, only my phone get the notifications. For me was not so till now. Every phone got the notifications.

    So it was a bug in the system!?

    Link to comment
    Share on other sites

    Hi Cag014,

     

    Hi Cag014,

     

    I am having some issues and your recommendation is highly appreciated.

     

    Simple jM command line I am using leads to the below error message.

    My Dimmerlight is a dimmer ( ID 130 ) which I want to set at value 22.

     

    Any suggestion is welcomed.

    {0,"$24clock",{state="value=0",timeSlot="?$sunsetHour+2700?~,~?$sunriseHour-2700?",trueAct={"`Dimmerlights`","setValue,22","",false},falseAct={"`Dimmerlights`","turnOff","",false}}},
    [23.03.2021] [21:42:04] [DEBUG] [AOQ1636]:  [23 Mar 21:42:04] AOQ16369.5 jM hash table:7:~: {0, "$24clock"...}
    {0,"$24clock",{"timeSlot"="?$sunsetHour+2700?~,~?$sunriseHour-2700?","trueAct"={"130","setValue,22","",false,false},"falseAct"={"130","turnOff","",false},"state"="value=0"}}

    (8) Action 'setValue' not found for ID(130) Supported actions:

    `Dimmerlights`Dimmer lights:130:Front court Device's actions are:
    -
    User Defined Actions:
    - turnOn turnOff
    AOQ Supported Actions: (11% in use)
    - addRmd armAlarm debug delAllRmd delLogRmd delRmd
    - disableScene disarmAlarm emitEvent enableScene error killScene
    - logRmd poll powerOutage pressButton reboot rptAction
    - runAction sendEmail sendNote sendPush sendSms sendiPush
    - setConfiguration setGlobal setProfile setRmd setSlider setState
    - setStateDelay setStateFormula setStateValue setTimeDrift setTimeSlot setTimeSpan
    - shutdown startScene trace tts vacOff vacOn
    - verify warning
    Link to comment
    Share on other sites

  • Topic Author
  • 3 hours ago, Dann said:

    Hi Cag014,

     

    Hi Cag014,

     

    I am having some issues and your recommendation is highly appreciated.

     

    Simple jM command line I am using leads to the below error message.

    My Dimmerlight is a dimmer ( ID 130 ) which I want to set at value 22.

     

    Strange... looks like AOQ cannot find any valid actions for the device.

    Are you sure you're using correct device ID? I mean this is not a parent device...

    Could you please post API of the device?

    http://<hc3-IP>/api/devices/130

     

     

    Edited by cag014
    Link to comment
    Share on other sites

    I am away from that location ( so no LAN connected for the moment ).

    Anyhow, please see a shot of picture I took with the relevant datas.

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    12 hours ago, Dann said:

    Hi Cag014,

     

    Hi Cag014,

     

    I am having some issues and your recommendation is highly appreciated.

     

    Simple jM command line I am using leads to the below error message.

    My Dimmerlight is a dimmer ( ID 130 ) which I want to set at value 22.

     

    Any suggestion is welcomed.

    {0,"$24clock",{state="value=0",timeSlot="?$sunsetHour+2700?~,~?$sunriseHour-2700?",trueAct={"`Dimmerlights`","setValue,22","",false},falseAct={"`Dimmerlights`","turnOff","",false}}},
    [23.03.2021] [21:42:04] [DEBUG] [AOQ1636]:  [23 Mar 21:42:04] AOQ16369.5 jM hash table:7:~: {0, "$24clock"...}
    {0,"$24clock",{"timeSlot"="?$sunsetHour+2700?~,~?$sunriseHour-2700?","trueAct"={"130","setValue,22","",false,false},"falseAct"={"130","turnOff","",false},"state"="value=0"}}

    (8) Action 'setValue' not found for ID(130) Supported actions:

    `Dimmerlights`Dimmer lights:130:Front court Device's actions are:
    -
    User Defined Actions:
    - turnOn turnOff
    AOQ Supported Actions: (11% in use)
    - addRmd armAlarm debug delAllRmd delLogRmd delRmd
    - disableScene disarmAlarm emitEvent enableScene error killScene
    - logRmd poll powerOutage pressButton reboot rptAction
    - runAction sendEmail sendNote sendPush sendSms sendiPush
    - setConfiguration setGlobal setProfile setRmd setSlider setState
    - setStateDelay setStateFormula setStateValue setTimeDrift setTimeSlot setTimeSpan
    - shutdown startScene trace tts vacOff vacOn
    - verify warning

    After transition of devices from HC2 to HC3 a lot of actions are not valid anymore. Soft reconfiguration helps.

    Even if you did not came from HC2 soft reconfiguration could help.

    • Like 2
    • Thanks 1
    Link to comment
    Share on other sites

    Thanks Rover,

     

    Indeed, after soft reconfigure on ID 130 ( I did not came from HC2 ) now is working.

     

    Link to comment
    Share on other sites

    Surprise, surprise, we got an Easter present from @cag014 ?: AOQ version 11.3 in the Downloads.

    Especially the new State features in conditional settings are super useful ?

    Have a look at the updated Advanced User Guide.

    Edited by Rover
    • Thanks 1
    Link to comment
    Share on other sites

    Hi @cag,

    No GV conditions possible in trueActState?

    Link to comment
    Share on other sites

  • Topic Author
  • 4 hours ago, Rover said:

    Hi @cag,

    No GV conditions possible in trueActState?

    Strange.. it does work for me

    Could you please post an example?

    Link to comment
    Share on other sites

    3 minutes ago, cag014 said:

    Strange.. it does work for me

    Could you please post an example?

    Please login or register to see this spoiler.

     

    Link to comment
    Share on other sites

  • Topic Author
  • Have tested your line and it works fine..

    Could you please explain what exactly doesn't work

    Link to comment
    Share on other sites

    14 hours ago, cag014 said:

    Have tested your line and it works fine..

    Could you please explain what exactly doesn't work

    Please login or register to see this spoiler.

     

    Link to comment
    Share on other sites

  • Topic Author
  • Now  I can see the syntax errors:

    1.

    trueActState={”&Huisstatus:value=Weg”}

    Should be 

    trueActState={”{&Huisstatus:value=Weg}”}

    or 

    trueActState="{&Huisstatus:value=Weg}"

     

    The format of actions state is the same as lineState or in command condition.

     

    2. Another issue at the end of the line there are too many commas and curly brackets (not the correct order):

    {"$geoAction", {state="enter", lineState={"if {&Geofencing:value=Aan and &BlockGeofencing:value=Uit and &Huisstatus:value=Weg}"}, 

     trueAct={ {"Geofencing","sendEmail,2","Komt er aan","if{&Statuslicht:value<>Disarming}"}, {"&SwitchScene","setGlobal","Disarm"}, 

        {"&PushoverMessage","setGlobal","Geofencing","if{&Statuslicht:value<>Disarming}"}, }, }},

     

     

     

    Link to comment
    Share on other sites

    1 hour ago, cag014 said:

    Now  I can see the syntax errors:

    1.

    trueActState={”&Huisstatus:value=Weg”}

    Should be 

    trueActState={”{&Huisstatus:value=Weg}”}

    or 

    trueActState="{&Huisstatus:value=Weg}"

     

    The format of actions state is the same as lineState or in command condition.

     

    2. Another issue at the end of the line there are too many commas and curly brackets (not the correct order):

    {"$geoAction", {state="enter", lineState={"if {&Geofencing:value=Aan and &BlockGeofencing:value=Uit and &Huisstatus:value=Weg}"}, 

     trueAct={ {"Geofencing","sendEmail,2","Komt er aan","if{&Statuslicht:value<>Disarming}"}, {"&SwitchScene","setGlobal","Disarm"}, 

        {"&PushoverMessage","setGlobal","Geofencing","if{&Statuslicht:value<>Disarming}"}, }, }},

     

     

     

    I have been trapped again by copying text of the Advanced User Guide: {0,400”,{ trueActState=”{600:power<60}” etc. : the quotes are of the wrong kind.

    Please update all quotes in the Advanced User Guide in order to help everyone not becoming the same errors.

    trueActState={”{&Huisstatus:value=Weg}”}, works: TNX cag.

     

    What do you mean with point 2: too many commas and curly brackets (not the correct order):

    - The number of curly brackets is OK

    - The order is correct

    - What about too many commas? I am using the commas the make clear what the end is of f.i. trueAct section. The commas do not make trouble, your parsing is fine!

     

    Edited by Rover
    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...