Git Product home page Git Product logo

Comments (40)

faronov avatar faronov commented on May 17, 2024 2

@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.

RavenSystem avatar RavenSystem commented on May 17, 2024 1

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.

Kristian8606 avatar Kristian8606 commented on May 17, 2024 1

5 GPIO free

from esp-homekit-devices.

Kristian8606 avatar Kristian8606 commented on May 17, 2024 1

https://github.com/Kristian8606/Sonoff_TH

img_0570
img_0576
img_0580

from esp-homekit-devices.

maccoylton avatar maccoylton commented on May 17, 2024 1

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.

RavenSystem avatar RavenSystem commented on May 17, 2024 1

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.

riddik14 avatar riddik14 commented on May 17, 2024

Thermostat is developed for a SonOff dual per cold and heather?

from esp-homekit-devices.

RavenSystem avatar RavenSystem commented on May 17, 2024

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.

riddik14 avatar riddik14 commented on May 17, 2024

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.

RavenSystem avatar RavenSystem commented on May 17, 2024

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.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

RavenSystem can you add a display to the thermostat?
I could not make it .

from esp-homekit-devices.

RavenSystem avatar RavenSystem commented on May 17, 2024

@Kristian8606 How many free GPIOs do you have?

from esp-homekit-devices.

RavenSystem avatar RavenSystem commented on May 17, 2024

And do you have any kind of display?

from esp-homekit-devices.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

I'm trying to add the ssh 1306 OLED display

from esp-homekit-devices.

RavenSystem avatar RavenSystem commented on May 17, 2024

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.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

Nextion 2.4

from esp-homekit-devices.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

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.

peros550 avatar peros550 commented on May 17, 2024

@Kristian8606 any luck on adding the ssd1306 display to Ravensystem code?

from esp-homekit-devices.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

Успях да изпратя температурната влажност и целевата температура на дисплея, като отпечатах стойностите. Направих серийна връзка с ардуин с прикачен дисплей, който чете данните и ги показва на дисплея. По-късно ще кача кода в моето хранилище заедно със снимки.

from esp-homekit-devices.

RavenSystem avatar RavenSystem commented on May 17, 2024

@Kristian8606 No enough flash space to implement HomeKit framework and SSD1306 display in 512KB.

from esp-homekit-devices.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

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.

RavenSystem avatar RavenSystem commented on May 17, 2024

@Kristian8606 I have found this example code for an UDP connection:

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.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

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.

maccoylton avatar maccoylton commented on May 17, 2024

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.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

maccoylton I tried your code but when I connect a display and esp starts to restart?

from esp-homekit-devices.

maccoylton avatar maccoylton commented on May 17, 2024

Can you provide more details, mine has been running stable for a number of weeks

from esp-homekit-devices.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

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.

maccoylton avatar maccoylton commented on May 17, 2024

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.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

I installed your firmware. the same esp 12 works well with the of maximkulkin thermostat.

from esp-homekit-devices.

maccoylton avatar maccoylton commented on May 17, 2024

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.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

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.

maccoylton avatar maccoylton commented on May 17, 2024

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.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

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.

nodemcu_i2c_oled

from esp-homekit-devices.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

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.

maccoylton avatar maccoylton commented on May 17, 2024

Can you provide a trace please

from esp-homekit-devices.

Kristian8606 avatar Kristian8606 commented on May 17, 2024

`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.

stepanyurkiv avatar stepanyurkiv commented on May 17, 2024

Сan you use a temperature sensor DS18B20?

from esp-homekit-devices.

yusufd1 avatar yusufd1 commented on May 17, 2024

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.

RavenSystem avatar RavenSystem commented on May 17, 2024

@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.

RavenSystem avatar RavenSystem commented on May 17, 2024

ds18b20 supported in 0.5.0 version.

from esp-homekit-devices.

Related Issues (20)

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.