gannonprudhomme / Desktop-Control-Tablet

A touch screen Raspberry Pi tablet built to control a Windows 10 desktop PC with Electron and Express
4 stars 0 forks source link

Convert to use HomeAssistant as backend #123

Open gannonprudhomme opened 3 years ago

gannonprudhomme commented 3 years ago

Instead of writing my own backend and having to implement things like smart bulb control myself, I should instead change the backend to rely on HomeAssistant so a lot of the work is done for me and I just have to make the frontend.

Will also have to convert the DCT server which handles the sending of processes + icons to HomeAssistant

I will probably want to switch to Vue, per this and this (basically, React isn't fully supported, but Vue is)

HA Boilerplate card example

gannonprudhomme commented 3 years ago

A better alternative would probably be to switch to Preact, since it's pretty similar to React and is fully supported by HomeAssistant's custom components method.

Example for preact and typescript