Giter VIP home page Giter VIP logo

esp-homekit-multiple-sensors's People

Contributors

dave1001 avatar dbsqp avatar homeaccessorykid avatar jlusiardi avatar maximkulkin avatar pcsaito avatar peros550 avatar renssies avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp-homekit-multiple-sensors's Issues

DHT 11 sensor is compatible?

Hi.
I looked in to your example and it is perfect for what I want.
I flashed it and had a few problems. First I couldn’t add it to my Home.app but all the sensors was attached to it. I tried again with no sensors and configured it to the app. But then just the air conditioner and the temperature/umidity sensor show “no response”. Again I tried without all sensors and found out that when I plugged the DHT11 sensor it stops working. Motion sensor works fine.
Anybody getting the same results? Thanks in advance

Problems with RawData

Hello Peros.

I am having a problem with the size of raw data. The code doesn't even compile :/
My alternative was using just the "cool" function. And I had to change the code to the range of temperature (between 16-26C).

#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
//#include <task.h>
#include <ir/ir.h>
#include <ir/raw.h>
#include "ac_commands.h"

//Below codes are for ELGIN AC
 int16_t Fan[] = {8996, -4519,   534, -1742,   508, -1740,   508,  -577,   533,  -578,   532,  -579,   535,  -575,   534, -1741,
 508, -1742,   508, -1740,   508, -1741,   508, -1741,   507,  -577,   533,  -577,   534,  -577,   533, -1744,
 505,  -578,   533,  -578,   534,  -577,   533,  -578,   534,  -577,   532,  -579,   533, -1743,   507, -1741,
 507, -1742,   506,  -578,   532,  -579,   532,  -578,   532,  -580,   531,  -581,   672,  -437,   532,  -580,
 532,  -579,   533,  -578,   532,  -578,   533,  -578,   531,  -580,   532,  -578,   532, -1745,   507,  -577,
 531, -1745,   505, -579,   531,  -579,   532,  -579,   533,  -579,   532,  -579,  530,  -581,   532,  -579,
 531,  -580,   532, -579,   531, -579,   532,  -580,   532,  -578,   533,  -578,   534, -1742,   506,  -578,
 531,  -581,   529,  -581,   532, -579,   531,  -580,   531,  -580,   531,  -579,  533,  -579,   532,  -579,
 532,  -579,   532,  -579,   530,  -581,   532,  -579,   530,  -581,   531, -580,   531,  -580,   532,  -578,
 533,  -578,   532,  -579,   531,  -580,   531,  -580,   532,  -579,   532, -579,  532, -1744,   505,  -578,
 532,  -580,   531,  -580,   533,  -578,   532,  -578,   532,  -580,   531,  -580,   530,  -580,  532,  -581,
 530,  -579,   532, -1743,   507,  -578,   533,  -577,   532,  -580,   530,  -581,   530,  -580,   532,  -579,
 533,  -578,   532, -1744,  504, -1745,   505,  -578,   531, -1745,   506,  -579,   530,  -581,   530, -1745,
 506, -1743,   505}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_16[] = {8996, -4519,   534, -1742,   508, -1740,   508,  -577,   533,  -578,   532,  -579,   535,  -575,   534, -1741,
 508, -1742,   508, -1740,   508, -1741,   508, -1741,   507,  -577,   533,  -577,   534,  -577,   533, -1744,
 505,  -578,   533,  -578,   534,  -577,   533,  -578,   534,  -577,   532,  -579,   533, -1743,   507, -1741,
 507, -1742,   506,  -578,   532,  -579,   532,  -578,   532,  -580,   531,  -581,   672,  -437,   532,  -580,
 532,  -579,   533,  -578,   532,  -578,   533,  -578,   531,  -580,   532,  -578,   532, -1745,   507,  -577,
 531, -1745,   505, -579,   531,  -579,   532,  -579,   533,  -579,   532,  -579,  530,  -581,   532,  -579,
 531,  -580,   532, -579,   531, -579,   532,  -580,   532,  -578,   533,  -578,   534, -1742,   506,  -578,
 531,  -581,   529,  -581,   532, -579,   531,  -580,   531,  -580,   531,  -579,  533,  -579,   532,  -579,
 532,  -579,   532,  -579,   530,  -581,   532,  -579,   530,  -581,   531, -580,   531,  -580,   532,  -578,
 533,  -578,   532,  -579,   531,  -580,   531,  -580,   532,  -579,   532, -579,  532, -1744,   505,  -578,
 532,  -580,   531,  -580,   533,  -578,   532,  -578,   532,  -580,   531,  -580,   530,  -580,  532,  -581,
 530,  -579,   532, -1743,   507,  -578,   533,  -577,   532,  -580,   530,  -581,   530,  -580,   532,  -579,
 533,  -578,   532, -1744,  504, -1745,   505,  -578,   531, -1745,   506,  -579,   530,  -581,   530, -1745,
 506, -1743,   505};

 int16_t Cool_17[] = {9042, -4478,   576, -1701,   525, -1725,   550,  -535,   575,  -535,   577,  -534,   579,  -534,   577, -1699,
 550, -1700,   552, -1698,   549, -1701,   549, -1700,   550, -1700,   549,  -536,   576,  -535,   578, -1699,
 549,  -535,   580,  -533,   575,  -536,   562,  -550,   550,  -561,   577,  -535,   577, -1699,   550, -1700,
 549, -1701,   549,  -534,   578,  -533,   578,  -534,   578,  -534,   578,  -534,   576,  -535,   576,  -534,
 578,  -534,   576,  -535,   580,  -533,   576,  -534,   578,  -535,   576,  -535,   577, -1699,   550,  -535,
 575, -1701,   550,  -535,   577,  -536,   573,  -537,   577,  -535,   576,  -534,   577,  -534,   580,  -532,
 578,  -533,   578,  -533,   579,  -534,   578,  -533,   576,  -536,   575,  -535,   580, -1697,   553, -532,
 579,  -531,   580,  -533,   577,  -535,   577,  -534,   578,  -534,   577,  -534,   580,  -532,   577,  -535,
 575,  -536,   604,  -507,   555,  -558,   556,  -554,   578,  -533,   577,  -535,   577,  -534,   552,  -560,
 576,  -534,   577,  -535,   577,  -534,   577,  -534,   578,  -534,   577,  -535,   577, -1699,   548,  -536,
 577,  -536,   551,  -560,   551,  -561,   550,  -561,   577,  -535,   575,  -535,   577,  -536,   550,  -560,
 553,  -559,   551,  -560,   577,  -535,   551,  -561,   575,  -536,   575,  -537,   574,  -537,   551,  -560,
 576,  -535,   577,  -535,   578, -1699,   549,  -536,   551,  -560,   551, -1726,   549,  -535,   575, -1702,
 526, -1724,   525}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_18[] = {9062, -4455,   598, -1677,   572, -1677,   572,  -512,   600,  -511,   598,  -513,   599,  -512,   599, -1677,
 573, -1675,   574, -1676,   572, -1677,   572, -1677,   573,  -511,   599, -1676,   573,  -512,   600, -1676,
 574,  -510,   601,  -510,   599,  -513,   599,  -512,   598,  -512,   600,  -512,   600, -1677,   571, -1678,
 572, -1676,   574,  -511,   598,  -513,   599,  -511,   600,  -512,   599,  -512,   599,  -512,   599,  -512,
 599,  -513,   597,  -513,   600,  -512,   574,  -537,   600,  -512,   598,  -512,   599, -1677,   572,  -512,
 598, -1679,   572,  -511,   598,  -514,   597,  -513,   599,  -513,   599,  -512,   597,  -515,   598,  -513,
 598,  -512,   598,  -513,   599,  -512,   599,  -512,   598,  -514,   598,  -513,   599, -1677,   571,  -513,
 598,  -513,   598,  -513,   599,  -512,   598,  -513,   598,  -513,   599,  -512,   599,  -512,   597,  -515,
 627,  -445,   636,  -514,   598,  -513,   599,  -512,   598,  -513,   599,  -512,   598,  -513,   599,  -512,
 598,  -513,   599,  -512,   598,  -513,   600,  -512,   599,  -512,   598,  -513,   598, -1677,   573,  -512,
 598,  -512,   599,  -514,   598,  -512,   599,  -512,   599,  -512,   600,  -511,   599,  -512,   599,  -512,
 599,  -513,   598,  -512,   599,  -514,   597,  -512,   599,  -512,   600,  -512,   599,  -511,   600,  -512,
 599,  -511,   599,  -512,   599, -1678,   571,  -513,   598, -1678,   570, -1678,   572,  -512,   598, -1679,
 570, -1678,   572}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_19[] = {8997, -4518,   535, -1741,   510, -1739,   508,  -576,   536,  -575,   536,  -575,   536,  -575,   546, -1731,
 509, -1739,   509, -1740,   509, -1740,   508, -1741,   509, -1740,   508, -1741,   507,  -578,   536, -1739,
 508,  -577,   534,  -576,   534,  -577,   532,  -579,   534,  -577,   534,  -577,   534, -1742,   508, -1741,
 507, -1742,   506,  -578,   533,  -578,   534,  -577,   536,  -575,   534,  -576,   534,  -578,   534,  -577,
 533,  -578,   533,  -578,   535,  -576,   534,  -577,   533,  -578,   535,  -576,   532, -1744,   505,  -579,
 532, -1744,   506,  -578,   533,  -578,   534,  -576,   534,  -578,   533,  -577,   535,  -577,   621,  -488,
 533,  -580,   532,  -579,   532,  -579,   532,  -579,   534,  -577,   532,  -579,   534, -1742,   507,  -578,
 533,  -577,   534,  -577,   535,  -576,   533,  -579,   532,  -578,   534,  -578,   533,  -577,   533,  -578,
 534,  -578,   534,  -577,   534,  -577,   533,  -578,   533,  -578,   535,  -576,   534,  -577,   533,  -578,
 533,  -578,   533,  -578,   535,  -576,   534,  -577,   534,  -577,   533,  -577,   534, -1743,   505,  -579,
 532,  -579,   533,  -578,   532,  -579,   533,  -578,   534,  -577,   534,  -577,   532,  -578,   533,  -579,
 532,  -579,   533,  -578,   533,  -577,   533,  -579,   533,  -578,   533,  -578,   535,  -576,   532,  -578,
 532,  -580,   532,  -578,   534, -1742,   506,  -578,   533,  -578,   533,  -578,   532, -1744,   507, -1742,
 507, -1741,   508}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_20[] = {8989, -4525,   530, -1746,   503, -1745,   504,  -581,   530,  -581,   530,  -582,   530,  -580,   530, -1746,
 503, -1746,   504, -1744,   524, -1725,   504, -1745,   504,  -581,   550,  -561,   530, -1745,   504, -1745,
 504,  -580,   529,  -583,   530,  -580,   531,  -580,   530,  -581,   530,  -581,   530, -1746,   503, -1746,
 505, -1744,   503,  -581,   550,  -562,   550,  -560,   531,  -580,   530,  -581,   530,  -582,   529,  -582,
 529,  -581,   530,  -581,   550,  -562,   548,  -563,   550,  -561,   529,  -582,   529, -1746,   503,  -581,
 549, -1727,   503,  -581,   531,  -580,   530,  -582,   530,  -580,   550,  -562,   548,  -563,   549,  -562,
 542,  -569,   530,  -581,   529,  -581,   582,  -527,   555,  -559,   549,  -562,   549, -1726,   504,  -581,
 548,  -563,   529,  -582,   529,  -582,   548,  -562,   548,  -563,   530,  -582,   549,  -562,   531,  -580,
 530,  -581,   549,  -562,   530,  -581,   530,  -581,   547,  -564,   530,  -581,   529,  -582,   529,  -582,
 530,  -581,   530,  -581,   550,  -561,   549,  -562,   530,  -581,   530,  -581,   530, -1746,   504,  -580,
 530,  -582,   530,  -580,   531,  -581,   529,  -582,   549,  -561,   530,  -581,   530,  -581,   531,  -580,
 529,  -582,   548,  -563,   530,  -581,   531,  -580,   531,  -580,   530,  -581,   530,  -581,   529,  -583,
 529,  -582,   530,  -581,   529, -1746,   503,  -582,   531, -1744,   504,  -580,   531, -1745,   504, -1745,
 504, -1745,   504}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_21[] = {8992, -4524,   530, -1745,   505, -1744,   505,  -580,   530,  -581,   530,  -581,   530,  -581,   530, -1745,
 504, -1745,   505, -1744,   504, -1745,   503, -1746,   505, -1743,   505,  -580,   529, -1747,   503, -1745,
 505,  -580,   531,  -580,   531,  -580,   531,  -581,   530,  -580,   531,  -580,   532, -1744,   504, -1744,
 506, -1744,   505,  -580,   531,  -580,   531,  -580,   548,  -563,   529,  -582,   530,  -581,   530,  -581,
 531,  -580,   531,  -580,   529,  -582,   531,  -580,   531,  -581,   529,  -581,   531, -1745,   504,  -580,
 531, -1745,   504,  -580,   531,  -580,   531,  -580,   531,  -580,   530,  -581,   530,  -581,   530,  -581,
 530,  -581,   530,  -581,   550,  -561,   529,  -582,   531,  -580,   531,  -580,   531, -1745,   505,  -578,
 532,  -580,   530,  -581,   530,  -581,   531,  -580,   531,  -579,   531,  -580,   531,  -581,   529,  -582,
 530,  -580,   531,  -580,   531,  -580,   531,  -580,   530,  -581,   530,  -581,   532,  -580,   529,  -581,
 530,  -581,   531,  -580,   530,  -581,   531,  -580,   531,  -580,   531,  -580,   530, -1744,   506,  -580,
 530,  -581,   531,  -580,   531,  -580,   531,  -580,   531,  -580,   530,  -581,   530,  -581,   531,  -581,
 529,  -581,   532,  -580,   530,  -580,   531,  -579,   532,  -581,   530,  -580,   531,  -580,   530,  -581,
 531,  -580,   531,  -580,   531, -1744,   504,  -581,   531,  -579,   532, -1744,   505, -1744,   505, -1744,
 506, -1743,   505}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_22[] = {9011, -4506,   529, -1746,   504, -1746,   503,  -581,   549,  -562,   550,  -561,   530,  -585,   531, -1739,
 505, -1746,   504, -1745,   502, -1747,   504, -1745,   504,  -580,   532, -1744,   504, -1745,   505, -1744,
 506,  -579,   531,  -579,   534,  -578,   532,  -579,   532,  -579,   532,  -579,   533, -1744,   506, -1743,
 506, -1743,   508,  -576,   532,  -580,   531,  -580,   532,  -579,   531,  -580,   532,  -579,   533,  -578,
 530,  -581,   531,  -580,   532,  -580,   531,  -579,   533,  -578,   533,  -579,   531, -1745,   505,  -579,
 532, -1744,   505,  -579,   531,  -581,   529,  -582,   529,  -582,   529,  -581,   532,  -580,   530,  -581,
 530,  -581,   531,  -580,   530,  -582,   529,  -582,   530,  -580,   551,  -561,   548, -1727,   522,  -563,
 529,  -582,   529,  -582,   530,  -581,   530,  -581,   530,  -581,   530,  -582,   548,  -562,   552,  -560,
 529,  -582,   549,  -562,   548,  -563,   530,  -581,   550,  -562,   549,  -562,   530,  -581,   530,  -581,
 550,  -561,   548,  -563,   530,  -581,   548,  -563,   548,  -563,   549,  -562,   548, -1728,   503,  -582,
 529,  -582,   550,  -561,   548,  -563,   530,  -581,   549,  -562,   531,  -580,   530,  -582,   530,  -582,
 528,  -582,   530,  -581,   530,  -582,   549,  -562,   529,  -581,   548,  -564,   562,  -546,   556,  -558,
 549,  -561,   548,  -564,   531, -1745,   503,  -581,   549, -1727,   502, -1747,   503, -1746,   502, -1747,
 505, -1744,   503}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_23[] = {9011, -4506,   548, -1727,   504, -1746,   521,  -563,   550,  -561,   550,  -561,   548,  -563,   548, -1727,
 522, -1727,   523, -1726,   521, -1728,   522, -1728,   502, -1746,   521, -1728,   522, -1727,   523, -1726,
 521,  -564,   530,  -581,   530,  -581,   548,  -563,   529,  -582,   550,  -561,   549, -1726,   522, -1725,
 525, -1726,   523,  -562,   546,  -564,   548,  -563,   548,  -563,   529,  -582,   549,  -562,   530,  -581,
 547,  -564,   548,  -563,   549,  -561,   547,  -564,   542,  -570,   547,  -564,   531, -1744,   520,  -564,
 548, -1728,   504,  -581,   530,  -581,   529,  -582,   548,  -563,   548,  -563,   529,  -581,   549,  -563,
 547,  -564,   529,  -582,   547,  -564,   530,  -581,   547,  -564,   549,  -562,   548, -1727,   522,  -563,
 546,  -565,   547,  -564,   534,  -577,   547,  -564,   530,  -580,   531,  -581,   548,  -563,   574,  -537,
 548,  -563,   547,  -564,   548,  -563,   530,  -581,   560,  -551,   554,  -556,   549,  -563,   547,  -564,
 550,  -561,   547,  -563,   549,  -562,   530,  -581,   547,  -565,   537,  -573,   547, -1729,   503,  -581,
 531,  -581,   548,  -562,   549,  -563,   548,  -563,   548,  -562,   548,  -564,   547,  -564,   547,  -564,
 529,  -581,   530,  -582,   530,  -581,   548,  -562,   549,  -562,   531,  -580,   530,  -582,   548,  -562,
 549,  -563,   529,  -582,   529, -1746,   504,  -580,   550,  -561,   550,  -561,   530,  -581,   530,  -582,
 530,  -580,   531}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_24[] = {9011, -4506,   529, -1746,   502, -1745,   504,  -582,   529,  -582,   529,  -581,   530,  -581,   548, -1728,
 523, -1726,   503, -1745,   505, -1744,   503, -1746,   505,  -580,   534,  -577,   530,  -582,   532,  -579,
 530, -1743,   526,  -560,   550,  -560,   550,  -562,   530,  -580,   550,  -561,   549, -1727,   504, -1745,
 503, -1747,   502,  -582,   716,  -394,   551,  -560,   551,  -562,   531,  -579,   530,  -553,   581,  -557,
 549,  -563,   530,  -581,   529,  -582,   530,  -582,   529,  -581,   530,  -581,   530, -1745,   536,  -539,
 562, -1724,   504,  -580,   530,  -581,   530,  -581,   530,  -581,   530,  -582,   531,  -579,   531,  -583,
 546,  -562,   550,  -561,   531,  -581,   528,  -582,   531,  -580,   529,  -582,   531, -1744,   504,  -581,
 531,  -580,   689,  -423,   530,  -582,   530,  -521,   611,  -558,   550,  -561,   550,  -561,   549,  -563,
 532,  -578,   530,  -580,   553,  -559,   549,  -562,   548,  -564,   529,  -581,   530,  -581,   549,  -562,
 548,  -563,   530,  -581,   674,  -437,   550,  -561,   551,  -560,   547,  -564,   530, -1745,   504,  -581,
 530,  -581,   553,  -557,   549,  -563,   530,  -581,   529,  -582,   530,  -581,   548,  -563,   530,  -581,
 530,  -581,   528,  -583,   553,  -557,   550,  -562,   529,  -581,   531,  -581,   530,  -581,   530,  -581,
 531,  -580,   531,  -579,   531, -1745,   503,  -582,   530, -1745,   503,  -581,   531,  -580,   531,  -580,
 531,  -580,   530}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_25[] = {9011, -4505,   547, -1728,   502, -1746,   504,  -580,   547,  -565,   529,  -582,   530,  -580,   531, -1745,
 504, -1745,   502, -1746,   504, -1747,   524, -1724,   523, -1725,   503,  -581,   550,  -562,   530,  -581,
 531, -1744,   521,  -564,   529,  -581,   531,  -581,   529,  -582,   530,  -580,   530, -1745,   504, -1746,
 521, -1728,   503,  -581,   548,  -563,   530,  -581,   547,  -564,   530,  -581,   531,  -580,   530,  -581,
 531,  -580,   530,  -581,   548,  -563,   548,  -563,   530,  -581,   529,  -582,   530, -1746,   502,  -582,
 530, -1745,   503,  -581,   530,  -581,   530,  -582,   530,  -580,   530,  -581,   549,  -562,   530,  -581,
 546,  -565,   530,  -581,   530,  -581,   530,  -581,   530,  -581,   530,  -581,   548, -1727,   522,  -562,
 548,  -563,   547,  -564,   530,  -581,   530,  -581,   530,  -581,   530,  -581,   530,  -582,   529,  -581,
 549,  -562,   530,  -581,   529,  -582,   530,  -580,   531,  -581,   530,  -581,   529,  -582,   529,  -581,
 530,  -582,   548,  -562,   530,  -581,   530,  -581,   530,  -581,   531,  -580,   530, -1745,   505,  -580,
 530,  -581,   530,  -581,   529,  -584,   533,  -496,   633,  -558,   529,  -581,   529,  -582,   549,  -562,
 530,  -582,   529,  -581,   530,  -581,   548,  -563,   530,  -581,   548,  -563,   547,  -564,   530,  -581,
 529,  -583,   529,  -581,   530, -1745,   504,  -581,   529,  -581,   549, -1726,   503,  -582,   530,  -581,
 530,  -581,   530}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_26[] = {9012, -4506,   528, -1745,   522, -1728,   521,  -564,   529,  -582,   529,  -582,   549,  -562,   548, -1727,
 503, -1746,   521, -1729,   502, -1746,   504, -1746,   521,  -563,   530, -1744,   504,  -582,   547,  -565,
 528, -1747,   503,  -581,   530,  -581,   529,  -583,   547,  -564,   549,  -562,   546, -1729,   521, -1729,
 521, -1727,   503,  -582,   530,  -581,   547,  -564,   530,  -581,   530,  -581,   530,  -581,   530,  -581,
 530,  -581,   547,  -564,   530,  -581,   548,  -563,   530,  -581,   547,  -564,   530, -1746,   504,  -581,
 529, -1745,   504,  -582,   530,  -581,   530,  -580,   548,  -564,   529,  -582,   529,  -582,   529,  -582,
 547,  -564,   547,  -564,   530,  -581,   530,  -581,   529,  -582,   548,  -563,   530, -1745,   503,  -582,
 530,  -582,   529,  -581,   530,  -581,   531,  -581,   529,  -582,   529,  -582,   530,  -581,   548,  -563,
 529,  -582,   530,  -581,   530,  -581,   530,  -581,   531,  -580,   548,  -563,   530,  -581,   530,  -582,
 548,  -563,   546,  -565,   530,  -581,   530,  -581,   530,  -581,   531,  -580,   531, -1745,   504,  -581,
 530,  -581,   529,  -582,   529,  -490,   624,  -579,   551,  -560,   531,  -580,   530,  -582,   529,  -582,
 530,  -580,   531,  -581,   530,  -581,   530,  -581,   530,  -581,   530,  -581,   529,  -581,   531,  -581,
 530,  -581,   530,  -581,   531, -1745,   505,  -580,   530, -1745,   503, -1745,   504,  -581,   531,  -580,
 530,  -581,   531}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_27[] = {3692}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_28[] = {601, -1068,   599, -1097,   572,  -440,   603,  -441,   602,  -443,   600, -1072,
 597,  -441,   600}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_29[] = {577,  -465,   578,  -465,   577,  -466,   578,  -464,   577,  -466,   577,  -466,
 577,  -465,   578,  -466,   578, -1089,   578, -1089,   578,  -465,   582,  -460,   577,  -466,   577, -1092,
 575,  -465,   577}; //AnalysIR Batch Export (IRremote) - RAW
 int16_t Cool_30[] = {576,  -467,   573,  -469,   575,  -469,   575,  -467,   575,  -466,   576,  -466,
 575,  -468,   577, -1090,   575,  -466,   576, -1091,   574,  -468,   576,  -466,   578,  -464,   576, -1090,
 552,  -492,   575}; //AnalysIR Batch Export (IRremote) - RAW


 int16_t Heat_16[] = {652 , -553 ,  655 , -552 ,  656 , -550 ,  647 , -559 ,  649 , -558 ,
650 , -556 ,  651 , -555 ,  653 , -553 ,  655 , -551 ,  657 ,-1650 ,  650 };
 int16_t Heat_17[] = {-550 ,  647 , -560 ,  648 , -558 ,  649 , -557 ,  651 , -555 ,
653 , -553 ,  656 ,-1625 ,  674 , -559 ,  649 , -557 ,  651 ,-1657 ,  654};
 int16_t Heat_18[] = {648 , -559 ,  649 , -557 ,  651 , -555 ,  653 , -554 ,
654 , -551 ,  657 , -549 ,  648 ,-1660 ,  651 , -555 ,  653 ,-1655 ,  655};
 int16_t Heat_19[] = {651 , -559 ,  649 , -553 ,  655 , -551 ,  657 , -549 ,
648 , -558 ,  650 ,-1657 ,  654 ,-1654 ,  656 , -550 ,  648 ,-1660 ,  650 };
 int16_t Heat_20[] = {653 , -554 ,  654 , -552 ,  656 , -550 ,  647 , -560 ,
648 , -557 ,  651 , -555 ,  653 , -554 ,  654 ,-1653 ,  658 ,-1649 ,  651};
 int16_t Heat_21[] = {649 , -557 ,  651 , -529 ,  679 , -554 ,  654 , -552 ,
656 , -549 ,  648 ,-1660 ,  651 , -555 ,  653 ,-1655 ,  655 ,-1626 ,  674};
 int16_t Heat_22[] = {655 , -551 ,  656 , -551 ,  647 , -559 ,  649 , -558 ,
650 , -556 ,  651 , -555 ,  653 ,-1628 ,  683 ,-1652 ,  648 ,-1634 ,  676};
 int16_t Heat_23[] = {654 , -552 ,  656 , -551 ,  647 , -559 ,  649 , -557 ,
651 , -555 ,  653 ,-1655 ,  655 ,-1626 ,  675 ,-1632 ,  678 ,-1630 ,  681 };
 int16_t Heat_24[] = {657 , -549 ,  648 , -558 ,  650 , -556 ,  652 , -555 ,
653 , -553 ,  655 , -551 ,  657 , -549 ,  648 , -559 ,  649 , -557 ,  651};
 int16_t Heat_25[] = {650 , -556 ,  652 , -554 ,  654 , -552 ,  656 , -550 ,
647 , -559 ,  649 ,-1659 ,  652 , -554 ,  654 , -553 ,  655 , -550 ,  647};
 int16_t Heat_26[] = {650 , -556 ,  652 , -554 ,  654 , -552 ,  656 , -550 ,
647 , -560 ,  648 , -558 ,  650 ,-1631 ,  680 , -552 ,  656 , -550 ,  647};
 int16_t Heat_27[] = {654 , -552 ,  656 , -550 ,  648 , -558 ,  650 , -556 ,
652 , -554 ,  654 , -552 ,  655 , -551 ,  658 , -549 ,  648 , -558 ,  650 , -556 ,  652 , -554 ,  654 , -552 ,
656 , -551 ,  657 ,-1624 ,  676 ,-1632 ,  679 , -554 ,  654 , -552 ,  656};
 int16_t Heat_28[] = {651 , -556 ,  652 , -554 ,  654 , -551 ,  657 , -550 ,
648 , -559 ,  649 , -557 ,  650 , -556 ,  652 ,-1629 ,  682 , -552 ,  656};
 int16_t Heat_29[] = {649 , -557 ,  651 , -555 ,  653 , -553 ,  655 , -552 ,
656 , -551 ,  646 ,-1635 ,  676 , -556 ,  652 ,-1656 ,  655 , -551 ,  657};
 int16_t Heat_30[] = {649 , -558 ,  650 , -556 ,  652 , -554 ,  654 , -552 ,
656 , -550 ,  647 , -560 ,  648 ,-1633 ,  678 ,-1631 ,  680 , -553 ,  655};


 int16_t Off[] = {9016, -4502,  550, -1725,   524, -1725,   524,  -560,   552,  -559,   551,  -560,   551,  -560,   551, -1725,
 527, -1721,   524, -1725,   549, -1700,   525, -1724,   548,  -536,   553, -1723,   526, -1723,   526,  -558,
 553, -1724,   525,  -559,   552,  -559,   551,  -559,   552,  -560,   551,  -559,   551, -1726,   522, -1727,
 524, -1724,   524,  -560,   575, -537,   577,  -533,  552,  -559,   551,  -561,   551,  -560,   550,  -561,
 551,  -561,   550,  -560,   552,  -559,   681,  -320,   693,  -529,   554,  -556,   552, -1723,   527,  -559,
 551, -1724,   547,  -537,   550,  -562,   550,  -560,   551,  -561,   550,  -560,   552,  -560,   575, -536,
 551,  -560,   550,  -561,   551,  -560,   550,  -561,   550,  -561,   550,  -561,   550, -1726,   548, -536,
 552,  -560,   573,  -537,   551,  -560,   550,  -561,   550,  -561,   555,  -557,   550,  -561,   549,  -561,
 551,  -561,   575,  -536,   575,  -536,   572,  -539,   550,  -561,   550,  -561,   551,  -560,   552,  -559,
 552,  -559,   575,  -536,   574,  -537,   575,  -536,   575,  -536,  551,  -561,   549,  -561,   551,  -561,
 549,  -561,   552,  -560,   550,  -561,   574,  -537,   573,  -537,   551,  -562,   573,  -538,   549,  -561,
 551,  -560,  575, -1701,  547,  -537,   551, -1725,   523,  -563,   549,  -561,   577,  -534,   575,  -536,
 551,  -560,   575, -1701,   523, -1725,   524, -1726,   524, -1725,   548, -1701,   524,  -561,   551,  -560,
 550,  -561,   550}; //AnalysIR Batch Export (IRremote) - RAW




 void ac_button_off(){

	ir_tx_init();
	ir_raw_send(Off, sizeof(Off) / sizeof(*Off));

}

 void ac_button_aut(){

	ir_tx_init();
	ir_raw_send(Fan, sizeof(Fan) / sizeof(*Fan));

}

