1 Star 0 Fork 34

crism/cjs

forked from cai/cjs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
example-homekit2mqtt.json 12.21 KB
一键复制 编辑 原始数据 按行查看 历史
caibojian 提交于 2017-08-15 23:09 . 优化传感器页面
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
{
"CarbonDioxideSensor": {
"service": "CarbonDioxideSensor",
"name": "CarbonDioxideSensor",
"nameCn":"二氧化碳传感器",
"icon":"sensors_icon_large",
"topic": {
"statusCarbonDioxideDetected": "CarbonDioxideSensor/status",
"statusLowBattery": "CarbonDioxideSensor/status/LowBattery"
},
"payload": {
"onCarbonDioxideDetected": 1,
"onLowBattery": 1
},
"manufacturer": "Generic",
"model": "CarbonDioxideSensor"
},
"CarbonMonoxideSensor": {
"service": "CarbonMonoxideSensor",
"name": "CarbonMonoxideSensor",
"nameCn":"一氧化碳传感器",
"icon":"sensors_icon_large",
"topic": {
"statusCarbonMonoxideDetected": "CarbonMonoxideSensor/status",
"statusLowBattery": "CarbonMonoxideSensor/status/LowBattery"
},
"payload": {
"onCarbonMonoxideDetected": 1,
"onLowBattery": 1
},
"manufacturer": "Generic",
"model": "CarbonMonoxideSensor"
},
"ContactSensor": {
"service": "ContactSensor",
"name": "ContactSensor",
"nameCn":"接触传感器",
"icon":"sensors_icon_large",
"topic": {
"statusContactSensorState": "ContactSensor/status",
"statusLowBattery": "ContactSensor/status/LowBattery"
},
"payload": {
"onContactDetected": 0,
"onLowBattery": 1
},
"manufacturer": "Generic",
"model": "ContactSensor"
},
"Door": {
"service": "Door",
"name": "Door",
"nameCn":"门",
"icon":"sensors_icon_large",
"topic": {
"setTargetPosition": "Door/set/TargetPosition",
"statusTargetPosition": "Door/status/TargetPosition",
"setCurrentPosition": "Door/set/CurrentPosition",
"statusCurrentPosition": "Door/status/CurrentPosition",
"statusPositionState": "Door/status/PositionState",
"statusObstruction": "Door/status/Obstruction"
},
"payload": {
"positionStatusDecreasing": 2,
"positionStatusIncreasing": 1,
"positionStatusStopped": 0,
"onObstructionDetected": 1
}
},
"Doorbell": {
"service": "Doorbell",
"name": "Doorbell",
"nameCn":"门铃",
"icon":"sensors_icon_large",
"topic": {
"statusEvent": "Doorbell/status"
},
"manufacturer": "Generic",
"model": "Doorbell"
},
"Fan": {
"service": "Fan",
"name": "Fan",
"nameCn":"风扇",
"icon":"sensors_icon_large",
"topic": {
"statusOn": "Fan/status",
"setOn": "Fan/set",
"statusRotationDirection": "Fan/status/RotationDirection",
"setRotationDirection": "Fan/set/RotationDirection",
"statusRotationSpeed": "Fan/status/RotationSpeed",
"setRotationSpeed": "Fan/set/RotationSpeed"
},
"payload": {
"rotationDirectionCounterClockwise": "left",
"rotationDirectionClockwise": "right"
},
"manufacturer": "Generic",
"model": "Fan"
},
"GarageDoorOpener": {
"service": "GarageDoorOpener",
"name": "GarageDoorOpener",
"nameCn":"车库",
"icon":"sensors_icon_large",
"topic": {
"setDoor": "GarageDoorOpener/set",
"statusDoor": "GarageDoorOpener/status",
"statusObstruction": "GarageDoorOpener/status/Obstruction",
"setLock": "GarageDoorOpener/set/Lock",
"statusLock": "GarageDoorOpener/status/Lock"
},
"payload": {
"doorClosed": 0,
"doorOpening": 1,
"doorClosing": 2,
"doorStopped": 3,
"doorOpen": 4,
"onObstructionDetected": 1,
"lockUnsecured": 0,
"lockSecured": 1
},
"manufacturer": "Generic",
"model": "GarageDoorOpener"
},
"HumiditySensor": {
"service": "HumiditySensor",
"name": "HumiditySensor",
"nameCn":"湿度传感器",
"icon":"sensors_icon_large",
"topic": {
"statusHumidity": "HumiditySensor/status",
"statusLowBattery": "HumiditySensor/status/LowBattery"
},
"payload": {
"onLowBattery": 1
},
"manufacturer": "Generic",
"model": "HumiditySensor"
},
"LeakSensor": {
"service": "LeakSensor",
"name": "LeakSensor",
"nameCn":"泄漏传感器",
"icon":"sensors_icon_large",
"topic": {
"statusLeakDetected": "LeakSensor/status",
"statusLowBattery": "LeakSensor/status/LowBattery"
},
"payload": {
"onLeakDetected": 1,
"onLowBattery": 1
},
"manufacturer": "Generic",
"model": "LeakSensor"
},
"Lightbulb1": {
"service": "Lightbulb",
"name": "LichtGarten",
"nameCn":"灯泡",
"icon":"sensors_icon_large",
"topic": {
"setOn": "Lightbulb1/set",
"statusOn": "Lightbulb1/status"
},
"payload": {
"onTrue": 1,
"onFalse": 0
},
"manufacturer": "Generic",
"model": "Lightbulb"
},
"Lightbulb2": {
"service": "Lightbulb",
"name": "Lightbulb2",
"nameCn":"灯泡2",
"icon":"sensors_icon_large",
"topic": {
"setOn": "Lightbulb2/set",
"setBrightness": "Lightbulb2/set/Brightness",
"statusOn": "Lightbulb2/status",
"statusBrightness": "Lightbulb2/status/Brightness",
"identify": "Lightbulb2/set/identify"
},
"payload": {
"onTrue": 254,
"onFalse": 0,
"brightnessFactor": 2.54,
"identify": "select"
},
"manufacturer": "Generic",
"model": "Lightbulb Dimmable"
},
"Lightbulb": {
"service": "Lightbulb",
"name": "Lightbulb",
"nameCn":"灯泡",
"icon":"sensors_icon_large",
"topic": {
"setOn": "Lightbulb/set",
"setBrightness": "Lightbulb/set/Brightness",
"setHue": "Lightbulb/set/Hue",
"setSaturation": "Lightbulb/set/Saturation",
"statusOn": "Lightbulb/status",
"statusBrightness": "Lightbulb/status/Brightness",
"statusHue": "Lightbulb/status/Hue",
"statusSaturation": "Lightbulb/status/Saturation",
"identify": "Lightbulb/set/identify"
},
"payload": {
"onTrue": 254,
"onFalse": 0,
"brightnessFactor": 2.54,
"hueFactor": 182.04166666666666,
"saturationFactor": 2.54,
"identify": "select"
},
"manufacturer": "Generic",
"model": "Lightbulb Color"
},
"LightSensor": {
"service": "LightSensor",
"name": "LightSensor",
"nameCn":"光敏传感器",
"icon":"sensors_icon_large",
"topic": {
"statusAmbientLightLevel": "LightSensor/Brightness",
"statusLowBattery": "LightSensor/status/LowBattery"
},
"payload": {
"onLowBattery": 1
},
"manufacturer": "Generic",
"model": "LightSensor"
},
"LockMechanism": {
"service": "LockMechanism",
"name": "LockMechanism",
"nameCn":"机械锁",
"icon":"sensors_icon_large",
"topic": {
"setLock": "LockMechanism/set",
"statusLock": "LockMechanism/status"
},
"payload": {
"lockUnsecured": 1,
"lockSecured": 0
},
"manufacturer": "Generic",
"model": "LockMechanism"
},
"MotionSensor": {
"service": "MotionSensor",
"name": "MotionSensor",
"nameCn":"动作传感器",
"icon":"sensors_icon_large",
"topic": {
"statusMotionDetected": "MotionSensor/status",
"statusLowBattery": "MotionSensor/status/LowBattery"
},
"payload": {
"onMotionDetected": 1,
"onLowBattery": 1
},
"manufacturer": "Generic",
"model": "MotionSensor"
},
"OccupancySensor": {
"service": "OccupancySensor",
"name": "OccupancySensor",
"nameCn":"人体传感器",
"icon":"sensors_icon_large",
"topic": {
"statusOccupancyDetected": "OccupancySensor/status",
"statusLowBattery": "OccupancySensor/status/LowBattery"
},
"payload": {
"onOccupancyDetected": 1,
"onLowBattery": 1
},
"manufacturer": "Generic",
"model": "OccupancySensor"
},
"Outlet": {
"service": "Outlet",
"name": "Outlet",
"nameCn":"插座",
"icon":"sensors_icon_large",
"topic": {
"statusOn": "Outlet/status",
"setOn": "Outlet/set",
"statusOutletInUse": "Outlet/status/OutletInUse",
"setOutletInUse": "Outlet/set/OutletInUse"
},
"payload": {
"onTrue": 1,
"onFalse": 0,
"onOutletInUse": 1
},
"manufacturer": "Generic",
"model": "Outlet"
},
"SecuritySystem": {
"service": "SecuritySystem",
"name": "SecuritySystem",
"nameCn":"安防系统",
"icon":"sensors_icon_large",
"topic": {
"setSecuritySystemTargetState": "SecuritySystem/set/TargetState",
"statusSecuritySystemCurrentState": "SecuritySystem/status/CurrentState"
}
},
"SmokeSensor": {
"service": "SmokeSensor",
"name": "SmokeSensor",
"nameCn":"烟感传感器",
"icon":"sensors_icon_large",
"topic": {
"statusSmokeDetected": "SmokeSensor/status",
"statusLowBattery": "SmokeSensor/status/LowBattery"
},
"payload": {
"onSmokeDetected": 1,
"onLowBattery": 1
},
"manufacturer": "Generic",
"model": "SmokeSensor"
},
"Speaker": {
"service": "Speaker",
"name": "Speaker",
"nameCn":"扬声器",
"icon":"sensors_icon_large",
"topic": {
"setMute": "Speaker/set/Mute",
"statusMute": "Speaker/status/Mute",
"setVolume": "Speaker/set/Volume",
"statusVolume": "Speaker/status/Volume"
},
"payload": {
"muteTrue": 1,
"muteFalse": 0
}
},
"Switch": {
"service": "Switch",
"name": "Switch1",
"nameCn":"开关",
"icon":"sensors_icon_large",
"topic": {
"statusOn": "Switch/status",
"setOn": "Switch/set"
},
"payload": {
"onTrue": 1,
"onFalse": 0
},
"manufacturer": "Generic",
"model": "Switch"
},
"TemperatureSensor": {
"service": "TemperatureSensor",
"name": "TemperatureSensor",
"nameCn":"温度传感器",
"icon":"sensors_icon_large",
"topic": {
"statusTemperature": "TemperatureSensor/Temperature",
"statusLowBattery": "TemperatureSensor/status/LowBattery"
},
"payload": {
"onLowBattery": 1
},
"manufacturer": "Generic",
"model": "TemperatureSensor"
},
"TemperatureSensorF": {
"service": "TemperatureSensor",
"name": "TemperatureSensorF",
"nameCn":"温度传感器",
"icon":"sensors_icon_large",
"topic": {
"statusTemperature": "TemperatureSensorF/Temperature"
},
"config": {
"fahrenheit": true
},
"manufacturer": "Generic",
"model": "TemperatureSensor"
},
"Thermostat1": {
"service": "Thermostat",
"name": "Thermostat1",
"nameCn":"恒温器",
"icon":"sensors_icon_large",
"topic": {
"setTargetTemperature": "Thermostat1/set/TargetTemperature",
"statusTargetTemperature": "Thermostat1/status/TargetTemperature",
"statusCurrentTemperature": "Thermostat1/status/CurrentTemperature",
"statusCurrentRelativeHumidity": "Thermostat1/status/CurrentHumidity"
},
"payload": {
},
"config": {
"TemperatureDisplayUnits": 0
},
"manufacturer": "Generic",
"model": "Thermostat"
},
"Window": {
"service": "Window",
"name": "Window",
"nameCn":"窗户",
"icon":"sensors_icon_large",
"topic": {
"setTargetPosition": "Window/set/TargetPosition",
"statusTargetPosition": "Window/status/TargetPosition",
"statusCurrentPosition": "Window/status/CurrentPosition",
"statusPositionState": "Window/status/PositionState",
"statusObstruction": "Window/status/Obstruction"
},
"payload": {
"onObstructionDetected": 1,
"positionStatusIncreasing": 1,
"positionStatusDecreasing": 2
}
},
"WindowCovering": {
"service": "WindowCovering",
"name": "WindowCovering",
"nameCn":"窗帘",
"icon":"sensors_icon_large",
"topic": {
"setTargetPosition": "WindowCovering/set/TargetPosition",
"statusTargetPosition": "WindowCovering/status/TargetPosition",
"statusCurrentPosition": "WindowCovering/status/CurrentPosition",
"statusPositionState": "WindowCovering/status/PositionState"
},
"payload": {
"targetPositionFactor": 0.01,
"currentPositionFactor": 0.01,
"positionStatusIncreasing": 1,
"positionStatusDecreasing": 2
},
"manufacturer": "Generic",
"model": "WindowCovering"
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/crism/cjs.git
[email protected]:crism/cjs.git
crism
cjs
cjs
v3.0

搜索帮助