--- /dev/null
+- ošetření chyb
+- stěžovat si, pokud dlouho nepřijdou teplotní data (asi umřel ARexx)
+- používat teplotu hlášenou kotlem?
@dp.message_handler(commands=['start', 'help'])
async def send_welcome(message: types.Message):
logging.info(f'Start from {message.chat}')
- await message.reply("Brum!\nI'm BurrowBot!\n.")
+ await message.reply("Brum!\nI'm BurrowBot!\n")
@dp.message_handler()
return new_state
-last_temp_state = 0
+last_temp_state = 1
last_boiler_err = 0
if topic == 'burrow/temp/catarium':
temp = float(val.split(' ')[0])
- temp_state = hysteresis('catarium-temp', temp, 22, 23)
+ temp_state = hysteresis('catarium-temp', temp, 23.2, 23.5)
if temp_state != last_temp_state:
last_temp_state = temp_state
await send_msg(f'Teplota v pracovně: {temp} °C')