Skip to content

Commit

Permalink
handle EM10 as switch
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Jul 21, 2022
1 parent a018432 commit c81e3e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/devices/switch.cpp
Expand Up @@ -24,6 +24,11 @@ REGISTER_FACTORY(Switch, EMSdevice::DeviceType::SWITCH);

Switch::Switch(uint8_t device_type, uint8_t device_id, uint8_t product_id, const char * version, const std::string & name, uint8_t flags, uint8_t brand)
: EMSdevice(device_type, device_id, product_id, version, name, flags, brand) {
// check for EM10 module
if (device_id == 0x12) {
return;
}
// WM10 module, device_id 0x11
register_telegram_type(0x9C, F("WM10MonitorMessage"), false, MAKE_PF_CB(process_WM10MonitorMessage));
register_telegram_type(0x9D, F("WM10SetMessage"), false, MAKE_PF_CB(process_WM10SetMessage));
register_telegram_type(0x1E, F("WM10TempMessage"), false, MAKE_PF_CB(process_WM10TempMessage));
Expand Down

0 comments on commit c81e3e8

Please sign in to comment.