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

Question
robmac 173
Hi,
I have two plugins in test.
One is a version of the Samsung TV plugin that controls a binary switch when you turn TV on/off. It is in early testing but if anyone would like a copy to test then PM me. Should be ready in the next couple of weeks for testing.
For those of you who still run squeeezebox:
The other is a squeeezebox server plugin that allows control of most functions of your squeezeboxes through LUA or player/server devices.
On setting of the ip and port of your squeezebox server the plugin creates a player device for each connected player.
Automated:
External Amp/DAC Control: Switch on /off an external Amp/DAC when the player is switched on/off
External Amp/DAC powers save: Turns off the Amp/DAC n seconds after play stops or is paused.
From lua/api/buttons:
Syncronise: you can create syncronisation groups from scenes or sync all from server device
Unsyncronise: Either a single player or all connected players from server device.
Turn all off/on: Turn all players connected to the server on or off.
Mute/MuteAll: Mutes unmutes
Pause/PauseAll: Also pauses a group if you mute the master int the group
Various play options: from URL/Directory/Album/Favorites/Tracks/Random
Normal forward, rewind, next track, previous track, stop.
again mail me if you want to test.
For those that are after a multi-room music system on a sensible budget, this is an open-source software project at its best. There are now many DIY hardware options on raspberry PI and similar e.g.
Please login or register to see this link.
. You can have a player with integrated amp for under 100 if you don't have an old PI sitting around. If you do have an old PI even cheaper. Put the sever on your NAS. All details can be found here:Please login or register to see this link.
The plugin framework:
A lot to like about this framework.
The lack of documentation on how to use the UI components makes me unsure if they are complete or if I just have not worked out how to use them. I notice that the documentation has been removed from the developer site. Not sure if this was because the documentation is being updated to the new version of plugins or just a bit of tidy up. It is a pity as I am having to resort to trial and error on use of the list control etc.
Other than that the framework does appear to work very well. You can control/read the rest of HC2 via the api that is exposed as a simple interface on the rest interface of HC2.
On the configuration panel I am having similar issues with the interface components.
For example I am trying to use the select control:
Please login or register to see this code.
Please login or register to see this code.
The selector on the configuration tab just sits there with the loading icon despite the function running.
If anyone has any ideas?
Robert
Edit: Fixed this it was a simple error on my part. In Main.lua I had not returned the result of the function.
If you are implementing actions make sure you return the values back to the calling code:
so my onAction in main.lua looks like this:
Please login or register to see this code.
Please login or register to see this attachment.
Edited by robmac0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.