void ac_command(int target_state, float target_temp){

int16_t *RawData;
uint16_t length1;

if(target_state == 2)
{
//Cool mode

		if (target_temp ==  16.0)
		{
		RawData = Cool_16;
		length1 = sizeof(Cool_16)/ sizeof(*Cool_16);
		}
		else if (target_temp ==  17.0)
		{
		RawData = Cool_17;
		length1 =sizeof(Cool_17)/ sizeof(*Cool_17);
		}
		else if (target_temp ==  18.0)
		{

		RawData = Cool_18;
		length1 = sizeof(Cool_18)/sizeof(*Cool_18);
		}
		else if (target_temp ==  19.0)
		{
		RawData = Cool_19;
		length1 = sizeof(Cool_19)/sizeof(*Cool_19);
		}
		else if (target_temp ==  20.0)
		{
		RawData = Cool_20;
		length1 = sizeof(Cool_20)/sizeof(*Cool_20);
		}
		else if (target_temp ==  21.0)
		{
		RawData = Cool_21;
		length1 = sizeof(Cool_21)/sizeof(*Cool_21);
		}
		else if (target_temp ==  22.0)
		{
		RawData = Cool_22;
		length1 =sizeof(Cool_22)/ sizeof(*Cool_22);
		}
		else if (target_temp ==  23.0)
		{
		RawData = Cool_23;
		length1 = sizeof(Cool_23)/sizeof(*Cool_23);
		}
		else if (target_temp ==  24.0)
		{
		RawData = Cool_24;
		length1 = sizeof(Cool_24)/sizeof(*Cool_24);
		}
		else if (target_temp ==  25.0)
		{
		RawData = Cool_25;
		length1 = sizeof(Cool_25)/sizeof(*Cool_25);
		}
		else if (target_temp ==  26.0)
		{
		RawData = Cool_26;
		length1 = sizeof(Cool_26)/sizeof(*Cool_26);
		}
		else if (target_temp ==  27.0)
		{
		RawData = Cool_27;
		length1 = sizeof(Cool_27)/sizeof(*Cool_27);
		}
		else if (target_temp ==  28.0)
		{
		RawData = Cool_28;
		length1 =sizeof(Cool_28)/ sizeof(*Cool_28);
		}
		else if (target_temp ==  29.0)
		{
		RawData = Cool_29;
		length1 = sizeof(Cool_29)/sizeof(*Cool_29);
		}
		else if (target_temp ==  30.0)
		{
		RawData = Cool_30;
		length1 = sizeof(Cool_30)/sizeof(*Cool_30);
		}

	}

	if( target_state == 1)
	{
		//Heat mode
		if (target_temp ==  16.0)
		{
		RawData = Heat_16;
		length1 = sizeof(Heat_16)/sizeof(*Heat_16);
		}
		else if (target_temp ==  17.0)
		{
		RawData = Heat_17;
		length1 = sizeof(Heat_17)/sizeof(*Heat_17);
		}
		else if (target_temp ==  18.0)
		{
		RawData = Heat_18;
		length1 = sizeof(Heat_18)/sizeof(*Heat_18);
		}
		else if (target_temp ==  19.0)
		{
		RawData = Heat_19;
		length1 = sizeof(Heat_19)/sizeof(*Heat_19);
		}
		else if (target_temp ==  20.0)
		{
		RawData = Heat_20;
		length1 = sizeof(Heat_20)/sizeof(*Heat_20);
		}
		else if (target_temp ==  21.0)
		{
		RawData = Heat_21;
		length1 = sizeof(Heat_21)/sizeof(*Heat_21);
		}
		else if (target_temp ==  22.0)
		{
		RawData = Heat_22;
		length1 = sizeof(Heat_22)/sizeof(*Heat_22);
		}
		else if (target_temp ==  23.0)
		{
		RawData = Heat_23;
		length1 = sizeof(Heat_23)/sizeof(*Heat_23);
		}
		else if (target_temp ==  24.0)
		{
		RawData = Heat_24;
		length1 = sizeof(Heat_24)/sizeof(*Heat_24);
		}
		else if (target_temp ==  25.0)
		{
		RawData = Heat_25;
		length1 = sizeof(Heat_25)/sizeof(*Heat_25);
		}
		else if (target_temp ==  26.0)
		{
		RawData = Heat_26;
		length1 = sizeof(Heat_26)/sizeof(*Heat_26);
		}
		else if (target_temp ==  27.0)
		{
		RawData = Heat_27;
		length1 = sizeof(Heat_27)/sizeof(*Heat_27);
		}
		else if (target_temp ==  28.0)
		{
		RawData = Heat_28;
		length1 = sizeof(Heat_28)/sizeof(*Heat_28);
		}
		else if (target_temp ==  29.0)
		{
		RawData = Heat_29;
		length1 = sizeof(Heat_29)/sizeof(*Heat_29);
		}
		else if (target_temp ==  30.0)
		{
		RawData = Heat_30;
		length1 = sizeof(Heat_30)/sizeof(*Heat_30);
		}

	}

	if( target_state == 0)
	{
		//printf("Fan mode\n", 30 );
		RawData = Off;
		length1 = sizeof(Off)/sizeof(*Off);
	}

	ir_tx_init();
	ir_raw_send(RawData, length1);


}

