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.


 

426
Online

7.9k
Users

8.8k
Topics

94.3k
Posts