Giter Site home page Giter Site logo

esphome-itho's People

Contributors

jodur avatar mories76 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

esphome-itho's Issues

ESP stuck when flashing

Hi, first of all thanks for this project, I greatly appreciate it.

I've been trying to flash this project to my ESP's for a few week now without success.

Everything compile and the flashing process is successfull. Both when executing the setup() function the ESP becomes unavailable and an ESP-XXXXXX becomes available.
However if I flash a "normal" ESPHome project everything goes smoothly and the device is recognized almost instantly.

I've tried several ESP8266 modules including a nodeMCU, a nodeMCU v3, a D1 mini and a D1 mini pro. I think we can say it's not the ESP module.

The problem may be the C1101 modules, but when I try with nothing plugged I still got the same behavior

compilations errors on Esphome version 2021.11+ (and fix)

Starting with esphome version 2021.11.1 errors messages appeared when trying to compile.
Esphome complained about a missing SPI.h file, when trying to workaround that I got errors about Ticker.h missing.

I fixed it by adding the following lines right below "ibraries:" in the file esphome configuration file ("itho.yaml" in this repo)
- SPI
- Ticker

See Pull request #9

Unable to see if it works or not?

I have connected the CC1101 to my ESP8266 (NodeMCUv2) and it flashes fine. After this the ESP gets an IP address, but the API is not reachable. I tried "verbose" logging but nothing shows up.

Is there anything else I can check if the CC1101 is working? Any additional logging from the ESP if it work or it doesn't work?

Can't compile the image

Hi,

I can't compile the image to flash my new Wemos D1. I don't know what to do:

ESPHome docker in HA version 2022.11.4

INFO Reading configuration /config/esphome/itho.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing itho (board: d1_mini; framework: arduino; platform: platformio/espressif8266 @ 3.2.0)
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- SPI @ 1.0
|-- ITHO-Lib @ 0.0.0+20221205095030.sha.4c34c78
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.4
|   |-- libsodium @ 1.10018.1
Compiling /data/itho/.pioenvs/itho/src/main.cpp.o
Compiling /data/itho/.pioenvs/itho/lib67b/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o
Compiling /data/itho/.pioenvs/itho/lib67b/ESP8266WiFi/WiFiServer.cpp.o
Compiling /data/itho/.pioenvs/itho/lib67b/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
Compiling /data/itho/.pioenvs/itho/lib67b/ESP8266WiFi/WiFiUdp.cpp.o
Compiling /data/itho/.pioenvs/itho/lib67b/ESP8266WiFi/enable_wifi_at_boot_time.cpp.o
In file included from /data/itho/.piolibdeps/itho/ITHO-Lib/IthoCC1101.h:10,
                 from src/itho.h:2,
                 from src/main.cpp:40:
/data/itho/.piolibdeps/itho/ITHO-Lib/IthoPacket.h:9:1: warning: 'typedef' was ignored in this declaration
    9 | typedef enum IthoMessageType
      | ^~~~~~~
In file included from src/itho.h:2,
                 from src/main.cpp:40:
/data/itho/.piolibdeps/itho/ITHO-Lib/IthoCC1101.h:62:1: warning: 'typedef' was ignored in this declaration
   62 | typedef enum IthoReceiveStates
      | ^~~~~~~
/config/esphome/itho.yaml: In lambda function:
/config/esphome/itho.yaml:27:10: error: 'class IthoCC1101' has no member named 'setDeviceID'
   27 |           rf.setDeviceID(10,87,81); //ID for sending: 10,87,81 was used in old library
      |          ^~~~~~~~~~~
Compiling /data/itho/.pioenvs/itho/lib3ff/ESP8266mDNS/ESP8266mDNS.cpp.o
*** [/data/itho/.pioenvs/itho/src/main.cpp.o] Error 1
========================= [FAILED] Took 16.24 seconds =========================

What to look for in logging?

Hi
I have installed ESPHOME-ITHO and enabled verbose logging.
I See lots of entries with seems to be mac addresses but in the yaml code you have: "Idlist[0]={"51,40,61","Badkamer"};"
How should i interpret the actual device id from these log entries?
V][:357]: Ignored device-id: 66:4c:5b:a8:f5:4c:c1:49
[V][:357]: Ignored device-id: f3:19:1e:5:75:3b:16:9f
[V][:357]: Ignored device-id: b3:60:ee:b0:14:8e:36:19
[V][:357]: Ignored device-id: 45:d0:3:e:7a:b0:0:50
[V][:357]: Ignored device-id: 0:48:dc:fa:2:b0:45:2a
[V][:357]: Ignored device-id: aa:5a:a6:65:a6:69:a9:96
[V][:357]: Ignored device-id: aa:5a:a6:65:a6:69:a9:96
[V][:357]: Ignored device-id: b1:30:58:7a:90:50:e9:a0
[V][:357]: Ignored device-id: d:58:c4:45:22:8:59:57
[V][:357]: Ignored device-id: b9:ca:b3:6f:7:b3:c2:de

