cgarwood / hacontrolpoint

A modern front-end for Home Assistant, intended for wall mounted controllers
1 stars 3 forks source link

JavaScript API - Auto update HTML fields based on data-entity value #4

Closed cgarwood closed 7 years ago

cgarwood commented 8 years ago

If we give HTML elements a data-entity attribute (ex:

) it should automatically update the div with the state of the light.porch entity when it is updated from HASS

michaelarnauts commented 8 years ago

Ideally, it should tap into the eventstream to update the entities in real time.

cgarwood commented 8 years ago

Real time updates would be awesome compared to polling for updates.

michaelarnauts commented 7 years ago

This is implemented in my branch.

michaelarnauts commented 7 years ago

Fixed in babe221af89d1ddfe2480d05895802a0a6e0a269