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


StarkJohan

Member
  • Posts

    174
  • Joined

  • Last visited

About StarkJohan

Profile information

  • Gender
    Not Telling
  • Country
    Sweden
  • Gateway/s
    Home Center 2
    Home Center Lite

Recent Profile Visitors

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

StarkJohan's Achievements

Learner

Learner (2/8)

6

Reputation

  1. So does this mean that the only way anything other than a light can be triggered is by using a workaround and then saying something like "hey google talk to fibaro?"
  2. As far as I know your only option is to store the "global function" some way (e.g. json formated) in a global variable and import it where it is needed.
  3. Notifications does not work for me lately. Has worked fine until some time ago, last email I received was a couple of months ago (my lan is very stable so I hadn't noticed until today). I'm on 4.180 now.
  4. You're correct! My mistake to some extent. True only for triple click of S1 and all S2 clicks. I was thinking of the workaround script I'm using for my older switches, they're able to work as desired but depending on the controller to 100% (which I don't mind). Dimmers need the double click to go to 100% obviously but decoupling the switches for two and three clicks seems natural.
  5. Very strange indeed. As I said, I do have a couple of the older fibaro switches pre-CentralSceneEvent in operation with a home made "click catcher script" which works fine but the older switches have their drawbacks (no power monitoring etc). Considering all the dimmers work in the desired way I don't see why the switches should have this limitation. Possibly it's a z-wave thing but if this is the case I would assume fibaro could code their own solution to get this working rather easily. If them leaving this working half-assedly generates more sales as people are forced to install a second switch I guess we won't see a fix ever. One workaround would be setting the delay-on AND delay-off timers to a low value (sub one sec would be desirable) and catching the state before the delay to set/reset the state of the light. This works but the current config only supports delay-on OR delay-off which also in my eyes is a suboptimal design.
  6. I just installed my first device using CentralSceneEvent and after editing my old sceneActivation script to catch the event I've got it up and working nicely. However, it seems like a very bad design to add "sceneActivation" functionality without having the physically connected loads independent! If I'm using the button to run a scene I obviously don't want the light to toggle... If there's any use of both activating a scene and triggering the load at once, I for one can't see the scenario where this is desirable. Even so, this "feature" should definitely be configurable using a parameter. I'd love a fibaro comment on this or a hint on where to find more information. At this point I'm inclined to revert to an older version of the switch and using my manual "sceneActivation" script. Of course I can script to make sure the light ends up in the original state but that would mean it would turn on/off briefly when triggering the scenes (double or triple click). Any other solutions to this issue?
  7. Yeah I actually added a slider a couple of days ago as well
  8. So it all works now? Including the status label? If so, thanks for letting me know and good job Any other specific function you're looking for that you can't figure out on your own, please let me know and I might be able to help out.
  9. That's correct. This should obviously be more dynamically scripted for a "proper" VD... I never said it was pretty You also need to activate PHP for OSX. Loading the php5 module in apache should do the trick. Edit the apache config: "/etc/apache2/httpd.conf" Uncomment this line: LoadModule php5_module libexec/apache2/libphp5.so And restart to reload config: sudo apachectl restart To check if it works, just create a simple php file like this pastebin code in your webroot and browse to it. It should display info on your php installation (a huge purple table). https://pastebin.com/AqZHM7W5 To "link" my php api just name the file index.php and put in the location you prefer. In my case this is <ip-of-my-mac>/testzon/itunesremote/index.php
  10. OK. Did some further adding this morning. Using this example you'll be able to do basic controls. Adding more advanced functionality should be rather easy if needed but I have no use for anything else right now. Playing specific playlists or specific songs, enable shuffle, anything applescript can do really. Have a look in the Script Editor -> Window -> Library -> iTunes for a full list of available commands. VD attached. PHP API: https://pastebin.com/ATCPJmtw iTunes.vfib.json
  11. Quick and dirty POC php api for getting basic track info to a VD. Adding player controls is easy and lots of stuff in iTunes is scriptable using Applescript. Can't attach code because of forum "security" (probably because of the exec command). Will have to attach images.
  12. Found my old php files. It's really simple. The issue is getting the permissions right for exec in php. Ha! I can't post the code to the forum because of some lame protection. Not even in code brackets. Lets try an image. /* tell app "iTunes" get name of playlists tell app "iTunes" get count of playlists tell app "iTunes" to stop tell app "iTunes" to pause tell app "iTunes" to play tell app "iTunes" to playpause tell app "iTunes" to play next track tell app "iTunes" to play previous track tell app "iTunes" to get name of current track tell app "iTunes" to get the album of the current track set current_track to the current track set track_album to the album of the current track set track_artist to the artist of the current track set track_comments to the comment of the current track set track_name to the name of the current track */ I other words, no applescript files needed. Just build a php api to exec the osascript commands and you're done. Getting track info and playlists and info like that is possible as well as setting system volume and a bunch of other stuff. Here's some command references. http://alvinalexander.com/apple/itunes-applescript-examples-scripts-mac-reference
  13. I did a POC for this a few years back but never got around to using it. IIRC the setup was as follows. 1. Run the built in web server on the mac that also runs iTunes. 2. Create applescripts for each command needed. One for play, one for next track and so on. 3. Create a simple php api that triggers the applescripts. 4. Trigger the php api from HC2. Should be easy enough to recreate. I'll have a look at it.
  14. I think we will be waiting for this feature a couple of years still, if it will be introduced at all. Unfortunately Fibaro does not make money on supporting advanced users.
  15. Last night my TV updated to a new software version and the HTTP control stopped working. Turns out the setting for PSK was turned back to default during the update. Turning it back solved the problem. I'll just cut and paste the process again from https://github.com/breunigs/bravia-auth-and-remote You need to set your TV to use a pre-shared key. Navigate to: [Settings] → [Network] → [Home Network Setup] → [IP Control] Set [Authentication] to [Normal and Pre-Shared Key] There should be a new menu entry [Pre-Shared Key]. Set it to 0000. If you choose anything else, you need to change the PSK in the send_command.sh script.
×
×
  • Create New...