hass-rainforest-emu-2
hass-rainforest-emu-2 copied to clipboard
Not sending schedule packets to schedule data
I wrote a java driver for the EMU2, and there's a schedule command you call to setup what data you want to get back from the device
Check out clearSchedule in the code below, it's setting all of them off. I was wondering why my data was coming through so slowly, and some not at all, my EMU2 was still configured from some software I was writing years ago. Putting in calls to schedule the data you're expecting in the code (and turning off what you don't need) will make sure you get the data your add-on is expecting.
https://github.com/posicat/JavaRainforestEMU-2/blob/master/src/main/java/org/cattech/rainforestEMU2/serialInterface/SerialRainforestCommunications.java