The accessory works fine. But would be good to use other things too :)
Do you have any idea?
thanks in advance

The accessory can't pair

Hi.
I am having a problem with this example.
I can see the accessory in the Home.app but I can't pair it

                                                      �'o��|���n��clpp_task_hdl : 3fff07c0, prio:14, stack:512

pm_task_hdl : 3fff00b0, prio:1, stack:176
frc2_timer_task_hdl:0x3fff47c0, prio:12, stack:200

ESP-Open-SDK ver: 0.0.1 compiled @ Jul 28 2019 16:16:11
phy ver: 273, pp ver: 8.3

wifi_config: Initializing WiFi config
!!! wifi_config: No configuration found
wifi_config: Starting AP mode
wifi_config: Starting DHCP server
mode : sta(a4:cf:12:bf:18:62) + softAP(a6:cf:12:bf:18:62)
add if0
add if1
bcn 100
wifi_config: Starting WiFi scan
wifi_config: Starting DNS server
wifi_config: Starting HTTP server
no buf for probe, ie len 0
no buf for probe, ie len 0
scandone
scandone
add 1
aid 1
station: 78:7b:8a:81:ae:47 join, AID = 1
scandone
scandone
wifi_config: Connecting to Mansão SP 02
scandone
add 0
aid 1
cnt

