New Plugin - XBMCState - Xbmc addon

Will have been easier if i had correctly update the plugin the first time. sorry for that i didn’t know that even if you do small change to the plugin micasavere need to approve it again. I edited the post that give the dropbox to resolve the problem.

Sorry again

Just to inform you that I successfully installed the plug-in.
I’m now able to dim-up lights when pausing and fade-out when resuming.

Nice work, thanks !

Can confirm the is_night code works.

How do you get lights to ramp up and down need to look in to that.

Thanks

Good to see that peaple got it work. I check a little and there a work around to retrieval in python some xml file of the vera so i could maybe add a night option in the menu so the option will be no event send, send event at night or no event send. What do you thing guy, will it be useful?

If it makes it easier for users might be worth doing.

So do you have any other plans for this XBMC addon? I would love to see a full Vera / XBMC addon where you can control Vera devices and run scenes, view IP cams, see status of devices etc from the XBMC UI. I had this functionality in Windows Media Center and it was really neat!

I just set this up to work in conjunction with the ramp up and ramp down addins. It works but the ramping of the lights in the room isn’t as smooth as I would have liked, don’t think these addins are designed for quick ramping and more for longer gradual ramping in a waking up out of bed type of scene.

When I start or resume a video in Xbmc the lights ramp down from 100% to 25% within 10 seconds. When I stop or pause the video the lights ramp up from 25% to 100% brightness within 10 seconds.

[quote=“Thomasss, post:22, topic:174337”]Just to inform you that I successfully installed the plug-in.
I’m now able to dim-up lights when pausing and fade-out when resuming.

Nice work, thanks ![/quote]

How are you fading out the lights?

When I first setup the XBMC addin and when I hadn’t setup these ramping addins, the lights would just turn off and on quickly.

Thanks

Hi all,

Is the new XBMCState app up on the store?
I don’t see it.

Cheers

[quote=“pocster, post:28, topic:174337”]Hi all,

Is the new XBMCState app up on the store?
I don’t see it.

Cheers[/quote]

Its there if you in Vera go to Apps tab Install Apps and search for XBMC.

But I think that is the wrong version and you need to manually install it as described earlier in this thread.

EDIT: Maybe its gone, I just did the above and its not there now.

It seems like micasaverde have approve the the plugin. It strange cause if you go to www.ap.mios you gone a see it, it the first one in the new tab. However it does not show in the vera ui app. I thing that it will take some time for the server to show it.

Yesterday i hade a little time, to continue the add of the night option. I was able to take information of a device in json and send the event if that switch was on. So to option, i could add another line in the xbmcstate plugin that show the night or day mode and the xbmx plugin will check it or use a simple plugin that is in the market place, it create a virtual switch that it turn on when night mode is activate. For now, for my test, i use this plugin and it actually work good.

[quote=“cw-kid, post:27, topic:174337”]How are you fading out the lights?

When I first setup the XBMC addin and when I hadn’t setup these ramping addins, the lights would just turn off and on quickly.

Thanks[/quote]
I’ve made it the simpliest possible by creating two scenes : dim-up and dim-down.
Dim-up is triggered by player state change to Pause
This scene put the Fibaro dimmer at 50%
Dim-down is triggered by player state change to Resume
This scene put the Fibaro dimmer at 50%

The Fibaro make a smooth change but pretty fast. I don’t know if it possible to make it smoother (maybe with a seting like “dim speed”).
With Delays it’s possible to make the change in multiple step (ie : 1s : 40% ; 2s : 30% ; 3s : 20s). Didn’t try it but guess the step will be visible.

Hope it help.

Got a flash, be sure to uninstall old version and device of the xbmcstate and it should now appear in the ui app. Let me know

[quote=“Thomasss, post:31, topic:174337”][quote=“cw-kid, post:27, topic:174337”]How are you fading out the lights?

When I first setup the XBMC addin and when I hadn’t setup these ramping addins, the lights would just turn off and on quickly.

Thanks[/quote]
I’ve made it the simpliest possible by creating two scenes : dim-up and dim-down.
Dim-up is triggered by player state change to Pause
This scene put the Fibaro dimmer at 50%
Dim-down is triggered by player state change to Resume
This scene put the Fibaro dimmer at 50%

