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


  • 1

HC3 and LUA-Editor


Guest kallecux

Question

Guest kallecux


Is there a way - similar to the HC2 - to see the device IDs, properties, etc. while working in the LUA Editor?

Link to comment
Share on other sites

Recommended Posts

  • 0
1 minute ago, Macschimmi said:

Open a 2 browser window or tab.

One page device list, other LUA

Device list doesn't show properties of the devices, only ID and name (room name)

Properties means: value, power, energy, batteryLevel and etc.

In addition you cannot see available actions for device, like turnOn, setLevel, setColor and etc.

You can see that only in block scene when you choose specific device.

Link to comment
Share on other sites

  • 0

we are working on it

Link to comment
Share on other sites

  • 0
On 2/14/2020 at 9:44 PM, A.Socha said:

we are working on it

Very happy with that answer, I just got the hc3 and mis that function in the lua editor 

Link to comment
Share on other sites

  • 0

Got my new HC3, like to experiment with it. So I make a simple scene. Using Block scene. Motion detection set wall powerplug on and after 60 secs turn wall powerplug off.

This works. Now i want to translate that to LUA. press button to Lua.

When the LUA scene is running it is not working.

In LUA code i see now that ID-number  of motion sensor and wall powerplug are not correct added by 1.

When I change to the correct ID number still the scene is not working.

Can anyone explain me what is going wrong ??

Link to comment
Share on other sites

  • 0

@RobS

 

and did you changed the scene from "Manual" to "Auto" after you copied it to lua? By default every converted/copied scene is set to manual, so it will not trigger

 

Please login or register to see this image.

/monthly_2020_02/image.png.2a96b8d033196f45c0d5a53e2d7b79c9.png" /> 

Edited by tinman
Link to comment
Share on other sites

  • 0
On 2/14/2020 at 9:44 PM, A.Socha said:

we are working on it

 

Is there another source of this information in this moment please? This data are crucial for Lua programmers i think.

Link to comment
Share on other sites

  • 0

Please login or register to see this link.

You can find all latest information at

Please login or register to see this link.

Edited by cag014
Link to comment
Share on other sites

  • 0
On 3/3/2020 at 9:49 PM, cag014 said:

Please login or register to see this link.

You can find all latest information at

Please login or register to see this link.

 

Thanks. But i need some source of available device properties and actions like in HC2.

Link to comment
Share on other sites

  • 0
1 hour ago, Incomplette said:

 

Thanks. But i need some source of available device properties and actions like in HC2.

You have two options to find device properties and actions

1. using API    use link  http://<HC-IP>/api/devices/<devID>

2. Create demo block scene and use wanted device as trigger to see list of available properties.

Please login or register to see this spoiler.

 

  

Link to comment
Share on other sites

  • 0
Guest rafal_ll
  • Inquirer
  • W dniu 7.03.2020 o 23:10, cag014 napisał:

    Masz dwie opcje, aby znaleźć właściwości urządzenia i działania

    1. używając API użyj linku http: // <HC-IP> / api / devices / <devID>

    2. Utwórz scenę bloku demonstracyjnego i użyj żądanego urządzenia jako wyzwalacza, aby zobaczyć listę dostępnych właściwości.

    Please login or register to see this spoiler.

    Sorry, the question is out of place. where do you get the hc3 dark interface from?

    Link to comment
    Share on other sites

    • 0

    credit goes to  @jakub.jezek

    execute below in command window.

    curl -X PUT "http://<user>:<passwd>@<HC3-IP>/api/users/2"  -H "Content-Type: application/json" -d "{\"skin\":\"dark\"}"

    This for admin user.

    For any other user, change /api/users/<user-ID>

     

    Logout and login to change the skin

    Edited by cag014
    Link to comment
    Share on other sites

    • 0
    54 minutes ago, cag014 said:

    credit goes to  @jakub.jezek

     

    \"skin\":\"dark\"

     

    the last time i worked with dark mode, my user profile got f* up after update, haven't tried anymore with current Version, as it is disabled by Default, probably by reason, but who know ^^ 

    Link to comment
    Share on other sites

    • 0
    Just now, tinman said:

     

    the last time i worked with dark mode, my user profile got f* up after update, haven't tried anymore with current Version, as it is disabled by Default, probably by reason, but who know ^^ 

    Meanwhile works fine... two days in a row...

    Link to comment
    Share on other sites

    • 0
    2 hours ago, tinman said:

    the last time i worked with dark mode, my user profile got f* up after update, haven't tried anymore with current Version, as it is disabled by Default, probably by reason, but who know ^^

    Interesting. So far good in my case. Although is is not finished, I still wanted to check it out. And I remember that you shared some screenshot of it. So I went poking around.

    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
    Answer this question...

    ×   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...