connected with Mansão SP 02, channel 6
dhcp client start...
ip:172.20.10.9,mask:255.255.255.240,gw:172.20.10.1

wifi_config: Connected to WiFi network
station: 78:7b:8a:81:ae:47 leave, AID = 1
rm match
bcn 0
del if1
mode : sta(a4:cf:12:bf:18:62)
Function called without core lock
wifi_config: Stopping DNS server
wifi_config: Stopping HTTP server

can you please help me. thanks

motion sensor

Does the motion sensor need to connect a Resistance?
i test my motion sensor it doesnt work

IR commands for AC control

I am very interested in an IR system to receive a send commands like a remote. Maybe we can join efforts.

problem with pairing

Hello Peros.
Sorry to bother you once more.
I compiled your code and was using it without a problem.
A couple of months ago you updated it. And today I tried to make it work.
But I can't pair it

here is the logs

Function called without core lock
CONNECTED TO >>> WIFI <<<
HOSTNAME set>>>>>:HomekitSensor-D44962
manuf='manuf_unknown' serial='F4:CF:A2:D4:49:62' model='model_unknown' revision='0.0.0' c#=0
Free Heap: 25356
>>> HomeKit: Starting server
>>> HomeKit: Formatting HomeKit storage at 0x8c000
>>> wifi_config: Stopping HTTP server
>>> HomeKit: Generated new accessory ID: 2C:DD:43:4E:83:1B
>>> HomeKit: Generated new accessory key
>>> HomeKit: Configuring mDNS
HomeKit: adding mDNS TXT record md=model_unknown
HomeKit: adding mDNS TXT record pv=1.0
HomeKit: adding mDNS TXT record id=2C:DD:43:4E:83:1B
HomeKit: adding mDNS TXT record c#=1
HomeKit: adding mDNS TXT record s#=1
HomeKit: adding mDNS TXT record ff=0
HomeKit: adding mDNS TXT record sf=1
HomeKit: adding mDNS TXT record ci=9
SERVER JUST INITIALIZED
>>> wifi_config: Stopping DNS server
mDNS: Delaying probe until IP is acquired
Got IP, resuming mDNS
mDNS: Probing 1 HomekitSensor-D44962
mDNS: Failed to send broadcast (code 118)
mDNS: Probing 1 HomekitSensor-D44962
mDNS: Failed to send broadcast (code 118)
ip:192.168.100.25,mask:255.255.255.0,gw:192.168.100.1
mDNS: Probing 2 HomekitSensor-D44962
mDNS: Probing 3 HomekitSensor-D44962
mDNS: Probe successful, announcing HomekitSensor-D44962 TXT md=model_unknown pv=1.0 id=2C:DD:43:4E:83:1B c#=1 s#=1 ff=0 sf=1 ci=9
mDNS: Announcing 1 HomekitSensor-D44962
mDNS: Announcing 2 HomekitSensor-D44962
mDNS: Announcing 3 HomekitSensor-D44962
mDNS: Announcing 4 HomekitSensor-D44962

Some help would be awesome!!

No response after a period of time

Has anyone else been using this program on their esp8266s for a while and eventually have it stop responding in Homekit? Sometimes unplugging and replugging the power fixes it, other times I have to hit the button to reset Homekit pairing.

lux backwards

Hi loving the sensor works well but I'm having a issue with the lux sensor reading backwards. I am using a photo diode and it is reading but i get 0 lux when in light and 1024 in the dark. Also is there a way to get it to post every 5 seconds and not every 10 seconds.

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.