MPDomoticz - a plugin for Domoticz (1 Viewer)

J-B-N

Portal Pro
December 29, 2005
196
20
Sweden
Home Country
Sweden Sweden
@Zapp
Just found this and added it to my MP but can't configure it, comes back with malformed URL!?

Right now it's configured to default localhost/8080/30 but I can't change that. HELP!

Not the best error message ever... It should be a complete URI in this case http://localhost and Server port 8080...
Do you get it to work? What is the serveradress you are trying to use?

There are a few other bugs in the plugin I guess so let me know and I'll see what I can do.[DOUBLEPOST=1442736118][/DOUBLEPOST]
Hi,

Just wanted to let you know that i have installed this - i made some modifications to the plugin, the feature i needed was to turn on a virtual switch when playing a movie, this allows me to then trigger a scene to change the lighting in the room using a lua script to check time of day etc.

if you want me to send you the code back then let me know.

Nice, yes, please sent the code I will merge it.
 

luke78

Portal Member
April 7, 2014
15
2
45
Goirle
Home Country
Netherlands Netherlands
Hi,

Just wanted to let you know that i have installed this - i made some modifications to the plugin, the feature i needed was to turn on a virtual switch when playing a movie, this allows me to then trigger a scene to change the lighting in the room using a lua script to check time of day etc.

if you want me to send you the code back then let me know.

Regards,

Simon

That's exactly what I am looking for! Can you tell me how you did this??
 

Dj_Moren

Portal Pro
November 7, 2009
171
25
Hello,

Just installed today and have a problem and 2 questions:
- Problem: my Domoticz has enabled user/password authentication. Here it is not the option to set this settings. ¿Are there any plans to add this?
When I try to enter now I have this error trace in logs (I suppose it is due to authentication):
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - Cannot find translation file C:\ProgramData\Team MediaPortal\MediaPortal\Language\MPDomoticz\es.xml. Falling back to English
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - Setting translated strings:
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Favourites.Label = Favourites
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Scenes.Label = Scenes
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Switches.Label = Switches
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Temperature.Label = Temperature
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Weather.Label = Weather
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Utility.Label = Utility
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.All.Label = All
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Dewpoint.Label = Dewpoint
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Gust.Label = Gust
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Status.Label = Status
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Servertime.Label = Servertime
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Sunrise.Label = Sunrise
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Sunset.Label = Sunset
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Lastupdate.Label = Lastupdate
[2017-01-03 12:44:05,353] [Log ] [MPMain ] [INFO ] - #MPDomoticz.Translation.Type.Label = Type
[2017-01-03 12:44:05,385] [Log ] [MPMain ] [WARN ] - GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Titan\MP-Domoticz.xml' is missing control id 402 (window property: SelectedDevice)
[2017-01-03 12:44:05,385] [Log ] [MPMain ] [WARN ] - GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Titan\MP-Domoticz.xml' is missing control id 11 (window property: btnYesNo)
[2017-01-03 12:44:05,400] [Log ] [MPMain ] [DEBUG] - Window: MP_Domoticz.Main init
[2017-01-03 12:44:05,416] [Log ] [MPMain ] [INFO ] - Establish connection http://192.168.1.6:8080/
[2017-01-03 12:44:05,525] [Error ] [MPMain ] [ERROR] - Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at MP_Domoticz.Main.Refresh()
at MP_Domoticz.Main.OnMessage(GUIMessage message)
at MediaPortal.GUI.Library.GUIWindowManager.ActivateWindow(Int32 newWindowId, Boolean replaceWindow, Boolean skipHistory, String loadParameter, Boolean skipAnimation, Int32 focusControlId)

- Question 1: are there any plans in adding this plugin to official plugin manager?
- Question 2: is this feature added to the repo?:
Hi,

Just wanted to let you know that i have installed this - i made some modifications to the plugin, the feature i needed was to turn on a virtual switch when playing a movie, this allows me to then trigger a scene to change the lighting in the room using a lua script to check time of day etc.

if you want me to send you the code back then let me know.

Regards,

Simon

Thank you so much @J-B-N and @Si Jones
 

J-B-N

Portal Pro
December 29, 2005
196
20
Sweden
Home Country
Sweden Sweden
@Dj_Moren I haven't done anything with the plugin for quite some time since I haven't gotten much of a response. I have my Domoticz on a NAT-networks so I never use user/password. The error seems to indicate that it fails to establish the contact yes.
 

J-B-N

Portal Pro
December 29, 2005
196
20
Sweden
Home Country
Sweden Sweden
@Dj_Moren I just updated the plugin with the possibility to login to Domoticz. I also submitted the plugin to the repository for others to find.

If you want to try the new plugin simply redownload using the link on the first page or wait for the listing to appear.
 

Dj_Moren

Portal Pro
November 7, 2009
171
25
I have tested and now it works. Thank you. Now I am able see my roller shutter modules, but I'm unable or I don't know how to turn them on or off. In this kind of switches the options are turn on, turn off and set a desired level. Maibe a specific development is needed for this kind of switches?

On the other hand, did you have any news about the modifications made by @Si Jones?
 

J-B-N

Portal Pro
December 29, 2005
196
20
Sweden
Home Country
Sweden Sweden
Excellent!

Do you happen to know what type of switch it is? I don't have any blinds or dimmable lights. I assume from your description it is a "dimmable light switch" ie a JSON call like this (
/json.htm?type=command&param=switchlight&idx=99&switchcmd=Set%20Level&level=6
) would do the trick? But there seem to be some more information needed.. from the API documentation "Level should be the dim level (not percentage), like 0-16 or 0-100 depending on the hardware used".

I haven't heard anything from @Si Jones.
 

Dj_Moren

Portal Pro
November 7, 2009
171
25
Excellent!

Do you happen to know what type of switch it is? I don't have any blinds or dimmable lights. I assume from your description it is a "dimmable light switch" ie a JSON call like this (
/json.htm?type=command&param=switchlight&idx=99&switchcmd=Set%20Level&level=6
) would do the trick? But there seem to be some more information needed.. from the API documentation "Level should be the dim level (not percentage), like 0-16 or 0-100 depending on the hardware used".

I haven't heard anything from @Si Jones.

The switch type is a Blind percentage / Blind percentage inverted (depending on the case). In my case they are z-wave ones so the range should be 0-100. With Chrome's network inspector I can see the following kind of commands:
- Close blind:
/json.htm?type=command&param=switchlight&idx=1&switchcmd=On&level=0&passcode=
- Open blind:
/json.htm?type=command&param=switchlight&idx=1&switchcmd=Off&level=0&passcode=
- Set a desired level (for example 93%):
/json.htm?type=command&param=switchlight&idx=1&switchcmd=Set%20Level&level=93
 
Last edited:

Users who are viewing this thread

Top Bottom