converting datapush to work with HA