PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 44 forks source link

Push button seen as On/Off Switch #156

Open guiggess opened 6 years ago

guiggess commented 6 years ago

Hi there,

I have two Virtual Push On Buttons (attached to Dummy material, SwitchTypeVal : 9) that work well inside Domoticz, but are seen as On/Off switches inside HomeKit. Informations bellow.

capture d ecran 2018-04-27 a 12 22 05

{ "ActTime" : 1524824266, "ServerTime" : "2018-04-27 12:17:46", "Sunrise" : "06:16", "Sunset" : "20:36", "result" : [ { "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 1.0, "AddjValue2" : 0.0, "BatteryLevel" : 255, "CustomImage" : 0, "Data" : "Off", "Description" : "", "Favorite" : 0, "HardwareID" : 4, "HardwareName" : "Dummy", "HardwareType" : "Dummy (Does nothing, use for virtual switches only)", "HardwareTypeVal" : 15, "HaveDimmer" : false, "HaveGroupCmd" : true, "HaveTimeout" : false, "ID" : "65", "Image" : "Light", "InternalState" : "Off", "IsSubDevice" : false, "LastUpdate" : "2018-04-27 01:42:08", "Level" : 0, "LevelInt" : 0, "MaxDimLevel" : 0, "Name" : "Cam Salon - Entrée", "Notifications" : "false", "PlanID" : "0", "PlanIDs" : [ 0 ], "Protected" : false, "ShowNotifications" : true, "SignalLevel" : "-", "Status" : "", "StrParam1" : "aHR0cDovLzE5Mi4xNjguMC43Mjo4OC9jZ2ktYmluL0NHSVByb3h5LmZjZ2k/Y21kPXB0ekdvdG9QcmVzZXRQb2ludCZuYW1lPUVudHJlZSZ1c3I9YWRtaW4mcHdkPWxlb250ZGkxNTA=", "StrParam2" : "", "SubType" : "X10", "SwitchType" : "Push On Button", "SwitchTypeVal" : 9, "Timers" : "false", "Type" : "Lighting 1", "TypeImg" : "push", "Unit" : 1, "Used" : 1, "UsedByCamera" : false, "XOffset" : "0", "YOffset" : "0", "idx" : "397" } ], "status" : "OK", "title" : "Devices" }

guiggess commented 6 years ago

Any chance to get these buttons to show up as push buttons in homekit ?