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


FJW

Member
  • Posts

    19
  • Joined

  • Last visited

About FJW

Profile information

  • Country
    Nederland
  • Gateway/s
    Home Center 2

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

FJW's Achievements

Newbie

Newbie (1/8)

2

Reputation

  1. Hi, I was looking fora n IR remote control to use with my HC2 but found nothing that suited my needs. A few weeks ago I came across a linux programm called “TriggerHappy”. Triggerhappy claimed to trigger events for key presses. Although I am NO linux expert I looked around the internet for more information about triggerhappy and now I have a working IR remote control that does everything I wanted. If you can control HC2 via api calls, you can control it via triggerhappy. I use “curl” to send the commands. I had on old Raspberry Pi (I thing model 3) and an extra Flirc USB IR receiver and, of course, a power supply. The Flirc IR receiver converts ir remote control signals to key presses. This can easily be configured with the software from Flirc. On the RPI I installed Raspbian Buster, this comes with “TriggerHappy preinstalled”. The triggers for triggerhappy must be stored in: /etc/triggerhappy/triggers.d and can be any name but must have the extension: .conf. I called mine: remote.conf. In this conf file you can add all the keys for your remote control. Together with the curl command to execute. After creating / changing the conf file you must restart triggerhappy to activate the changes with the following command: sudo systemctl restart triggerhappy Or sudo /etc/int.d/triggerhappy restart On my HC2 I created a Virtual Device with buttons for my remote. I have a “remote” users that only has rights to this VD (but you could also access scenes). Just a safety precaution. I use this user in the curl command. Now you should have a working IR remote control for your Home Center. I am not sure if it also would work with HC Lite. Here are a few of my conf file entries: (see TriggerHappy for explanations) KEY_P 1 /usr/bin/curl -u USER:PWD -S "http://HC_IP/api/callAction?deviceID=309&name=pressButton&arg1=4" KEY_P is the key on the keyboard, 1 stands for key press and after that is the curl command. Ctrl End key combination: KEY_END+KEY_LEFTCTRL 1 /usr/bin/curl -u USER:PWD -S "http://HC_IP/api/callAction?deviceID=309&name=pressButton&arg1=1" Press VD button: KEY_SPACE 1 /usr/bin/curl -u USER:PWD -S "http://HC_IP/api/callAction?deviceID=309&name=pressButton&arg1=4" Call scene: KEY_F1 1 /usr/bin/curl -u USER:PWD -S "http://KODI:[email protected]/api/sceneControl?id=65&action=start" Cheers, FJW.
  2. I have 3 HikVision camera's and they are all working but I had to make sure that the web verification is set to: basic (or digest/basic). digest alone will NOT work.
  3. I have 2 HIKVision cameras and included them successful in HC2. I only managed to get the JPG working but for my purpose (take pictures when doorbell rings and when alarm triggers) that is more than enough. Here are my settings: I hope this helps. Cheers FJW.
  4. Hi fibarouser, I have chosen for: Home Remote - http://thehomeremote.com/ It is free. There is A LOT you can do with it and there are A LOT of plugins and one of them is Fibaro. For Fibaro there are only scenes and devices available but via HttpClient calls you can also get the GlabalVariables. I just finished my setup: Cheers.
  5. I found my answer and it is easier than I thought: local solar = api.get("/devices/" .. SolarPowerID); solar.properties.power = produced_solar_power; solar.properties.energy = total_produced_power; api.put("/devices/"..SolarPowerID, solar); Cheers.
  6. Hi, I managed to get the current power produced by my solar panels but now I want to assign that value to an unused switch so I can see that value in the energy panel. I found a solution from @deozel but that only works in a VD and I need it in a SCENE. Can someone provide me with the code to achieve that in a SCENE? Thanks, FJW.
  7. Thanks, I was afraid that was the case. I can press a specific VDEV button in a block scene so why not in a magic scene. Please Fibaro, add this feature. FJW
  8. Hi, I am wondering if it is possible to use virtual devices in magic scenes? What I want to do is: When a button of my wallmote remote is pressed then a certain "button" of a VD should be pressed. It looks to me that it is not possible other than creating a scene that does that. FJW
  9. Thanks petergebruers, I just tried it and ran into a problem. I made a scene to switch of a lamp after 60 sec. (just as a test) after movement was detected so: sensor breached. --[[ %% killOtherInstances %% properties 103 value %% weather %% events %% globals --]] local startSource = fibaro:getSourceTrigger(); if ( ( tonumber(fibaro:getValue(103, "value")) > 0 ) or startSource["type"] == "other" ) then local int aantal = fibaro:countScenes(); fibaro:debug("Power save count: " .. aantal); setTimeout(function() fibaro:call(62, "turnOff"); end, 60000) fibaro:debug("Power save count end of the scene!"); end What I noticed is that the lamp (ID 62) never switched off??? When I used a delay of 5 sec. it worked. That got me thinking. After about 10 sec. the sensor goes back to safe and that also is registered by the scene and kill the running one. Since that is not the trigger, the scene is not started again and the light will NOT go off. What I have to do is make the scene trigger on going safe again (== 0) and than it works. Do you know if there is another solution?
  10. Hi 3JL, No, I'm not using loops, I'm trying to keep it as simple as possible (if I can). I have a lighting sceme that I want to use to do all of my lighting needs in the house. I use "sleep" to wait until another lamp should turn on. The type of lighting is dictated through a variable and the variable in turn is controled by a light sensor. So theoretically it is possible to switch to another lighting when there is still one running and I want the last trigger the onlu one to be running.
  11. Hi, Is there a methode to stop all instances of a scene EXCEPT the last started. I tried fibaro:abort() but that stops only the last started instance and leaves all other running. Thanks.
  12. Great, Tried it and it works, Thanks. Do I need to use the button number (2) or can I also use the ID which is a string ("ButtonDark")? FJW
  13. Hi, I'm new to HC2 and getting HC2 to know little by little. I have a VD to control my airco. I have three buttons, Power toggle, Power on and Power off. I have Power on and Power off working. I use LUA for all three buttons. Is it possible to control the Power on and Power off buttons from the Power toggle button? If Yes, could someone please provide me with some sample code? Thanks, FJW.
×
×
  • Create New...