SensebenderMicro sketch



  • Just a (very) minor thing. I noticed during conversion to v2 of a sketch based on the SensebenderMicro sketch that the sentence below does not conform to the logic between message types and presentation:

    #ifdef BATT_SENSOR
    gw.present(BATT_SENSOR, S_POWER);
    #endif

    but the message is defined as:

    MyMessage msgBatt(BATT_SENSOR, V_VOLTAGE)

    As S_POWER reference V_WATT and V_KWH presumably the S_POWER should be changed to S_MULTIMETER as this is the only item which refer to V_VOLTAGE. Or maybe another S type item is needed??

    I am using OpenHab which ignores all these presentation items so I am not aware of how they actually work with a controller that uses them.


Log in to reply
 

Suggested Topics

  • 33
  • 6
  • 17
  • 8
  • 2
  • 9

1
Online

11.2k
Users

11.1k
Topics

112.5k
Posts