Giter Site home page Giter Site logo

Comments (9)

PatchworkBoy avatar PatchworkBoy commented on May 30, 2024

This device is a simple on/off outside light but also shows as a disable device in Eve

Yup - Domoticz is setting HaveDimmer: True for this one, so technically I shouldn’t attempt to override that - the issue should be resolved within Domoticz. I’m hazarding a guess Deejc will find similar if he queries some of his devices. That said, I too have switches and ping checkers with same issue, and I can find no way to sort it from within Domoticz.

I’m going to override it based on Switch Type On/Off for now and see if it causes any complaints elsewhere. The reason this issue has suddenly surfaced is purely because I’ve added dimmer support to start with - I was avoiding it for this very reason.

Finally this is a dimable device which shows as On/Off in Eve

Ah - Type: Lighting 5. Wasn’t aware there were that many Lighting types - I’ve only been checking against Lighting Types 1 & 2... that's Fixable!

from homebridge-edomoticz.

 avatar commented on May 30, 2024

here are 2 devices i have showing as dimmers in homebridge but as on/off in domo… also i notice that i am not able to associate the device to a lamp/swich/fan any more in Home.app or eve.

On/Off switch

{
"ActTime" : 1454964421,
"ServerTime" : "2016-02-08 20:47:01",
"Sunrise" : "07:29",
"Sunset" : "17:00",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "On, Level: 100 %",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 7,
"HardwareName" : "RFXCom",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00F6742",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2016-02-08 17:40:51",
"Level" : 100,
"LevelInt" : 15,
"MaxDimLevel" : 15,
"Name" : "Bug String",
"Notifications" : "false",
"PlanID" : "7",
"PlanIDs" : [ 7, 11 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 4,
"Status" : "On",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "lightbulb",
"Unit" : 14,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "24",
"YOffset" : "664",
"idx" : "29"
}
],
"status" : "OK",
"title" : "Devices"
}

Switch type On/Off
{
"ActTime" : 1454964562,
"ServerTime" : "2016-02-08 20:49:22",
"Sunrise" : "07:29",
"Sunset" : "17:00",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "On",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 7,
"HardwareName" : "RFXCom",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00F6742",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2016-02-08 20:41:34",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 15,
"Name" : "Twinkle 1",
"Notifications" : "false",
"PlanID" : "5",
"PlanIDs" : [ 5, 11 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "On",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "lightbulb",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "261",
"YOffset" : "703",
"idx" : "30"
}
],
"status" : "OK",
"title" : "Devices"
}

from homebridge-edomoticz.

PatchworkBoy avatar PatchworkBoy commented on May 30, 2024

Hmm as previous - look at the JSON you’ve posted. Domoticz says both are dimmers - as both specify HaveDimmer: true even tho in Domoticz they show as On/Off. When it’s read from Domoticz’ JSON api, it’s clearly Domoticz saying they’re dimmers and that’s what’s throwing the plugin off. Nothing I can do about these I’m afraid!

from homebridge-edomoticz.

jem101 avatar jem101 commented on May 30, 2024

Yes you're right, so the issue is further 'upstream' then, if Domoticz itself is mis-identifying the device type (or at least not returning the right value in a json query) then we're stuck.

Personally for me it's not a big issue. I don't usually dim lights even when it's possible, I mostly just turn them off and on anyway. It's more of a slight annoyance than anything in else.

John

Sent from my iPad

On 8 Feb 2016, at 21:47, Marci [email protected] wrote:

Hmm as previous - look at the JSON you’ve posted. Domoticz says both are dimmers - as both specify HaveDimmer: true even tho in Domoticz they show as On/Off. When it’s read from Domoticz’ JSON api, it’s clearly Domoticz saying they’re dimmers and that’s what’s throwing the plugin off. Nothing I can do about these I’m afraid!


Reply to this email directly or view it on GitHub.

from homebridge-edomoticz.

jem101 avatar jem101 commented on May 30, 2024

Which exactly matches my finding that devices of type Lighting 2, subtype AC (which is the Homeeasy UK) protocol always seem to be seen as dimmable (I currently have six of them- all but one are really just on/off), whereas my Lighting 5 (LightwaveRFare all on/off whereas one should be dimmable.

John

Sent from my iPad

On 8 Feb 2016, at 21:35, deejc-uk [email protected] wrote:

here are 2 devices i have showing as dimmers in homebridge but as on/off in domo… also i notice that i am not able to associate the device to a lamp/swich/fan any more in Home.app or eve.

On/Off switch

{
"ActTime" : 1454964421,
"ServerTime" : "2016-02-08 20:47:01",
"Sunrise" : "07:29",
"Sunset" : "17:00",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "On, Level: 100 %",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 7,
"HardwareName" : "RFXCom",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00F6742",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2016-02-08 17:40:51",
"Level" : 100,
"LevelInt" : 15,
"MaxDimLevel" : 15,
"Name" : "Bug String",
"Notifications" : "false",
"PlanID" : "7",
"PlanIDs" : [ 7, 11 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 4,
"Status" : "On",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "lightbulb",
"Unit" : 14,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "24",
"YOffset" : "664",
"idx" : "29"
}
],
"status" : "OK",
"title" : "Devices"
}

Switch type On/Off
{
"ActTime" : 1454964562,
"ServerTime" : "2016-02-08 20:49:22",
"Sunrise" : "07:29",
"Sunset" : "17:00",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "On",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 7,
"HardwareName" : "RFXCom",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00F6742",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2016-02-08 20:41:34",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 15,
"Name" : "Twinkle 1",
"Notifications" : "false",
"PlanID" : "5",
"PlanIDs" : [ 5, 11 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "On",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "lightbulb",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "261",
"YOffset" : "703",
"idx" : "30"
}
],
"status" : "OK",
"title" : "Devices"
}


Reply to this email directly or view it on GitHub.

from homebridge-edomoticz.

PatchworkBoy avatar PatchworkBoy commented on May 30, 2024

Ok... i think I can deal with these by adding some special-case additions to config.json... that way users can choose for themselves some subtypes etc where dimming is completely disabled. Have family duties tomorrow eve, so will be Weds or Thursday evening at a guess!

from homebridge-edomoticz.

PatchworkBoy avatar PatchworkBoy commented on May 30, 2024

Should all be fixed now via v0.1.11 - a782bea

Let me know...

from homebridge-edomoticz.

PatchworkBoy avatar PatchworkBoy commented on May 30, 2024

Fix confirmed via Domoticz forums

from homebridge-edomoticz.

 avatar commented on May 30, 2024

all good, thanks again

from homebridge-edomoticz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.