Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panasonic CS-E9NKR ESP01_1M attempt #124

Open
Mrsash2020 opened this issue Oct 6, 2024 · 2 comments
Open

Panasonic CS-E9NKR ESP01_1M attempt #124

Mrsash2020 opened this issue Oct 6, 2024 · 2 comments

Comments

@Mrsash2020
Copy link

Needed some help with my attempt.

Chip: ESP01_1M
Says
tx_pin: GPIO4
rx_pin: GPIO14

So I edited the code to like this but cant seem to be able to control the Aircon. I can flash it wirelessly now which is good. Checked that the GPIO14 Pin from the Chip is connected next to the 5v on the AC CN-CNT side. Any thoughts on where I am stuffing up?

image

esphome:
  name: master-ac
  friendly_name:  Master AC

esp8266:
  board: esp01_1m

# Enable logging
logger:
  level: DEBUG

# Enable Home Assistant API
api:
  encryption:
    key: "AP_key"

ota:
  - platform: esphome
    password: !secret ota_password
  
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Master-Ac Fallback Hotspot"
    password: !secret ap_password
    
captive_portal:
    
text_sensor:
  - platform: wifi_info
    ip_address:
      name: "master-ac IP Address"
 
binary_sensor:
  - platform: status
    name: "master-ac Connect"

uart:
  tx_pin: GPIO4
  rx_pin: GPIO14
  baud_rate: 9600
  parity: EVEN

external_components:
  source: github://DomiStyle/esphome-panasonic-ac
  components: [panasonic_ac]

climate:
  - platform: panasonic_ac
    type: cnt

    name: "master-ac"
    horizontal_swing_select:
      name: "master-ac Horizontal Swing Mode"
    vertical_swing_select:
      name: "master-ac Vertical Swing Mode"
#    outside_temperature:
#      name: "master-ac Outside Temperature"
    econavi_switch:
      name: Panasonic AC Econavi Switch
    nanoex_switch:
      name: Panasonic AC NanoeX Switch
    mild_dry_switch:
      name: Panasonic AC Mild Dry Switch
    current_temperature_sensor: temp

sensor:
  - platform: homeassistant
    name: "master-ac-Temp"
    entity_id: sensor.master_aq_temperature
    id: temp
    internal: True
 
  - platform: wifi_signal
    name: "master-ac WiFi Strength"
    update_interval: 60s
 
  - platform: uptime
    name:  "master-ac Uptime"
 
switch:
  - platform: restart
    name: "master-ac reboot"

log:

