Page 38 of 55

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 01 February 2017 3:47
by markjgabb
ok idiot me i missed a } at the end, but now I'm getting a port undefined error

Code: Select all

{
  "app_name": "MyDomoAtHome",
  "auth": { "username": "admin", "password": "******" },
   "domoticz": {
    "ssl": false,
    "host": "127.0.0.1",
    "port": "8080",
    "path": "/",
    "auth": { "username": "remote", "password": "******"},
  "port": "3002",
  "passcode": ""
}
}

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 01 February 2017 4:25
by markjgabb
please ignore all of the above....
have resolved by rewriting the config.json
is it just me or is the code in the git readme not laid out correctly?
https://github.com/empierre/MyDomoAtHome

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 01 February 2017 22:12
by mlamie
gerardosamara wrote: Q1 : Does anybody is using this configuration ?

Q2 : Wireshark is not catching messages from/to the IP of Imperihome phone ?
I do have the same setup. If you look at the github page you can see the alarm panel is on the TODO list. It is only partial supported (probably it means display the status of the Domoticz alarm panel).

Since it is quite annoying I made a work around.
1) Under setup - hardware include the Dummy device, this allows you to create dummy devices
2) Press create virtual sensor and type a name (i used AlarmActive) and select Switch as sensor type
3) Under setup - devices you will find the Dummy device created and also it will be shown as a Switch (AlarmActive)
4) Create a new event as shown in the below Domoticz screenshot
5) Now you can arm and disarm the alarm via a selector switch in ImperiHome (In ImperiHome you can protect the switch with a passcode)

Code: Select all

commandArray = {}
if (devicechanged['AlarmActive'] == 'On') then
        commandArray['Domoticz Security Panel']='Arm Away'
   print('Setting Arm Away')
end
if (devicechanged['AlarmActive'] == 'Off') then
        commandArray['Domoticz Security Panel']='Disarm'
   print('Setting Disarm')
end
return commandArray
Image

Image

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 01 February 2017 23:00
by gerardosamara
Thank you very much @mlamie for the answer and the proposed work around .

Re: [MyDomoAtHome] Support thread

Posted: Sunday 05 February 2017 15:23
by Jimbolaya
How do I display temperatures in Fahrenheit? Best I can figure out is there needs to be a setting in the config.json file. Something like "TemperatureFormat": "English - F". I've tried a few variations with no success.

Re: [MyDomoAtHome] Support thread

Posted: Monday 06 February 2017 12:58
by jhenrikb
Hello, I'm having issues with the auth username and PW on domoticz with imperihome.
Which is what? Currently im running domoticz without auth to get it working on imperihome. I Would also like to have a UN and PW on the IH app too.

{
"app_name": "MyDomoAtHome",
"auth": { "username": "admin", "password": "******" }, //this is the IH username and PW?
"domoticz": {
"ssl": false,
"host": "127.0.0.1",
"port": "8080",
"path": "/",
"auth": { "username": "remote", "password": "******"}, // this is domoticz auth username and pw correct?
"port": "3002",
"passcode": ""
}
}

Re: [MyDomoAtHome] Support thread

Posted: Thursday 09 February 2017 12:42
by waaren
Hi mlami,

I am struggling to get buienradar on my imperihome (I only get the globe symbol) . Can you please share the steps you took ?

Re: [MyDomoAtHome] Support thread

Posted: Thursday 09 February 2017 13:28
by mlamie
Press an empty spot on your dashboard to add a widget
Select webpage
Image

At local URL use the following address: http://api.buienradar.nl/image/1.0/Rada ... =640&h=480
P.s. you can resize by changing the values w=&h= like:
http://api.buienradar.nl/image/1.0/Rada ... =150&h=150
Image

Re: [MyDomoAtHome] Support thread

Posted: Thursday 09 February 2017 18:43
by waaren
Thx mlami; it's working now. I was under the impression that I had to use the external URL. (Not sure where i can use that one for now :-) )

