Comments (40)
@RavenSystem I also think that adding ds18b20 sensor is a good idea
I also want to use it as a water heater for aquarium
Also, I see that Apple added Water Heater characteristic, it will be also good idea add this
from esp-homekit-devices.
Auto mode is disabled, because Sonoff doesn't know if you have connected a heater or a cooler to it. Auto mode only makes sense in HVAC systems, and a Sonoff can not manage it.
from esp-homekit-devices.
5 GPIO free
from esp-homekit-devices.
https://github.com/Kristian8606/Sonoff_TH
from esp-homekit-devices.
I have the SSD1306 display working with my thermostat example
https://github.com/maccoylton/homekit_wifi_thermostat
file size is 447904 according to MacOS. Characters are working, my bitmap logo isn't working yet
from esp-homekit-devices.
esp-open-rtos includes drivers for DS18B20, so you can use it in your custom firmware: https://github.com/SuperHouse/esp-open-rtos/tree/master/extras/ds18b20
from esp-homekit-devices.
Thermostat is developed for a SonOff dual per cold and heather?
from esp-homekit-devices.
No, sorry. Because Sonoff Dual requires some modding to add a temp/hum sensor. And main purpose of this firmware is to provide an out-of-the-box functionality.
from esp-homekit-devices.
wait, I wanted to understand how the thermostat is configured. I mean to understand which device should be set. I tried it on a sonoff basis and it works, but hot or cold always activates that relay or is designed to activate a relay with hot another with cold?
from esp-homekit-devices.
You have one relay. If you connect a heater to it, then you must use Heater option in HomeKit App; and if you connect a cooler, then you must use Cooler option in HomeKit App.
If you connect a Heater, and you select Cooler option in HomeKit App, relay will activate when sensor temperature is higher than target temperature, and you don't want that.
from esp-homekit-devices.
RavenSystem can you add a display to the thermostat?
I could not make it .
from esp-homekit-devices.
@Kristian8606 How many free GPIOs do you have?
from esp-homekit-devices.
And do you have any kind of display?
from esp-homekit-devices.
I'm trying to add the ssh 1306 OLED display
from esp-homekit-devices.
Uff, that display requires a lot of flash size, for fonts and other things. Do you have another display (less complex)?
from esp-homekit-devices.
Nextion 2.4
from esp-homekit-devices.
https://github.com/SuperHouse/esp-open-rtos/tree/master/examples/ssd1306_example
this code is successfully compiled along with an esp8266 thermostat with a ssh1306 display
from esp-homekit-devices.
@Kristian8606 any luck on adding the ssd1306 display to Ravensystem code?
from esp-homekit-devices.
Успях да изпратя температурната влажност и целевата температура на дисплея, като отпечатах стойностите. Направих серийна връзка с ардуин с прикачен дисплей, който чете данните и ги показва на дисплея. По-късно ще кача кода в моето хранилище заедно със снимки.
from esp-homekit-devices.
@Kristian8606 No enough flash space to implement HomeKit framework and SSD1306 display in 512KB.
from esp-homekit-devices.
RavenSystem thanks!
one of the ways to display the data that I did of is with the second esp8266 via a serial interface.
For now, this option works for me with slight exceptions. Sometimes the temperature disappears from the display and appears when the data arrives again, maybe not read from bufer corectly .
I was thinking now another idea.
Is it possible to insert an example of esp-now or another protocol to send the temperature data via the WIFI to a second esp8266 to display them in the display?
from esp-homekit-devices.
@Kristian8606 I have found this example code for an UDP connection:
- Server (esp with display): https://github.com/willemwouters/ESP8266/wiki/UDP-Server---LWIP-Stack
- Client (esp with Thermostat): https://github.com/willemwouters/ESP8266/wiki/UDP-Client---LWIP-Stack
char data[]
is what you want to send, and remember to fix length in os_memcpy (b->payload, data, ???);
according to data[].
You must send all data every something change, so you must call send data function when temp change and when you change the state of thermostat.
To send data you must create a simple protocol, so for example you simply can do something like this:
char[0] = current_temperature
char[1] = target_temperature
char[2] = humidity
char[3] = current_state
char[4] = target_state
When server receive data, you refresh your display with all data received.
I hope this can help you.
from esp-homekit-devices.
if I correctly understand you have an example of a thermostat with a display? Can you give more information about how it was done? sorry my bad english
from esp-homekit-devices.
The SSD1306 is connected directly to the ESP8622, just needs two pins, uses the driver provided as part of esp-open-rtos, my firmware usee OTA, so < 512k, checkout the code at the link above
from esp-homekit-devices.
maccoylton I tried your code but when I connect a display and esp starts to restart?
from esp-homekit-devices.
Can you provide more details, mine has been running stable for a number of weeks
from esp-homekit-devices.
I use esp8266. when I start the device I do not detect it and I can not connect it to wifi but in the serial monitor it prints temperature. If I connect a display to it I see WiFi but the device is restarted continuously. the display is ssd1306
from esp-homekit-devices.
Did you install my firmware or did you write you own code? How exactly have you wired it all up? What power supply are you using and what is it rated to?
from esp-homekit-devices.
I installed your firmware. the same esp 12 works well with the of maximkulkin thermostat.
from esp-homekit-devices.
What version of SS1306 do you have i2C or SPI, the firmware is written for I2C, did you check the code for the GPIOs and have you got a power supply suitable to power the ESP, Temperature sensor and screen?
from esp-homekit-devices.
I2c display power supply is 2 amps gpio are connected correctly. When I upload another esp demo code, it all works.
from esp-homekit-devices.
Can you provide more detail please, specific on wiring, can you also provide a trace, per above this is running stable for me, I can help but I need more details.
from esp-homekit-devices.
The connection is on this circuit pin 4 and pin 5 also tried with pin 14 and 5 volt supply to the display but the effect is the same.
esp is restarted.
from esp-homekit-devices.
maybe the display does not cause the problem.
esp is restarted in the same way not only when the display is connected a and when I connect esp to Wifi.
from esp-homekit-devices.
Can you provide a trace please
from esp-homekit-devices.
`Free Heap: 32680
_heap_start 0x3fff28c8 brk 0x3fff8064 supervisor sp 0x40000000 sp-brk 32668 bytes
arena (total_size) 22428 fordblks (free_size) 12 uordblocks (used_size) 22416
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 2292, room 16
0x40100000: _stext at ??:?
tail 4
chksum 0x57
load 0x3ffe8000, len 772, room 4
tail 0
chksum 0x0b
csum 0x0b
rBoot v1.4.0 - [email protected]
Flash Size: 8 Mbit
Flash Mode: QIO
Flash Speed: 40 MHz
rBoot Option: Big flash
rBoot Option: RTC data
Booting rom 0.
pp_task_hdl : 3fff06f0, prio:14, stack:512
pm_task_hdl : 3ffeffe0, prio:1, stack:176
frc2_timer_task_hdl:0x3fff4a48, prio:12, stack:200
ESP-Open-SDK ver: 0.0.1 compiled @ Oct 18 2018 00:37:13
phy ver: 273, pp ver: 8.3
Calling screen init
fonts count 26
Screen Init SDK version:0.9.9
Screen init called
manuf='manuf_unknown' serial='B4:E6:2D:37:36:2F' model='model_unknown' revision='0.0.0' c#=0
mode : softAP(b6:e6:2d:37:36:2f)
add if1
bcn 100
Couldnt read data from sensor
HomeKit: Starting server
HomeKit: Using existing accessory ID: 5D:58:9D:92:48:8A
mDNS_init: wifi opmode not station
HomeKit: Configuring mDNS
rtos assert /Volumes/case-sensitive/esp-homekit-devices/sdk/esp-open-rtos/FreeRTOS/Source/queue.c 1406
abort() invoked at 0x402048bb.
0x402048bb: vAssertCalled at /Volumes/case-sensitive/esp-homekit-devices/sdk/esp-open-rtos/FreeRTOS/Source/portable/esp8266/port.c:197
Stack: SP=0x3fff7920
0x3fff7920: 00000000 3fff24a8 00000000 402048be
0x402048be: vAssertCalled at ??:?
0x3fff7930: 00000000 3fff7980 00000000 402050e0
0x402050e0: xQueueSemaphoreTake at /Volumes/case-sensitive/esp-homekit-devices/sdk/esp-open-rtos/FreeRTOS/Source/queue.c:2346
0x3fff7940: 3fff7a48 00000001 3fff0650 40204e74
0x40204e74: xQueueGiveMutexRecursive at /Volumes/case-sensitive/esp-homekit-devices/sdk/esp-open-rtos/FreeRTOS/Source/queue.c:2346
0x3fff7950: ffffffff 0000000a 3fff2764 4020f9a0
0x4020f9a0: _lock_release_recursive at /Volumes/case-sensitive/esp-homekit-devices/sdk/esp-open-rtos/core/newlib_syscalls.c:202
0x3fff7960: 3ffef228 3fff7a94 3fff2764 4023a310
0x4023a310: homekit_characteristic_has_notify_callback at ??:?
0x3fff7970: 3ffef228 3fff24a8 40236588 4021d9ed
0x40236588: sdk_Uart_Init at ??:?
0x4021d9ed: mdns_clear at /Volumes/case-sensitive/esp-homekit-devices/devices_legacy/homekit_wifi_thermostat/components/esp-homekit/src/mdnsresponder.c:537
0x3fff7980: 3fff7970 3ffe8978 40236588 4021d0cf
0x40236588: sdk_Uart_Init at ??:?
0x4021d0cf: homekit_mdns_configure_finalize at /Volumes/case-sensitive/esp-homekit-devices/devices_legacy/homekit_wifi_thermostat/components/esp-homekit/src/port.c:69
0x3fff7990: 00000031 3fff7874 00000000 4023a310
0x4023a310: homekit_characteristic_has_notify_callback at ??:?`
from esp-homekit-devices.
Сan you use a temperature sensor DS18B20?
from esp-homekit-devices.
esp-open-rtos includes drivers for DS18B20, so you can use it in your custom firmware: https://github.com/SuperHouse/esp-open-rtos/tree/master/extras/ds18b20
Are you able to add this as an option in Ravencore that one can select like the other temp/humidity sensors. I want to also use this sensor as I want to deploy it in my swimming pool and it is the only one made to be used submersed. Or maybe you can guide me on how to put this into my custom firmware unfortunately I am not too good at coding.
from esp-homekit-devices.
@yusufd1 have you a ds18b20 sensor (I have not one)? In that case, open a new issue about that, so we can do some testing.
from esp-homekit-devices.
ds18b20 supported in 0.5.0 version.
from esp-homekit-devices.
Related Issues (20)
- Can't enter setup mode
- Support for Ratgdo device
- MEPLHAA Script issue HOT 1
- Problem to open/close partially window (NEW behavior)
- Remove WI-Fi Settings should re-enable AP mode HOT 1
- relay active low clicking on restart/boot HOT 1
- QS-WiFi-D01-TRIAC dimmer no reaction on button + glows being OFF
- Sonoff SwitchMan M5-2C crashes HOT 1
- Reset State / Manual set State
- WiFi version drops after updates HOT 1
- HAA installer never completes / HAABOOT download infinite loop HOT 3
- Botton does not work (after update) HOT 1
- Shelly Plus 1PM don't boot in Wifi AP Mode
- Shelly Plus 1PM firmware issue HOT 1
- Relay/button for tuya switch not properly working HOT 2
- Switch doesn’t boot up if led invert option is enabled
- i2c not working properly (iAQ-Core, ESP32) HOT 1
- Button 1 doesn’t start any action on boot (until button 2 is toggled) HOT 3
- Sonoff SV isolated mode type garage door begin unresponsive HOT 4
- Verifying Result ERROR REEBOOTING HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-homekit-devices.