Kaldek / rat-ratgdo

Open source schematics for ratgdo PCB
MIT License
302 stars 46 forks source link

(2)2n7000 with wemos d1 mini no TX #61

Closed sambeetm closed 7 months ago

sambeetm commented 7 months ago

Hi..I am able to receive the correct status of door opening/closing, Light on/off. But, none of the commands from HA is working. My setup is ESP6266 D1 Mini(using D1 for TX), Craftsman GDO/Yellow learn (sec 2.0). Below is some log messages. Tried changing several MOSFETs but still no TX.


[15:16:26][C][logger:417]:   Level: DEBUG
[15:16:26][C][logger:418]:   Log Baud Rate: 115200
[15:16:26][C][logger:420]:   Hardware UART: UART0
[15:16:26][C][ratgdo.number:021]: RATGDO Number 'Rolling code counter'
[15:16:26][C][ratgdo.number:021]:   Unit of Measurement: 'codes'
[15:16:26][C][ratgdo.number:025]:   Type: Rolling Code Counter
[15:16:26][C][ratgdo.number:021]: RATGDO Number 'Opening duration'
[15:16:26][C][ratgdo.number:021]:   Unit of Measurement: 's'
[15:16:26][C][ratgdo.number:027]:   Type: Opening Duration
[15:16:26][C][ratgdo.number:021]: RATGDO Number 'Closing duration'
[15:16:26][C][ratgdo.number:021]:   Unit of Measurement: 's'
[15:16:26][C][ratgdo.number:029]:   Type: Closing Duration
[15:16:26][C][ratgdo.number:021]: RATGDO Number 'Client ID'
[15:16:26][C][ratgdo.number:023]:  Type: Client ID
[15:16:26][C][switch.gpio:068]: GPIO Switch 'Status door'
[15:16:26][C][switch.gpio:090]:   Restore Mode: always OFF
[15:16:26][C][switch.gpio:031]:   Pin: GPIO16
[15:16:26][C][switch.gpio:068]: GPIO Switch 'Status obstruction'
[15:16:26][C][switch.gpio:090]:   Restore Mode: always OFF
[15:16:26][C][switch.gpio:031]:   Pin: GPIO15
[15:16:26][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Dry contact open'
[15:16:26][C][gpio.binary_sensor:016]:   Pin: GPIO14
[15:16:26][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Dry contact close'
[15:16:26][C][gpio.binary_sensor:016]:   Pin: GPIO12
[15:16:26][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Dry contact light'
[15:16:26][C][gpio.binary_sensor:016]:   Pin: GPIO0
[15:16:26][C][light:103]: Light 'Light'
[15:16:26][C][ratgdo:081]: Setting up RATGDO...
[15:16:26][C][ratgdo:082]:   Output GDO Pin: GPIO2
[15:16:26][C][ratgdo:083]:   Input GDO Pin: GPIO4
[15:16:26][C][ratgdo:087]:   Input Obstruction Pin: GPIO13
[15:16:26][C][ratgdo:089]:   Rolling Code Counter: 353
[15:16:26][C][ratgdo:090]:   Client ID: 6559xxxx
[15:16:26][C][ratgdo.sensor:012]: RATGDO Sensor 'Openings'
[15:16:26][C][ratgdo.sensor:012]:   State Class: ''
[15:16:26][C][ratgdo.sensor:012]:   Unit of Measurement: 'openings'
[15:16:26][C][ratgdo.sensor:012]:   Accuracy Decimals: 0
[15:16:26][C][ratgdo.sensor:012]:   Icon: 'mdi:open-in-app'
[15:16:26][C][ratgdo.sensor:013]:   Type: Openings
[15:16:26][C][ratgdo.lock:012]: RATGDO Lock 'Lock remotes'
[15:16:26][C][ratgdo.lock:013]:   Type: Lock
[15:16:26][C][ratgdo.binary_sensor:036]: RATGDO BinarySensor 'Motion'
[15:16:26][C][ratgdo.binary_sensor:036]:   Device Class: 'motion'
[15:16:26][C][ratgdo.binary_sensor:038]:   Type: Motion
[15:16:26][C][ratgdo.binary_sensor:036]: RATGDO BinarySensor 'Obstruction'
[15:16:26][C][ratgdo.binary_sensor:036]:   Device Class: 'problem'
[15:16:26][C][ratgdo.binary_sensor:040]:   Type: Obstruction
[15:16:26][C][ratgdo.binary_sensor:036]: RATGDO BinarySensor 'Button'
[15:16:26][C][ratgdo.binary_sensor:044]:   Type: Button
[15:16:26][C][ratgdo.binary_sensor:036]: RATGDO BinarySensor 'Motor'
[15:16:26][C][ratgdo.binary_sensor:036]:   Device Class: 'running'
[15:16:26][C][ratgdo.binary_sensor:042]:   Type: Motor
[15:16:26][C][ratgdo.cover:014]: RATGDO Cover 'Door'
[15:16:26][C][ratgdo.cover:014]:   Device Class: 'garage'
[15:16:26][C][ratgdo.light:014]: RATGDO Light
[15:16:26][C][restart.button:017]: Restart Button 'Restart'
[15:16:26][C][safe_mode.button:022]: Safe Mode Button 'Safe mode boot'
[15:16:26][C][safe_mode.button:022]:   Icon: 'mdi:restart-alert'
[15:16:26][C][homeassistant.time:010]: Home Assistant Time:
[15:16:26][C][homeassistant.time:011]:   Timezone: 'EST5EDT,M3.2.0,M11.1.0'
[15:16:26][C][web_server:168]: Web Server:
[15:16:26][C][web_server:169]:   Address: ratgdov25-cda77d.local:80
[15:16:26][C][mdns:115]: mDNS:
[15:16:26][C][mdns:116]:   Hostname: ratgdov25-cda77d
[15:16:27][C][ota:097]: Over-The-Air Updates:
[15:16:27][C][ota:098]:   Address: ratgdov25-cda77d.local:8266
[15:16:27][C][api:139]: API Server:
[15:16:27][C][api:140]:   Address: ratgdov25-cda77d.local:6053
[15:16:27][C][api:142]:   Using noise encryption: YES
[15:16:27][C][improv_serial:032]: Improv Serial:
[15:17:25][D][light:036]: 'Light' Setting:
[15:17:25][D][light:047]:   State: ON
[15:17:25][D][number:012]: 'Rolling code counter': Sending state 354.000000
[15:17:26][D][esp8266.preferences:238]: Saving preferences to flash...
[15:17:26][W][component:214]: Component preferences took a long time for an operation (0.06 s).
[15:17:26][W][component:215]: Components should block for at most 20-30ms.
[15:17:33][D][light:036]: 'Light' Setting:
[15:17:33][D][number:012]: 'Rolling code counter': Sending state 355.000000
[15:17:36][D][esp8266.preferences:238]: Saving preferences to flash...
[15:17:36][W][component:214]: Component preferences took a long time for an operation (0.06 s).
[15:17:36][W][component:215]: Components should block for at most 20-30ms.
[15:17:47][D][light:036]: 'Light' Setting:
[15:17:47][D][light:047]:   State: OFF
[15:17:47][D][number:012]: 'Rolling code counter': Sending state 356.000000
[15:17:51][D][esp8266.preferences:238]: Saving preferences to flash...
[15:17:51][W][component:214]: Component preferences took a long time for an operation (0.07 s).
[15:17:51][W][component:215]: Components should block for at most 20-30ms.
[15:18:00][D][light:036]: 'Light' Setting:
[15:18:00][D][light:047]:   State: ON
[15:18:00][D][number:012]: 'Rolling code counter': Sending state 357.000000
[15:18:01][D][esp8266.preferences:238]: Saving preferences to flash...
[15:18:01][W][component:214]: Component preferences took a long time for an operation (0.06 s).
[15:18:01][W][component:215]: Components should block for at most 20-30ms.
[15:18:09][D][cover:076]: 'Door' - Setting
[15:18:09][D][cover:084]:   Position: 100%
[15:18:09][D][number:012]: 'Rolling code counter': Sending state 358.000000
[15:18:11][D][esp8266.preferences:238]: Saving preferences to flash...
[15:18:11][W][component:214]: Component preferences took a long time for an operation (0.06 s).
[15:18:11][W][component:215]: Components should block for at most 20-30ms.
[15:18:30][D][light:036]: 'Light' Setting:
[15:18:30][D][light:047]:   State: OFF
[15:18:30][D][number:012]: 'Rolling code counter': Sending state 359.000000
[15:18:31][D][esp8266.preferences:238]: Saving preferences to flash...
[15:18:31][W][component:214]: Component preferences took a long time for an operation (0.06 s).
[15:18:31][W][component:215]: Components should block for at most 20-30ms.
[15:19:14][D][ratgdo:210]: Status: door=CLOSED light=OFF lock=UNLOC ```
sambeetm commented 7 months ago

Ah...used the D4 pin of mini and it resolved. All working now.