The Fibaro make a smooth change but pretty fast. I don’t know if it possible to make it smoother (maybe with a seting like “dim speed”).
With Delays it’s possible to make the change in multiple step (ie : 1s : 40% ; 2s : 30% ; 3s : 20s). Didn’t try it but guess the step will be visible.

Hope it help.[/quote]

My side lamps in the lounge are just connected to ACT Home Pro Dimmer plug-in modules.

I created a how-to guide on my blogs

Please check it out and let me know if I made any mistakes or if anything should be changed?

I started a thread over on the XBMC Forums, I couldnt see an existing one?

http://forum.xbmc.org/showthread.php?tid=156705

Thanks

[quote=“Thomasss, post:31, topic:174337”][quote=“cw-kid, post:27, topic:174337”]How are you fading out the lights?

When I first setup the XBMC addin and when I hadn’t setup these ramping addins, the lights would just turn off and on quickly.

Thanks[/quote]
I’ve made it the simpliest possible by creating two scenes : dim-up and dim-down.
Dim-up is triggered by player state change to Pause
This scene put the Fibaro dimmer at 50%
Dim-down is triggered by player state change to Resume
This scene put the Fibaro dimmer at 50%

The Fibaro make a smooth change but pretty fast. I don’t know if it possible to make it smoother (maybe with a seting like “dim speed”).
With Delays it’s possible to make the change in multiple step (ie : 1s : 40% ; 2s : 30% ; 3s : 20s). Didn’t try it but guess the step will be visible.

Hope it help.[/quote]

Here is what I find when using these ACT HomePro Plugin Dimmer modules.

If in Vera on the Devices tab. I turn on the lamp when it is off, it comes on and has a nice smooth fade up to 100% It I turn the device off it has a nice smooth fade to 0%

However when using scenes for these lamps like Scene1 Lounge 25% / Scene2 50% / Scene3 75% etc when I use these scenes I lose the nice smooth fading affect and it just jumps up and down to those percentages.

Thanks

Ah yes!

Need to uninstall for it to install!
Got-it!. Will try it later.

Quick question Mic. You can check via XBMCstate if audio/video has started/ended is it possible to ‘know’ if a ‘program’ or ‘addon’ (like application launcher) has started or ended???
Anyway; how do you ‘know’ what states XBMC supports? i.e. wheres a list of the possible states it can return…???

Cheers again!

Need tester
You will see bellow my last version(test) of my xbmc addon plugin. I really need you guy to test it.

Change:
With the installtion of the day or night plugin in vera, your now able to send event only when it night. For sure you could also send event all the time, in the addon option you will have 3 choice, (No, Yes, Night).

Install the xbmc addon version bellow in attachment
Install the addon with the micasaverde day and night plugin (take note of the day and night device.
Go to the addon setting and put the day or night device id
Select night for the event.
For the test, you could switch the day or night device manually. I think that it will return to the actual state after 5 minutes.

So now if you select night, event will be send only when it night mode in vera.
For sure i will like to put the day and night in the XBMCState plugin but dont have enough time right now.

Anyways i really will apreciate you guy if you could test it and give me some feedback on the os that you are.

It doesn’t work for me, it sends the signal to turn the lights on/off, no matter what the ‘Day or night’ switch is set to.

Win7 64 bit

If I go back to my LUUP code, which also checks to see if either lights are on, then it doesn’t bother sending the signal to turn them off.

[code] local lul_tmp = luup.variable_get(“urn:upnp-org:serviceId:SwitchPower1”, “Status”, 51)
local lul_tmp2 = luup.variable_get(“urn:upnp-org:serviceId:SwitchPower1”, “Status”, 40)

if ((((lul_tmp == “1”) or (lul_tmp2 == “1”)) and ( luup.is_night() ))) then
return true
else
return false
end [/code]

Just to be sure, did you change event to night? And reboot xbmc? Cause the code work on my mac and on windows.

Anyone else seeing this?

If I manually stop video playback my lights brighten up.
However if I leave a video to finish playback itself and it stops at the end, my lights stay dimmed.

Thanks