Re: [MyDomoAtHome] Support thread

Posted: Thursday 16 February 2017 21:03
by zes00
Hi.
Does anyone know why some of my devices show up as "no group" in the imperihome app? Seems to be only the "dimmer" devices in domoticz that isnt recognized as a switch/dimmer in imperihome. the "no group" tab isnt in my IOS app(only scenes, switches and utility), so its kinda annoying only being able to access my devices from android(which I do not use).
is there something I could have done wrong when setting up domoticz/MDAH gateway? what could I try to do to fix this?

Raspberry PI3,
Domoticz V3.5877
Node V4.2.2
npm v2.15.11

attaching printouts of devices
Domoticz used devices:
Spoiler: show

Code: Select all

{
   "ActTime" : 1487272867,
   "ServerTime" : "2017-02-16 20:21:07",
   "Sunrise" : "07:53",
   "Sunset" : "17:04",
   "result" : [
      {
         "Data" : "On",
         "Description" : "",
         "Favorite" : 0,
         "LastUpdate" : "2017-02-14 21:41:35",
         "Name" : "Film",
         "PlanID" : "",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "Status" : "On",
         "Type" : "Scene",
         "TypeImg" : "scene",
         "UsedByCamera" : false,
         "XOffset" : 0,
         "YOffset" : 0,
         "idx" : "1"
      },
      {
         "Data" : "On",
         "Description" : "",
         "Favorite" : 0,
         "LastUpdate" : "2017-02-16 20:13:49",
         "Name" : "Lys stue",
         "PlanID" : "",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "Status" : "On",
         "Type" : "Group",
         "TypeImg" : "group",
         "UsedByCamera" : false,
         "XOffset" : 0,
         "YOffset" : 0,
         "idx" : "2"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "236.181 V",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveTimeout" : false,
         "ID" : "00000201",
         "LastUpdate" : "2017-02-16 20:21:05",
         "Name" : "Spenning (V)",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "Voltage",
         "Timers" : "false",
         "Type" : "General",
         "TypeImg" : "current",
         "Unit" : 1,
         "Used" : 1,
         "Voltage" : 236.1810,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "6"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "4.3 A",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveTimeout" : false,
         "ID" : "0201",
         "LastUpdate" : "2017-02-16 20:21:05",
         "Name" : "Strømtrekk (A)",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "CM113, Electrisave",
         "Timers" : "false",
         "Type" : "Current",
         "TypeImg" : "current",
         "Unit" : 0,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "displaytype" : 0,
         "idx" : "7"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CounterToday" : "19.273 kWh",
         "CustomImage" : 0,
         "Data" : "1454.516 kWh",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveTimeout" : false,
         "ID" : "00000201",
         "LastUpdate" : "2017-02-16 20:20:48",
         "Name" : "Effekt (kWh)",
         "Notifications" : "false",
         "Options" : "0",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "kWh",
         "SwitchTypeVal" : 0,
         "Timers" : "false",
         "Type" : "General",
         "TypeImg" : "current",
         "Unit" : 1,
         "Usage" : "976.1 Watt",
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "8"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Set Level: 19 %",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00000301",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-02-16 06:00:01",
         "Level" : 19,
         "LevelInt" : 19,
         "MaxDimLevel" : 100,
         "Name" : "Lys gang (20%)",
         "Notifications" : "false",
         "PlanID" : "2",
         "PlanIDs" : [ 2 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Set Level: 19 %",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Dimmer",
         "SwitchTypeVal" : 7,
         "Timers" : "true",
         "Type" : "Light/Switch",
         "TypeImg" : "dimmer",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "210",
         "YOffset" : "389",
         "idx" : "9"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 100,
         "CustomImage" : 0,
         "Data" : "24.6 C",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveTimeout" : true,
         "ID" : "0401",
         "LastUpdate" : "2017-02-07 05:17:16",
         "Name" : "Temperatur stue",
         "Notifications" : "false",
         "PlanID" : "2",
         "PlanIDs" : [ 2 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "LaCrosse TX3",
         "Temp" : 24.60,
         "Timers" : "false",
         "Type" : "Temp",
         "TypeImg" : "temperature",
         "Unit" : 1,
         "Used" : 1,
         "XOffset" : "200",
         "YOffset" : "20",
         "idx" : "16"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Heat",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveTimeout" : true,
         "ID" : "00000501",
         "LastUpdate" : "2017-02-14 20:11:05",
         "Mode" : 1,
         "Modes" : "0;Off;1;Heat;2;Cool;3;Resume;4;Fan Only;5;Dry Air;6;Auto Changeover;",
         "Name" : "Thermostat Mode",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "Thermostat Mode",
         "Timers" : "false",
         "Type" : "General",
         "TypeImg" : "mode",
         "Unit" : 1,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "17"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "0.0",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveTimeout" : true,
         "ID" : "0000501",
         "LastUpdate" : "2017-02-14 20:11:05",
         "Name" : "Heating 1",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "SetPoint" : "0.0",
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "SetPoint",
         "Timers" : "false",
         "Type" : "Thermostat",
         "TypeImg" : "override_mini",
         "Unit" : 1,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "18"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "0.0",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveTimeout" : true,
         "ID" : "0000502",
         "LastUpdate" : "2017-02-14 20:11:05",
         "Name" : "Cooling 1",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "SetPoint" : "0.0",
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "SetPoint",
         "Timers" : "false",
         "Type" : "Thermostat",
         "TypeImg" : "override_mini",
         "Unit" : 1,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "19"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Auto Low",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveTimeout" : true,
         "ID" : "00000501",
         "LastUpdate" : "2017-02-14 20:11:05",
         "Mode" : 0,
         "Modes" : "0;Auto Low;1;On Low;2;Auto High;3;On High;4;Unknown 4;5;Unknown 5;",
         "Name" : "Thermostat Fan Mode",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "Thermostat Fan Mode",
         "Timers" : "false",
         "Type" : "General",
         "TypeImg" : "mode",
         "Unit" : 1,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "22"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Set Level: 20 %",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00000601",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-02-16 20:13:49",
         "Level" : 20,
         "LevelInt" : 20,
         "MaxDimLevel" : 100,
         "Name" : "Lysekrone spisestue",
         "Notifications" : "false",
         "PlanID" : "2",
         "PlanIDs" : [ 2 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Set Level: 20 %",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Dimmer",
         "SwitchTypeVal" : 7,
         "Timers" : "true",
         "Type" : "Light/Switch",
         "TypeImg" : "dimmer",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "94",
         "YOffset" : "279",
         "idx" : "24"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "On",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 3,
         "HardwareName" : "Hue",
         "HardwareType" : "Philips Hue Bridge",
         "HardwareTypeVal" : 38,
         "HaveDimmer" : true,
         "HaveGroupCmd" : false,
         "HaveTimeout" : false,
         "ID" : "000003E9",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-02-16 16:52:07",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 100,
         "Name" : "Utelys trapp",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "On",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "RGBW",
         "SwitchType" : "On/Off",
         "SwitchTypeVal" : 0,
         "Timers" : "true",
         "Type" : "Lighting Limitless/Applamp",
         "TypeImg" : "lightbulb",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "38"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "On",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 3,
         "HardwareName" : "Hue",
         "HardwareType" : "Philips Hue Bridge",
         "HardwareTypeVal" : 38,
         "HaveDimmer" : true,
         "HaveGroupCmd" : false,
         "HaveTimeout" : false,
         "ID" : "000003EA",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-02-16 20:13:55",
         "Level" : 100,
         "LevelInt" : 100,
         "MaxDimLevel" : 100,
         "Name" : "Spottere mur stue",
         "Notifications" : "false",
         "PlanID" : "2",
         "PlanIDs" : [ 2 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "On",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "RGBW",
         "SwitchType" : "Dimmer",
         "SwitchTypeVal" : 7,
         "Timers" : "true",
         "Type" : "Lighting Limitless/Applamp",
         "TypeImg" : "dimmer",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "246",
         "YOffset" : "152",
         "idx" : "47"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Off",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00000701",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-02-14 21:20:52",
         "Level" : 37,
         "LevelInt" : 37,
         "MaxDimLevel" : 100,
         "Name" : "Lys takvifte stue",
         "Notifications" : "false",
         "PlanID" : "2",
         "PlanIDs" : [ 2 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Dimmer",
         "SwitchTypeVal" : 7,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "dimmer",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "140",
         "YOffset" : "80",
         "idx" : "59"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Set Level: 65 %",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00000801",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-02-16 20:13:49",
         "Level" : 65,
         "LevelInt" : 65,
         "MaxDimLevel" : 100,
         "Name" : "Spotskinne TVstue",
         "Notifications" : "false",
         "PlanID" : "2",
         "PlanIDs" : [ 2 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Set Level: 65 %",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Dimmer",
         "SwitchTypeVal" : 7,
         "Timers" : "true",
         "Type" : "Light/Switch",
         "TypeImg" : "dimmer",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "420",
         "YOffset" : "79",
         "idx" : "71"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 100,
         "CustomImage" : 0,
         "Data" : "Off",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00000929",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-01-18 12:13:41",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 100,
         "Name" : "Røykvarsler 1etg",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Smoke Detector",
         "SwitchTypeVal" : 5,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "smoke",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "85"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 100,
         "CustomImage" : 0,
         "Data" : "Off",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00000A29",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-02-15 18:44:18",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 100,
         "Name" : "Røykvarsler 2etg",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Smoke Detector",
         "SwitchTypeVal" : 5,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "smoke",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "94"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 100,
         "CustomImage" : 0,
         "Data" : "Off",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00000B29",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-01-17 19:47:07",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 100,
         "Name" : "Røykvarsler kjeller",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Smoke Detector",
         "SwitchTypeVal" : 5,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "smoke",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "103"
      },
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 101,
         "Data" : "Off",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 2,
         "HardwareName" : "razberry master",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00000E01",
         "Image" : "Danalock",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-02-16 20:04:21",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 100,
         "Name" : "Ytterdør",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "On/Off",
         "SwitchTypeVal" : 0,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "lightbulb",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "115"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
Gateway Devices:
Spoiler: show

Code: Select all

{"devices":[{"id":"S0","name":"MyDomoAtHome","type":"DevGenericSensor","params":[{"key":"Value","value":"0.2.7","unit":"","graphable":"false"}]},
{"id":"SC1","name":"Film","type":"DevScene","room":"Scenes","params":[{"key":"LastRun","value":1487104895000}]},
{"id":"SC2","name":"Lys stue","type":"DevMultiSwitch","room":"Scenes","params":[{"key":"LastRun","value":1487272429000},{"key":"Value","value":"On"},{"key":"Choices","value":"On,Off"}]},
{"id":"6","name":"Spenning (V)","type":"DevGenericSensor","room":"Utility","params":[{"key":"Value","value":"237.075","unit":"V","graphable":"true"}]},
{"id":"7","name":"Strømtrekk (A)","type":"DevElectricity","room":"Utility","params":[{"key":"Watts","value":"0","unit":"W","graphable":"true"}]},
{"id":"8","name":"Effekt (kWh)","type":"DevElectricity","room":"Utility","params":[{"key":"Watts","value":"997.9","unit":"W"},{"key":"ConsoTotal","value":"1455","unit":"kWh","graphable":"true"}]},
{"id":"9","name":"Lys gang (20%)","type":"DevDimmer","params":[{"key":"Status","value":"1"},{"key":"Level","value":"19"}]},
{"id":"16","name":"Temperatur stue","type":"DevTemperature","params":[{"key":"Value","value":24.6,"unit":"°C","graphable":"true"}]},
{"id":"18","name":"Heating 1","type":"DevThermostat","room":"Switches","params":[{"key":"cursetpoint","value":"0.0"},{"key":"curtemp","value":"0.0"},{"key":"step","value":"0.5"},{"key":"curmode","value":"default"},{"key":"availablemodes","value":"default"}]},
{"id":"19","name":"Cooling 1","type":"DevThermostat","room":"Switches","params":[{"key":"cursetpoint","value":"0.0"},{"key":"curtemp","value":"0.0"},{"key":"step","value":"0.5"},{"key":"curmode","value":"default"},{"key":"availablemodes","value":"default"}]},
{"id":"24","name":"Lysekrone spisestue","type":"DevDimmer","params":[{"key":"Status","value":"1"},{"key":"Level","value":"20"},{"key":"Energy","value":"9.8"}]},
{"id":"38","name":"Utelys trapp","type":"DevRGBLight","room":"Switches","params":[{"key":"tatus","value":0}]},
{"id":"47","name":"Spottere mur stue","type":"DevRGBLight","params":[{"key":"Status","value":0}]},
{"id":"59","name":"Lys takvifte stue","type":"DevDimmer","params":[{"key":"Status","value":"0"},{"key":"Level","value":"0"},{"key":"Energy","value":"0.0"}]},
{"id":"71","name":"Spotskinne TVstue","type":"DevDimmer","params":[{"key":"Status","value":"1"},{"key":"Level","value":"65"},{"key":"Energy","value":"0.0"}]},
{"id":"85","name":"Røykvarsler 1etg","type":"DevSmoke","room":"Switches","params":[{"key":"Armable","value":"0"},{"key":"ackable","value":"0"},{"key":"Armed","value":"1"},{"key":"Tripped","value":"0"},{"key":"lasttrip","value":"1484738021000"}]},
{"id":"94","name":"Røykvarsler 2etg","type":"DevSmoke","room":"Switches","params":[{"key":"Armable","value":"0"},{"key":"ackable","value":"0"},{"key":"Armed","value":"1"},{"key":"Tripped","value":"0"},{"key":"lasttrip","value":"1487180658000"}]},
{"id":"103","name":"Røykvarsler kjeller","type":"DevSmoke","room":"Switches","params":[{"key":"Armable","value":"0"},{"key":"ackable","value":"0"},{"key":"Armed","value":"1"},{"key":"Tripped","value":"0"},{"key":"lasttrip","value":"1484678827000"}]},
{"id":"115","name":"Ytterdør","type":"DevSwitch","room":"Switches","params":[{"key":"Status","value":"0"}]}]}

Re: [MyDomoAtHome] Support thread

Posted: Monday 20 February 2017 8:31
by markis
Has anyone been able to configure MDAH when domoticz is only running SSL and port 443?
All examples and guides I've seen is about HTTP and I cannot get it to work with only HTTPS.

Gateway adress is added in Setup/settings/Local Networks.

Raspberrry Pi3
$ node --version
v4.2.2
$ npm --version
2.15.11

$ cat /etc/mydomoathome/config.json

{
"app_name": "MyDomoAtHome",
"auth": null,
"domoticz": {
"ssl": true,
"host": "127.0.0.1",
"port": "443",
"path": "/",
"auth": null
},
"port": 3003,
"passcode": ""
}

Re: [MyDomoAtHome] Support thread

Posted: Monday 27 February 2017 21:00
by waynekramer
epierre wrote:
ahmedadelhosni wrote: Nothing new in the same log file.

Is there any log file rather than usage.log ?
Is there a compiled version released before Friday ? as it was working on last Friday after those changes. I guess it was 0.1.17
Can you please provide the .deb to install and test ?
I gues this will not help solve it.

best to do:

in one console:

Code: Select all

sudo service mydomoathome stop
sudo -u www-data /usr/share/mydomoathome/bin/mydomoathome
in another console:

Code: Select all

sudo curl http://ip:3002/system
sudo curl http://ip:3002/rooms
sudo curl http://ip:3002/devices
from this you should see if it breaks.
Hi,

I have the same problem as my devices can't be seen in my browser (I have an error page) : a curl http://127.0.0.1:3002/devices replies me :"curl: (7) Failed to connect to 127.0.0.1 port 3002: Connexion refusée"

so I tested your above solution to see where it breaks and this is the results :

Code: Select all

info: Domoticz server: http://127.0.0.1:8080/json.htm
info: Node version: 4.2.2
info: MDAH version: MyDomoAtHome 0.2.8
info: OS version: Linux linux 4.4.38-v7+
info: Hostname: raspberrypi 192.168.1.58 in /var/www /usr/share/mydomoathome
info: MDAH port: 3002
info: Refreshing version cache: v0.2.8
/usr/share/mydomoathome/app/mdah.js:2337
            for (var i = 0; i < data.result.length; i++) {
                                           ^

TypeError: Cannot read property 'length' of undefined
    at Request._callback (/usr/share/mydomoathome/app/mdah.js:2337:44)
    at Request.self.callback (/usr/share/mydomoathome/app/node_modules/request/request.js:200:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/share/mydomoathome/app/node_modules/request/request.js:1067:10)
    at emitOne (events.js:82:20)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/usr/share/mydomoathome/app/node_modules/request/request.js:988:12)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
error: Forever detected script exited with code: 1
error: Script restart attempt #1
info: Domoticz server: http://127.0.0.1:8080/json.htm
info: Node version: 4.2.2
info: MDAH version: MyDomoAtHome 0.2.8
info: OS version: Linux linux 4.4.38-v7+
info: Hostname: raspberrypi 192.168.1.58 in /var/www /usr/share/mydomoathome
info: MDAH port: 3002
info: Refreshing version cache: v0.2.8
/usr/share/mydomoathome/app/mdah.js:2337
            for (var i = 0; i < data.result.length; i++) {
                                           ^

TypeError: Cannot read property 'length' of undefined
    at Request._callback (/usr/share/mydomoathome/app/mdah.js:2337:44)
    at Request.self.callback (/usr/share/mydomoathome/app/node_modules/request/request.js:200:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/share/mydomoathome/app/node_modules/request/request.js:1067:10)
    at emitOne (events.js:82:20)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/usr/share/mydomoathome/app/node_modules/request/request.js:988:12)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
error: Forever detected script exited with code: 1
error: Script restart attempt #2
info: Domoticz server: http://127.0.0.1:8080/json.htm
info: Node version: 4.2.2
info: MDAH version: MyDomoAtHome 0.2.8
info: OS version: Linux linux 4.4.38-v7+
info: Hostname: raspberrypi 192.168.1.58 in /var/www /usr/share/mydomoathome
info: MDAH port: 3002
info: Refreshing version cache: v0.2.8
I'm not sure on how to interpret these datas and I really don't have any ideas on how to solve it. Could somebody please help me ?
Thank you !

Re: [MyDomoAtHome] Support thread

Posted: Tuesday 28 February 2017 19:19
by jaha
Hi trying to get MDAH running

I had excluded the MDAH getaway in local networks but still gettings this error

{"devices":[{"id":"S00","name":"Unable to connect to Domoticz","type":"DevGenericSensor","room":"Utility","params":[{"key":"Value","value":"https://172.16.40.14:443/json.htm"}]},{"id":"S01","name":"Please add this gateway in Setup/settings/Local Networks","type":"DevGenericSensor","room":"Utility"}]}

My config.json

{
"app_name": "MyDomoAtHome",
"auth": null,
"domoticz": {
"ssl": true,
"host": "172.16.40.14",
"port": "443",
"path": "/",
"auth": null
},
"port": "3002",
"passcode": ""
}

Auth is off in domoticz and the network is excluded from auth.

If I run the command from the machine it works:

curl --insecure https://172.16.40.14/json.htm?type=devi ... order=Name

Re: [MyDomoAtHome] Support thread

Posted: Thursday 09 March 2017 14:34
by Cloud
I use Fibaro Shutters in my environment. I have the problem that the Shutters always show 100 % in Imperihome when completely closed or opened. So i cant tell if they are opened or closed.

The level values in domoticz are 100 for completely closed and 0 for opened. Other values between 0 and 100 work without problems. Anyone know a solution for that?

Complete Closed Blind

Code: Select all

    
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Closed",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "razberry2",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00000A01",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-03-09 14:24:28",
         "Level" : 100,
         "LevelInt" : 100,
         "MaxDimLevel" : 100,
         "Name" : "Jalousie Schlafzimmer",
         "Notifications" : "false",
         "PlanID" : "5",
         "PlanIDs" : [ 5 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Closed",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Blinds Percentage",
         "SwitchTypeVal" : 13,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "blinds",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "1926",
         "YOffset" : "1268",
         "idx" : "162"
Complete Open Blind

Code: Select all

"AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Open",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "razberry2",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00000401",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-03-09 11:41:05",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 100,
         "Name" : "Jalousie Wohnzimmer Couch",
         "Notifications" : "false",
         "PlanID" : "3",
         "PlanIDs" : [ 3 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Open",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Blinds Percentage",
         "SwitchTypeVal" : 13,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "blinds",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "1372",
         "YOffset" : "2887",
         "idx" : "54"

Re: [MyDomoAtHome] Support thread

Posted: Sunday 12 March 2017 14:46
by levynger
I have a starnge behaviour with a Dummy selector,
i added few leveles with custom python scripts that controls me TV.
only through the imperihome app, selecting any level (not 0) will also trigger level 0 (off) command.
this doesnt happen when selecting levels from domoticz UI.

Re: [MyDomoAtHome] Support thread

Posted: Monday 13 March 2017 20:22
by Evelen
I think I have updatet MyDomoAtHome now.
How can I check if i have the last version of "MyDomoAtHome"? (Ubuntu Server)

I think it don't worked.
??

Code: Select all

## Run `apt-get install nodejs` (as root) to install Node.js v4.x LTS Argon and npm

flemmingss@VM4:~/domoticz/MyDomoAtHome$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 linux-headers-generic-lts-utopic : Depends: linux-headers-3.16.0-77-generic but it is not going to be installed
 nodejs : Depends: rlwrap but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
flemmingss@VM4:~/domoticz/MyDomoAtHome$

Re: [MyDomoAtHome] Support thread

Posted: Friday 24 March 2017 15:22
by anno
Error by install by step sudo apt-get install MyDomoAtHome

E: Unable to locate package MyDomoAtHome

Also this error when trying to install node, see attachment

Re: [MyDomoAtHome] Support thread

Posted: Saturday 25 March 2017 21:16
by EdddieN
Hi,

I have been trying to get the Evohome temperature sensors into the app but no luck so far, then I saw on this post someone that uses them (see attached). Any idea how to do it? it does seem that Domoticz does not present the Evohome sensors to Blockly, neither to the Imperihome API?

Re: [MyDomoAtHome] Support thread

Posted: Monday 27 March 2017 20:50
by anno
anno wrote:Error by install by step sudo apt-get install MyDomoAtHome

E: Unable to locate package MyDomoAtHome

Also this error when trying to install node, see attachment
So nobody here knows something about this. than also not about the following:

Re: [MyDomoAtHome] Support thread

Posted: Tuesday 28 March 2017 14:05
by mlamie
anno wrote:
anno wrote:Error by install by step sudo apt-get install MyDomoAtHome

E: Unable to locate package MyDomoAtHome

Also this error when trying to install node, see attachment
So nobody here knows something about this. than also not about the following:
Don't know if it solves the issue, but on the github installation page it says: Important remark: do not install as roos (I expect a typing error = root), but sudo as an unprivilegied user