empierre / MyDomoAtHome

MyDomoAtHome - REST interface for ImperoHome with Domoticz (ISS)
http://domoticz.com/wiki/ImperiHome
GNU General Public License v3.0
31 stars 22 forks source link

Wrong values Hue Lamp / Szenes #133

Closed MRxCloud closed 7 years ago

MRxCloud commented 7 years ago

The :3002/devices gives wrong values on my Hue Lamps and Scenes in Domoticz.

They show as off 0 when they are on in Domoticz and the real world:

{"id":"93","name":"Schlafzimmer Hue Lampe","type":"DevRGBLight","room":"Dach","params":[{"key":"Status","value":0}]}, ,{"id":"124","name":"Wohnzimmer Hue Lampe","type":"DevRGBLight","room":"EG","params":[{"key":"Status","value":0}]},

empierre commented 7 years ago

and what is the device definition on: curl http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name

MRxCloud commented 7 years ago

Wow, that was fast :-). The definition is:

  {
     "AddjMulti" : 1.0,
     "AddjMulti2" : 1.0,
     "AddjValue" : 0.0,
     "AddjValue2" : 0.0,
     "BatteryLevel" : 255,
     "CustomImage" : 0,
     "Data" : "Set Level",
     "Description" : "",
     "Favorite" : 1,
     "HardwareID" : 8,
     "HardwareName" : "Hue",
     "HardwareType" : "Philips Hue Bridge",
     "HardwareTypeVal" : 38,
     "HaveDimmer" : true,
     "HaveGroupCmd" : false,
     "HaveTimeout" : false,
     "ID" : "00000002",
     "Image" : "Light",
     "IsSubDevice" : false,
     "LastUpdate" : "2017-01-03 15:57:07",
     "Level" : 0,
     "LevelInt" : 200,
     "MaxDimLevel" : 100,
     "Name" : "Schlafzimmer Hue Lampe",
     "Notifications" : "false",
     "PlanID" : "5",
     "PlanIDs" : [ 5 ],
     "Protected" : false,
     "ShowNotifications" : true,
     "SignalLevel" : "-",
     "Status" : "Set Level",
     "StrParam1" : "",
     "StrParam2" : "",
     "SubType" : "RGBW",
     "SwitchType" : "On/Off",
     "SwitchTypeVal" : 0,
     "Timers" : "false",
     "Type" : "Lighting Limitless/Applamp",
     "TypeImg" : "lightbulb",
     "Unit" : 1,
     "Used" : 1,
     "UsedByCamera" : false,
     "XOffset" : "2613",
     "YOffset" : "1418",
     "idx" : "93"
  },
  {
     "AddjMulti" : 1.0,
     "AddjMulti2" : 1.0,
     "AddjValue" : 0.0,
     "AddjValue2" : 0.0,
     "BatteryLevel" : 255,
     "CustomImage" : 0,
     "Data" : "On",
     "Description" : "",
     "Favorite" : 1,
     "HardwareID" : 8,
     "HardwareName" : "Hue",
     "HardwareType" : "Philips Hue Bridge",
     "HardwareTypeVal" : 38,
     "HaveDimmer" : true,
     "HaveGroupCmd" : false,
     "HaveTimeout" : false,
     "ID" : "000007E7",
     "Image" : "Light",
     "IsSubDevice" : false,
     "LastUpdate" : "2017-01-03 15:57:08",
     "Level" : 0,
     "LevelInt" : 0,
     "MaxDimLevel" : 100,
     "Name" : "Wohnzimmer Hue Lampe",
     "Notifications" : "false",
     "PlanID" : "3",
     "PlanIDs" : [ 3 ],
     "Protected" : false,
     "ShowNotifications" : true,
     "SignalLevel" : "-",
     "Status" : "On",
     "StrParam1" : "",
     "StrParam2" : "",
     "SubType" : "RGBW",
     "SwitchType" : "On/Off",
     "SwitchTypeVal" : 0,
     "Timers" : "false",
     "Type" : "Lighting Limitless/Applamp",
     "TypeImg" : "lightbulb",
     "Unit" : 1,
     "Used" : 1,
     "UsedByCamera" : false,
     "XOffset" : "1162",
     "YOffset" : "3085",
     "idx" : "124"
  }

],

empierre commented 7 years ago

result is consistent, level=0 == Off, and this is an on/off, I have no other information to say otherwise

"Level" : 0, "LevelInt" : 200, "MaxDimLevel" : 100,

"Level" : 0, "LevelInt" : 0, "MaxDimLevel" : 100,

MRxCloud commented 7 years ago

I see, its strange that Domoticz does not change the Level value and only sets the "Status" : "On", Perhaps i have to to change some configuration in Domoticz.

empierre commented 7 years ago

this can too be a bug in domoticz as it happens sometimes...

On Tue, Jan 3, 2017 at 4:10 PM, MRxCloud notifications@github.com wrote:

I see, its strange that Domoticz does not change the Level value and only sets the "Status" : "On", Perhaps i have to to change some configuration in Domoticz.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/empierre/MyDomoAtHome/issues/133#issuecomment-270135313, or mute the thread https://github.com/notifications/unsubscribe-auth/AG8xiii3OAxTglLPvxpRWqqKabk7sj2Dks5rOmTtgaJpZM4LZsBr .

MRxCloud commented 7 years ago

Thanks, i will look around and post some information if i find something :-)

empierre commented 7 years ago

accepted #141, will package soon, that may correct your issue, can you check on next version ? reminder: repository has moved to https, please upgrade apt source list.

MRxCloud commented 7 years ago

Hi empierre,

thanks for the update. But now my Hue Lamps from domoticz show as always on in imperihome:

Lamp is off:

{"id":"93","name":"Schlafzimmer Hue Lampe","type":"DevRGBLight","params":[{"key":"Status","value":"1"},{"key":"dimmable","value":"1"},{"key":"Level","value":"0"}]}

      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Off",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 8,
         "HardwareName" : "Hue",
         "HardwareType" : "Philips Hue Bridge",
         "HardwareTypeVal" : 38,
         "HaveDimmer" : true,
         "HaveGroupCmd" : false,
         "HaveTimeout" : false,
         "ID" : "00000002",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-09-05 22:56:31",
         "Level" : 0,
         "LevelInt" : 144,
         "MaxDimLevel" : 100,
         "Name" : "Schlafzimmer Hue Lampe",
         "Notifications" : "false",
         "PlanID" : "5",
         "PlanIDs" : [ 5 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "RGBW",
         "SwitchType" : "On/Off",
         "SwitchTypeVal" : 0,
         "Timers" : "false",
         "Type" : "Lighting Limitless/Applamp",
         "TypeImg" : "lightbulb",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "2613",
         "YOffset" : "1418",
         "idx" : "93"
      },
empierre commented 7 years ago

ok will try something else

empierre commented 7 years ago

ok seems today 0.2.19 should fix this

MRxCloud commented 7 years ago

Tested it, works like a charm now. Thanks :-)

empierre commented 7 years ago

great !