#31 28 Jul 2023 14:53 taggbricka taggbricka Level 5 Helpful post? (0) #31 28 Jul 2023 14:53 Quote: Do you have battery relay pin set? I don't understand this. This is my pin setup. EDIT: I copied the pin settings from the Tuya PIR sensor, this had a battery relay pin. Now battery voltage measurement work as as expected.
#32 28 Jul 2023 15:05 p.kaczmarek2 p.kaczmarek2 Moderator Smart Home Topic author Helpful post? (0) #32 28 Jul 2023 15:05 I am not an expert when it comes to battery driver, but you've posted this JSON in your previous post: Code: text Expand Select all Copy to clipboard "samp_sw_pin":"17", "max_V":"3000", "min_V":"2200", "samp_pin":"23", This means that sampling pin (ADC) is P23 and the sampling switch (Battery Relay) pin is P17. See the related battery driver article: https://www.elektroda.com/rtvforum/topic3959103.html I am creating multiplatform open source firmware (Tasmota replacement), right now supporting BK7231T, BK7231N, XR809, BL602, W800, W600 and soon supporting RTL and W701: https://github.com/openshwprojects/OpenBK7231T If you like my work, support me at: https://paypal.me/openshwprojects