Reboot after changing fan state

Hi,

Been using your ESPhome solution for a while and though I'd update to the latest.

Bad idea apparently. Commands are working, but everytime after I change the fan state, the ESP8266 reboots!
On a side-note, I'm using an NodeMCU v2 and the library I modified to use "message1" as well, for the older types of fans.
I've forked your library and made minor adjustments, basically only uncommenting "message1" in IthoCC1101.cpp
Here's the repo, for people who have older fans: https://github.com/Fietspomp86/ITHO-Lib

It has worked before so I fail to understand why this is happening.

Here's the log from when it was connected to my computer (cut some pieces out as they were not interesting):


Using 'COM4' as serial port.
Showing logs:
[11:11:14][I][logger:214]: Log initialized
[11:11:14][C][ota:461]: There have been 1 suspected unsuccessful boot attempts.
[11:11:14][I][app:029]: Running through setup()...
[11:11:14][D][text_sensor:067]: 'Fancontrol ESPHome Version': Sending state '2022.2.4 Feb 24 2022, 11:08:06'
[11:11:14][C][wifi:037]: Setting up WiFi...

[11:11:22][C][api:025]: Setting up Home Assistant API server...
[11:11:22][I][app:062]: setup() finished successfully!

[11:11:22][D][api:102]: Accepted 192.168.2.1
[11:11:22][D][api.connection:826]: Home Assistant 2022.2.9 (192.168.2.1): Connected successfully
[11:11:31][D][switch:021]: 'FanSendHigh' Toggling ON.
[11:11:31]
[11:11:31]User exception (panic/abort/assert)
[11:11:31]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[11:11:31]
[11:11:31]Panic core_esp8266_main.cpp:137 __yield
[11:11:31]
[11:11:31]>>>stack>>>
[11:11:31]
[11:11:31]ctx: cont
[11:11:31]sp: 3ffffd60 end: 3fffffc0 offset: 0000
[11:11:31]3ffffd60:  3fff40ea 00000001 0000000f 401006f0  
[11:11:31]3ffffd70:  000000fe 00000000 00000000 00000000  
[11:11:31]3ffffd80:  00000000 00000000 00000000 3fff004c  
[11:11:31]3ffffd90:  3fff006c 3fff006c 3fff0874 00000028  
[11:11:31]3ffffda0:  00000003 00000003 3ffefb70 4022493e  
[11:11:31]3ffffdb0:  00000005 00000003 00000033 402249ab  
[11:11:31]3ffffdc0:  0000000f 3ffefb70 000000f5 40224411  
[11:11:31]3ffffdd0:  00000003 00000003 3ffefb70 4021525e  
[11:11:31]3ffffde0:  00000003 00000003 3ffefb70 40215b1b  
[11:11:31]3ffffdf0:  aaaaaa32 aaaaaaaa b300feab 952aab2a  
[11:11:31]3ffffe00:  9a59659a 9a69aa99 66a55556 a5aa9659  
[11:11:31]3ffffe10:  55965a65 66596595 5a699655 aaaaac5a  
[11:11:31]3ffffe20:  00aaaaaa 00000000 3fff0e3c 402077b1  
[11:11:31]3ffffe30:  00000012 00000015 aaaa13bc 5333adaa  
[11:11:31]3ffffe40:  cd542b33 3255d554 abaa34cb 00000055  
[11:11:31]3ffffe50:  3fffdad0 3fff31b4 3fff184c 40211b2c  
[11:11:31]3ffffe60:  3ffffeb0 3ffffea0 00000010 40201a27  
[11:11:31]3ffffe70:  00000000 4bc6a7f0 05604189 40211b58  
[11:11:31]3ffffe80:  3ffffeb0 3ffffea0 00000010 00000000  
[11:11:31]3ffffe90:  3ffffeb0 3ffffea0 00000010 00000000  
[11:11:31]3ffffea0:  3fffdad0 3fff183c 3ffefb70 4021274e  
[11:11:31]3ffffeb0:  3fff1858 3fff31b4 3fff184c 4021278e  
[11:11:31]3ffffec0:  3fffdad0 3fff15f8 3fffff00 4020a1f1  
[11:11:31]3ffffed0:  00000000 00000000 3ffefa80 4020ae1c  
[11:11:31]3ffffee0:  3fffdad0 3fff31b4 3ffefa80 402123d0  
[11:11:31]3ffffef0:  007a1200 527316e2 f8937400 004a0497  
[11:11:31]3fffff00:  00004019 3fff15f8 3fff006c 00000000  
[11:11:31]3fffff10:  3ffef5e0 3fff006c 00000010 3fff158c  
[11:11:31]3fffff20:  00004018 3fff006c 3fff41e4 40224360  
[11:11:31]3fffff30:  40224a6d 00000010 3fff158c 40224a62  
[11:11:31]3fffff40:  3fff3901 00000010 3ffefa80 3fff0004  
[11:11:31]3fffff50:  3fffdad0 00000000 3ffefa80 4020fd45  
[11:11:31]3fffff60:  007a1200 52732863 00000000 00000000  
[11:11:31]3fffff70:  00000000 ffffffa8 0000001e 3fff229c  
[11:11:31]3fffff80:  00000000 00000000 00000001 3fff0004  
[11:11:31]3fffff90:  3fffdad0 00000000 3ffefff0 40213100  
[11:11:31]3fffffa0:  3fffdad0 00000000 3ffefff0 40224480  
[11:11:31]3fffffb0:  feefeffe feefeffe 3ffe85e0 4010049d  
[11:11:31]<<<stack<<<
[11:11:31]
[11:11:31]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[11:11:31]
[11:11:31] ets Jan  8 2013,rst cause:2, boot mode:(3,6)
[11:11:31]
[11:11:31]load 0x4010f000, len 3460, room 16 
[11:11:31]tail 4
[11:11:31]chksum 0xcc
[11:11:31]load 0x3fff20b8, len 40, room 4 
[11:11:31]tail 4
[11:11:31]chksum 0xc9
[11:11:31]csum 0xc9
[11:11:31]v0006e3a0
[11:11:31]~ld
[11:11:31][I][logger:214]: Log initialized
[11:11:31][C][ota:461]: There have been 2 suspected unsuccessful boot attempts.
[11:11:38][D][sensor:124]: 'Fancontrol WiFi Signal': Sending state -72.00000 dBm with 0 decimals of accuracy
[11:11:38][I][app:102]: ESPHome version 2022.2.4 compiled on Feb 24 2022, 11:08:06
[11:11:38][C][wifi:491]: WiFi:
[11:11:38][C][wifi:353]:   Local MAC: xxxxxxxxxxx
[11:11:38][C][wifi:354]:   SSID: 'xxxxxxxxxx'
[11:11:38][C][wifi:355]:   IP Address: 192.168.2.30
[11:11:38][C][wifi:356]:   BSSID: FC:EC:DA:A1:BD:71
[11:11:38][C][wifi:358]:   Hostname: 'fancontrol'
[11:11:38][C][wifi:360]:   Signal strength: -72 dB ▂▄▆█
[11:11:39][C][wifi:364]:   Channel: 6
[11:11:39][C][wifi:365]:   Subnet: 255.255.255.0
[11:11:39][C][wifi:366]:   Gateway: 192.168.2.1
[11:11:39][C][wifi:367]:   DNS1: 0.0.0.0
[11:11:39][C][wifi:368]:   DNS2: 0.0.0.0
[11:11:39][C][logger:233]: Logger:
[11:11:39][C][logger:234]:   Level: DEBUG
[11:11:39][C][logger:235]:   Log Baud Rate: 115200
[11:11:39][C][logger:236]:   Hardware UART: UART0
[11:11:39][D][api.connection:826]: Home Assistant 2022.2.9 (192.168.2.1): Connected successfully
[11:11:45][D][switch:021]: 'FanSendLow' Toggling ON.
[11:11:45]
[11:11:45]User exception (panic/abort/assert)
[11:11:45]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[11:11:45]
[11:11:45]Panic core_esp8266_main.cpp:137 __yield
[11:11:45]
[11:11:45]>>>stack>>>
[11:11:45]
[11:11:45]ctx: cont
[11:11:45]sp: 3ffffd60 end: 3fffffc0 offset: 0000
[11:11:45]3ffffd60:  3fff3c61 00000001 0000000f 401006f0  
[11:11:45]3ffffd70:  000000fe 00000000 00000000 00000000  
[11:11:45]3ffffd80:  00000000 00000000 00000000 3fff004c  
[11:11:45]3ffffd90:  3fff006c 3fff006c 3fff0874 00000028  
[11:11:45]3ffffda0:  00000003 00000003 3ffefb70 4022493e  
[11:11:45]3ffffdb0:  00000005 00000003 00000033 402249ab  
[11:11:45]3ffffdc0:  0000000f 3ffefb70 000000f5 40224411  
[11:11:45]3ffffdd0:  00000003 00000003 3ffefb70 4021525e  
[11:11:45]3ffffde0:  00000003 00000003 3ffefb70 40215b1b  
[11:11:45]3ffffdf0:  aaaaaa32 aaaaaaaa b300feab 952aab2a  
[11:11:45]3ffffe00:  9a59659a 9a69aa99 66a55556 a5aa9659  
[11:11:45]3ffffe10:  55965a65 96596595 5a699655 aaaaac9a  
[11:11:45]3ffffe20:  00aaaaaa 00000000 3fff0e3c 402077b1  
[11:11:45]3ffffe30:  00000012 00000015 aaaa13f4 5333adaa  
[11:11:45]3ffffe40:  cd542b33 5355d554 abaa5453 00000055  
[11:11:45]3ffffe50:  3fffdad0 3fff31ec 3fff171c 40211b2c  
[11:11:45]3ffffe60:  3ffffeb0 3ffffea0 00000010 40201a27  
[11:11:45]3ffffe70:  00000000 4bc6a7f0 7916872b 40211b58  
[11:11:45]3ffffe80:  3ffffeb0 3ffffea0 00000010 00000000  
[11:11:45]3ffffe90:  3ffffeb0 3ffffea0 00000010 00000000  
[11:11:45]3ffffea0:  3fffdad0 3fff170c 3ffefb70 4021281e  
[11:11:45]3ffffeb0:  3fff1728 3fff31ec 3fff171c 4021285e  
[11:11:45]3ffffec0:  3fffdad0 3fff15f8 3fffff00 4020a1f1  
[11:11:45]3ffffed0:  00000000 00000000 3ffefa80 4020ae1c  
[11:11:45]3ffffee0:  3fffdad0 3fff31ec 3ffefa80 402123d0  
[11:11:45]3ffffef0:  007a1200 9aed84dc 00429800 00000000  
[11:11:45]3fffff00:  000036b2 3fff15f8 3fff006c 00000000  
[11:11:45]3fffff10:  3ffef5e0 3fff006c 00000008 3fff158c  
[11:11:45]3fffff20:  000036b2 3fff006c 3fff3d74 40224360  
[11:11:45]3fffff30:  40224a6d 00000008 3fff158c 40224a62  
[11:11:45]3fffff40:  3fff3901 00000008 3ffefa80 3fff0004  
[11:11:45]3fffff50:  3fffdad0 00000000 3ffefa80 4020fd45  
[11:11:45]3fffff60:  007a1200 9aed97b8 00000000 00000000  
[11:11:45]3fffff70:  00000000 ffffffa8 0000001e 3fff229c  
[11:11:45]3fffff80:  00000000 00000000 00000001 3fff0004  
[11:11:45]3fffff90:  3fffdad0 00000000 3ffefff0 40213100  
[11:11:45]3fffffa0:  3fffdad0 00000000 3ffefff0 40224480  
[11:11:45]3fffffb0:  feefeffe feefeffe 3ffe85e0 4010049d  
[11:11:45]<<<stack<<<
[11:11:45]
[11:11:45]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[11:11:45]
[11:11:45] ets Jan  8 2013,rst cause:2, boot mode:(3,6)
[11:11:45]
[11:11:45]load 0x4010f000, len 3460, room 16 
[11:11:45]tail 4
[11:11:45]chksum 0xcc
[11:11:45]load 0x3fff20b8, len 40, room 4 
[11:11:45]tail 4
[11:11:45]chksum 0xc9
[11:11:45]csum 0xc9
[11:11:45]v0006e3a0
[11:11:45]~ld
[11:11:45][I][logger:214]: Log initialized
[11:11:45][C][ota:461]: There have been 3 suspected unsuccessful boot attempts.

Compiler errors with logger level VERBOSE

If enable logging

logger:
level: VERBOSE #Enable this line to find out the ID of youre remote

The compiler drops errors like:
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:34: error: initializer fails to determine size of '__c'

Any other trick to find the ID's of my remotes?

bad indentation of a....

so, i am fairly new to this.

i get an error in the HA config file
bad indentation of a mapping entry at line 115, column 8:
fan:
^
line 115 is the line with " fans:" in my config file, wich i copy and pasted in my own configuration.yaml file
from youre HA_configuration.yaml file

am i doing something wrong???

HA_configuration.txt

Regular crashes ESP8266

With the ESPHome Itho code it seems the ESP8266 regularly crashes, because i see uptimes of 600-700 seconds regulary when i check the logging.

Anything i can debug?

Remote ID

I have some issues to get the remote ID from my current remotes. How is this possible?

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.