Replies: 3 comments 6 replies
-
https://esphome.io/components/switch/gpio.html As next step you could extend one of the
https://esphome.io/components/sensor/index.html#on-value
https://esphome.io/components/esphome.html
|
Beta Was this translation helpful? Give feedback.
-
Hi Sebastian
Compilation Error: `Processing heltec-balancer (board: wemos_d1_mini32; framework: espidf; platform: platformio/espressif32 @ 5.2.0)HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
I dont know why is broken compilation w/ "undefined reference to `vtable for esphome::gpio::GPIOSwitch'" best regards denny Update: and any test to be define an additional "switch" is not working as well because switch component is getting an Error duplicate implementation... see picture attached... |
Beta Was this translation helpful? Give feedback.
-
Hello Sebastian And why I think that the "api" connection is also necessary for standalone operation without any monitoring is the fact that in the event of an error the switch ON can only be achieved via reset under the correct conditions. In the current case, the cell voltage... In other words, monitoring is possible via APP to see what the status would be. But of course the connection to "ESPHome" ergo "HA" and/or via the serial interface is also nicer. The following questions arise from these tests:
In addition, I noticed that you also output the error states of the balancer in your code, one of which is the "wrong cell count" as soon as you disconnect a cell. I think that's great. Because I would also like to place the trigger for the SWITCH of the contactor on this signal. best regards Denny |
Beta Was this translation helpful? Give feedback.
-
Hello experts
My idea about this code:
I want to monitor the cell voltage values for a lower and upper threshold. The value range OORHIgh or OORLow should switch a battery contactor ON or OFF.
For this I would have to have an array, which is always filled with the respective cell voltage and this is compared. Then the control of a contactor should be derived from this, which in turn is connected to a digital output of the ESP32.
When the ESP is rebooted, a precharge phase must control the bypass of the contactor, i.e. a second digital output.
The problem with this: I tried to define the [platform: gpio] in *.yaml in order to use the digital in and output. Unfortunately, I can't do that because the entire BLE tracker maps the loop. And this is defined.
So what do I have to do to implement my feature and in which area of the code do I have to do it? I assume that the *.yaml file that I flash onto the ESP only represents the definition of the individual parameters. ESPhome is new to me. I wrote my code in C for an Arduino. This is based on the structure of 4 ADC [ADS1115]. However, since this structure leads to a great deal of cabling, I would like to use the code published here for the NEEY. At the moment I have only attached the BLE Tracker code to MQTT to see how stable this connection is, because I need a permanent connection without interruption, which leads me to the next question...
From your point of view, does it even make sense to use the BLE To permanently connect the tracker, at the risk that the wireless connection is not a cable connection. In other words, how robsut is it in continuous use.... I have attached my Arduino code which is currently based on 4x ADC ergo 16 channels. What you don't need within the BLE Tracker...
best regards denny
I2C_NANO_IOT_read_16Ch_V1.7.ino.zip
Beta Was this translation helpful? Give feedback.
All reactions