public static BinarySensor ToDryFireConfig(this WaterHeaterInput waterHeater) { BinarySensor ret = new BinarySensor(); ret.name = waterHeater.GetDisplayName() + " Dry Fire"; ret.state_topic = waterHeater.ToTopic(Topic.dryfire_state); return(ret); }
public static BinarySensor ToTankSensorFailConfig(this WaterHeaterInput waterHeater) { BinarySensor ret = new BinarySensor(); ret.name = waterHeater.GetDisplayName() + " Tank Sensor Fail"; ret.state_topic = waterHeater.ToTopic(Topic.tanksensorfail_state); return(ret); }
public static BinarySensor ToInHeatingConfig(this WaterHeaterInput waterHeater) { BinarySensor ret = new BinarySensor(); ret.name = waterHeater.GetDisplayName() + " Element"; ret.state_topic = waterHeater.ToTopic(Topic.systeminheating_state); return(ret); }
public static BinarySensor ToElementFailConfig(this WaterHeaterInput waterHeater) { BinarySensor ret = new BinarySensor { name = waterHeater.GetDisplayName() + " Element Fail", state_topic = waterHeater.ToTopic(Topic.elementfail_state) }; return(ret); }