INFO ESPHome 2024.9.2
INFO Reading configuration /config/esphome/master-ac.yaml...
INFO Starting log output from 192.168.0.20 using esphome API
INFO Successfully connected to master-ac @ 192.168.0.20 in 0.003s
INFO Successful handshake with master-ac @ 192.168.0.20 in 2.380s
[20:49:14][I][app:100]: ESPHome version 2024.9.2 compiled on Oct  6 2024, 12:10:20
[20:49:14][C][wifi:600]: WiFi:
[20:49:14][C][wifi:428]:   Local MAC: 8C:CE:4E:4E:39:96
[20:49:14][C][wifi:433]:   SSID: 'ASUS'[redacted]
[20:49:14][C][wifi:436]:   IP Address: 192.168.0.20
[20:49:14][C][wifi:439]:   BSSID: 04:D4:C4:0A:35:B8[redacted]
[20:49:14][C][wifi:441]:   Hostname: 'master-ac'
[20:49:14][C][wifi:443]:   Signal strength: -49 dB ▂▄▆█
[20:49:14][C][wifi:447]:   Channel: 3
[20:49:14][C][wifi:448]:   Subnet: 255.255.255.0
[20:49:14][C][wifi:449]:   Gateway: 192.168.0.1
[20:49:14][C][wifi:450]:   DNS1: 192.168.0.1
[20:49:14][C][wifi:451]:   DNS2: 0.0.0.0
[20:49:14][C][logger:185]: Logger:
[20:49:14][C][logger:186]:   Level: DEBUG
[20:49:14][C][logger:188]:   Log Baud Rate: 115200
[20:49:14][C][logger:189]:   Hardware UART: UART0
[20:49:14][C][uart.arduino_esp8266:118]: UART Bus:
[20:49:14][C][uart.arduino_esp8266:119]:   TX Pin: GPIO4
[20:49:14][C][uart.arduino_esp8266:120]:   RX Pin: GPIO14
[20:49:14][C][uart.arduino_esp8266:122]:   RX Buffer Size: 256
[20:49:14][C][uart.arduino_esp8266:124]:   Baud Rate: 9600 baud
[20:49:14][C][uart.arduino_esp8266:125]:   Data Bits: 8
[20:49:14][C][uart.arduino_esp8266:126]:   Parity: EVEN
[20:49:14][C][uart.arduino_esp8266:127]:   Stop bits: 1
[20:49:14][C][uart.arduino_esp8266:131]:   Using software serial
[20:49:14][C][uptime.sensor:033]: Uptime Sensor 'master-ac Uptime'
[20:49:14][C][uptime.sensor:033]:   Device Class: 'duration'
[20:49:14][C][uptime.sensor:033]:   State Class: 'total_increasing'
[20:49:14][C][uptime.sensor:033]:   Unit of Measurement: 's'
[20:49:14][C][uptime.sensor:033]:   Accuracy Decimals: 0
[20:49:14][C][uptime.sensor:033]:   Icon: 'mdi:timer-outline'
[20:49:14][C][uptime.sensor:034]:   Type: Seconds
[20:49:14][C][status:034]: Status Binary Sensor 'master-ac Connect'
[20:49:14][C][status:034]:   Device Class: 'connectivity'
[20:49:14][C][restart:068]: Restart Switch 'master-ac reboot'
[20:49:14][C][restart:070]:   Icon: 'mdi:restart'
[20:49:14][C][restart:090]:   Restore Mode: always OFF
[20:49:14][C][captive_portal:089]: Captive Portal:
[20:49:14][C][mdns:116]: mDNS:
[20:49:14][C][mdns:117]:   Hostname: master-ac
[20:49:14][C][esphome.ota:073]: Over-The-Air updates:
[20:49:14][C][esphome.ota:074]:   Address: master-ac.local:8266
[20:49:14][C][esphome.ota:075]:   Version: 2
[20:49:14][C][esphome.ota:078]:   Password configured
[20:49:14][C][safe_mode:018]: Safe Mode:
[20:49:14][C][safe_mode:019]:   Boot considered successful after 60 seconds
[20:49:14][C][safe_mode:021]:   Invoke after 10 boot attempts
[20:49:14][C][safe_mode:022]:   Remain in safe mode for 300 seconds
[20:49:14][C][api:139]: API Server:
[20:49:14][C][api:140]:   Address: master-ac.local:6053
[20:49:14][C][api:142]:   Using noise encryption: YES
[20:49:14][C][wifi_info:010]: WifiInfo IPAddress 'master-ac IP Address'
[20:49:14][C][wifi_signal.sensor:010]: WiFi Signal 'master-ac WiFi Strength'
[20:49:14][C][wifi_signal.sensor:010]:   Device Class: 'signal_strength'
[20:49:14][C][wifi_signal.sensor:010]:   State Class: 'measurement'
[20:49:14][C][wifi_signal.sensor:010]:   Unit of Measurement: 'dBm'
[20:49:14][C][wifi_signal.sensor:010]:   Accuracy Decimals: 0
[20:49:14][C][homeassistant.sensor:030]: Homeassistant Sensor 'master-ac-Temp'
[20:49:14][C][homeassistant.sensor:030]:   State Class: ''
[20:49:14][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[20:49:14][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[20:49:14][C][homeassistant.sensor:031]:   Entity ID: 'sensor.master_aq_temperature'
[20:49:28][D][sensor:093]: 'master-ac Uptime': Sending state 454.76001 s with 0 decimals of accuracy
[20:49:40][D][sensor:093]: 'master-ac WiFi Strength': Sending state -44.00000 dBm with 0 decimals of accuracy

@Mrsash2020
Copy link
Author

Mrsash2020 commented Oct 9, 2024

ok so changing a bit of the code helped but it stops responding after a few changes. Right after the flash it works and I am able to turn the AC on, but as I keen moving from one mode to another it stops responding. Unsure what the issue is.

Also these dont work
Econavi Switch
NanoeX Switch
Mild Dry Switch

changes made to above code

logger:
  baud_rate: 0
  level: DEBUG

uart:
  tx_pin: GPIO1
  rx_pin: GPIO3
  id: ac_uart
  baud_rate: 9600
  parity: EVEN

@Mrsash2020
Copy link
Author

I eventually went the D1 mini V3 route but the tx_pin: GPIO1 and rx_pin: GPIO3 did not work. Had to use tx_pin: GPIO14 and rx_pin: GPIO12. unsure why.

Again with the above code it worked and more responsive than the ESP-01M except the switches which dont work.

Econavi Switch
NanoeX Switch
Mild Dry Switch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant