Chill-Division / M5Stack-ESPHome

Collection of information for getting M5Stack sensors / controllers working with ESPHome
Apache License 2.0
49 stars 7 forks source link

PBHub - Support for ADC #4

Open MRobi1 opened 3 months ago

MRobi1 commented 3 months ago

Trying to run a pair of watering units off of a PB.Hub and would like to have the moisture values from the sensor.

When I set the pin to m5stack_pbhub it gives me an error of "[m5stack_pbhub] is an invalid option for [pin]."

sensor:
  - platform: adc
    pin:
      m5stack_pbhub: M5Stack_HUB
      # Use channel 0, pin number 0
      number: 01
      mode:
        input: true

Is this something that can be added in the m5stack_pbhub component to support adc?

ChillingSilence commented 3 weeks ago

It's my understanding that the firmware was only created with the intention of it being a switch / binary sensor. It'd need further development done to take ADC which I haven't got capacity to fund development for sorry. Somebody else may add it though