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


Bodyart

Member
  • Posts

    1,173
  • Joined

  • Last visited

About Bodyart

  • Birthday 12/18/1950

Profile information

  • Gender
    Male
  • Country
    Earth
  • Gateway/s
    Home Center 3
    Home Center 2
    Other / Inne

Recent Profile Visitors

6,729 profile views

Bodyart's Achievements

Power User

Power User (5/8)

229

Reputation

2

Community Answers

  1. Bodyart

    HMAC-SHA256

    Thnx Eddy 🙏 I will investigate
  2. Bodyart

    HMAC-SHA256

    Hi all! I would like to use SwitchBot API v1.1 which requires HMAC-SHA256 hashing. Here is the procedure. Print the 13 digit timestamp and concatenate it with your token Create a signature using your secret and the string produced in the previous step Convert the signature to upper case For instance, # secret key secret = "" # copy and paste from the SwitchBot app V6.14 or later # open token token = "" # copy and paste from the SwitchBot app V6.14 or later t = 1661927531000 sign = HMAC-SHA256(token + t, secret).toUpperCase() Since Fibaro LUA doesn't allow the use of libraries, this function needs programming. Unfortunately I don't understand that mechanism so I'm not able to code this. I've tried ChatGPT to help me, but that didn't work out. Ie here any LUA guru who could help me with this function? Any help is very much appreciated.
  3. Yes, it is possible to open the Wallmote, Behind the mounting plate there are 5 small screws. Uncrewing them will open the Wallmote (see pic.)
  4. These are cheap Switchbot meter BUT: 1. you would need a hub for €35 and 2. it works only in cloud.
  5. *.vfib are files of virtual devices for HC2. It doesn't work for HC3. HC3 uses so called QuickApps with file extension *.fqa, or for encrypted QA's extension *.fqax
  6. getSelfId() works for virtual devices, not for scenes. You didn't mention, that it is a scene you're using. For the scenes you can use: local selfId = __fibaroSceneId BTW For what do you need the scene ID?
  7. local selfId=fibaro:getSelfId() fibaro:debug(selfId) -- not SelfID
  8. ChatGPT writes sh*tty code. I've tried a few times, but it's useless and it doesn't improve it's coding when I correct it's faults.
  9. I've solved it, by changing the name of slider from "Intensity" to "Int", but I still don't understand the issue.
  10. I'm sure and to by sure, I've just copied the word from the slider parameters.
  11. Guys, I have here a weird situation, which I don't really get. I have a slider defined: According to the manual I have defined a QA function: function QuickApp:Intensity(i)local value=i.values[1] self:debug("value", value) self:updateView("sldIntensity", "value", tonumber(value)) end But when I use the slider in QA, I get aan error, which I don't understand: [TRACE] [MOODO_424]: UIEvent: {"values":[45],"deviceId":424,"elementName":"sldIntensity","eventType":"onChanged"} [WARNING] [MOODO_424]: Class does not have Intensity function defined - action ignored Can someone explain, what am I doing wrong? Thanks in advance.
    This is just wonderful! I wonder why didn't Fibaro include all these functionalities, or at least a part of this stuff in their Firmware.
  12. Hi Jan @jgab, great wish list! I hope Fibaro will not only respond to this, but also realize at least some of them!
×
×
  • Create New...