RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.66k stars 353 forks source link

nodemcu ch2102 4 relay+motion sensor(HC-SR501) +dht11(Thermometer & Humidity Sensor) sensor haa json code #1333

Closed irfanumut closed 3 years ago

irfanumut commented 3 years ago

Hello, I wrote such a code, but the device does not appear on the homekit. Where am I doing a mistake? thanks in advance Sorry bad english :( i Json code: { "c":{ "l":13, "i":1 }, "a":[ {"0":{"r":[{"g":12,"v":0}]},"1":{"r":[{"g":12,"v":1}]},"b":[{"g":0 ,"p":0},{"g": 0,"t":1}]}, {"0":{"r":[{"g":5, "v":0}]},"1":{"r":[{"g":5 ,"v":1}]},"b":[{"g":9 ,"p":0},{"g": 9,"t":1}]}, {"0":{"r":[{"g":4, "v":0}]},"1":{"r":[{"g":4 ,"v":1}]},"b":[{"g":10,"p":0},{"g":10,"t":1}]}, {"0":{"r":[{"g":15,"v":0}]},"1":{"r":[{"g":15,"v":1}]},"b":[{"g":14,"p":0},{"g":14,"t":1}]}, { "t": 24, "b": [], "g": 16, "n": 1 }, "f0": [ { "g": 1, "t": 0 } ] Sensors: Dht11 thermometer HC-SR501 motion sensor 4 relay switch

pawelosin commented 3 years ago

Try this { "c": { "l": 13, "i": 1 }, "a": [{ "0": { "r": [{ "g": 12, "v": 0 }] }, "1": { "r": [{ "g": 12, "v": 1 }] }, "b": [{ "g": 0, "p": 0 }, { "g": 0, "t": 1 }] }, { "0": { "r": [{ "g": 5, "v": 0 }] }, "1": { "r": [{ "g": 5, "v": 1 }] }, "b": [{ "g": 9, "p": 0 }, { "g": 9, "t": 1 }] }, { "0": { "r": [{ "g": 4, "v": 0 }] }, "1": { "r": [{ "g": 4, "v": 1 }] }, "b": [{ "g": 10, "p": 0 }, { "g": 10, "t": 1 }] }, { "0": { "r": [{ "g": 15, "v": 0 }] }, "1": { "r": [{ "g": 15, "v": 1 }] }, "b": [{ "g": 14, "p": 0 }, { "g": 14, "t": 1 }] }, { "t": 24, "b": [], "g": 16, "n": 1 }, { "t": 12, "f0": [{ "g": 1, "t": 0 }] }] }

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.