lanwin / esphome_samsung_ac

Provides an ESPHome component for Samsung air conditioners. It allows you to watch and control your devices via a home automation system. And is designed to be attached to the F1,F2 communication bus between the devices.
85 stars 31 forks source link

nasa/temperature sensor #54

Closed titof2375 closed 7 months ago

titof2375 commented 7 months ago

Hello, can we tell the air conditioning to regulate the temperature in relation to another temperature sensor than the one in the air conditioning?

DerTiger1 commented 7 months ago

@titof2375: Yes it's possible. You can use any homeassistant Sensors for temperature and the thermostat to regulate the temperature as an add-on in esphome. Here is my working config with home assistant sensor reading "sensor.meter_og_temperature": (Sorry for the formatting of the comments all '#' lead to bold)

`substitutions: esp32_name: "esphome-klimaanlage" device_description: "M5-Atom Stack mit RS485 Interface"

esphome: name: ${esp32_name} comment: ${device_description}

external_components:

esp32: board: m5stack-atom framework: type: esp-idf version: recommended

uart: tx_pin: GPIO19 rx_pin: GPIO22 baud_rate: 9600 parity: EVEN

Enable logging

logger: level: DEBUG

Enable Home Assistant API

api: encryption: key: !secret ha_key reboot_timeout: 60s

ota: password: !secret ota_key safe_mode: true num_attempts: 1

wifi: ssid: !secret iot_ssid password: !secret iot_password domain: .iot.local reboot_timeout: 5min ap: ssid: "Klimaanlage Fallback Hotspot" password: !secret wifi_ap_password

esp32_ble_tracker: scan_parameters: interval: 1100ms window: 1100ms active: true

bluetooth_proxy: active: true

sensor:

Home Assistant switches usw.

switch:

button:

samsung_ac: debug_log_messages: false # logs all messages - only for debugging debug_log_messages_raw: false # logs the raw message bytes from all messages - only for debugging

devices:

climate: #https://esphome.io/components/climate/climate_ir.html?highlight=ir

Example climate controller with presets

https://esphome.io/components/climate/thermostat.html

titof2375 commented 7 months ago

eleee Are these the sensors that you declare for the Samsung AC air conditioning driver?

DerTiger1 commented 7 months ago

Yes, the first one is a temperature sensor, the second one is meant to be the setpoint value, but not used yet.

titof2375 commented 7 months ago

so the samsung air conditioning takes the temperature from the sensor.meter_og_temperature probe

DerTiger1 commented 7 months ago

not directly - the thermostat takes the temperature and regulates the samsung hvac. (connected by the id: klima) At least the behavior is the same.