MPDomoticz - a plugin for Domoticz (2 Viewers)

J-B-N

Portal Pro
December 29, 2005
196
20
Sweden
Sweden Sweden
Country flag
@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
42
Goirle
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
Sweden Sweden
Country flag
@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
Sweden Sweden
Country flag
@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
Sweden Sweden
Country flag
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 (Users: 0, Guests: 1)

OP Similar threads Forum Replies Date
morpheus_xx [WiP] "What's New" plugin for MP2 upgrades MediaPortal 2 5
da3dsoul [Request] An MVP Plugin example for custom settings in MP2 Plugin Development 2
da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
M Installing Plugins Newcomers Forum 2
joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
vapourEyes Building TV Plugin General Development (no feature request here!) 49
Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 11
emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
D Where should plugins be located on hard drive? General Support 0
D how to disengage from one version of a plugin to use another Newcomers Forum 0
cbr954rr How to disable a pre-configured plugin? General 2
mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
doskabouter [Question] Stale plugins Developer Discussions 9
M MP1 stops responding after Starting Plugins General Support 14
Terra LAVFilter Plugin cannot be updated (MP1.23) MediaPortal 1 Plugins 10
L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
Similar threads

























Top Bottom