Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
504 B

  1. /*
  2. DOMOTICZ MODULE
  3. Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
  4. */
  5. #pragma once
  6. #if DOMOTICZ_SUPPORT
  7. #include <ArduinoJson.h>
  8. #include <bitset>
  9. template<typename T>
  10. void domoticzSend(const char * key, T value);
  11. template<typename T>
  12. void domoticzSend(const char * key, T nvalue, const char * svalue);
  13. void domoticzSendRelay(unsigned char relayID, bool status);
  14. void domoticzSendRelays();
  15. void domoticzSetup();
  16. bool domoticzEnabled();
  17. #endif // DOMOTICZ_SUPPORT == 1