Javascript/Typescript Automations app (add-on)

I’m currently creating an app (add-on) to be able to write automations with Typescript and strong-typing.
It provides a vscode interface to write automations with auto-completion for the host entities and actions…

I created a NPM package to handle the HA Websocket with strong typing in Typescript: https://www.npmjs.com/package/ha-ws-js-sugar

All this is very early stage, but I would be very interested on having feedback: is there a real topic on that, maybe contributions from add-ons experimented developpers?

Thank you all

1 Like

Just take note of this too:

I understand that JS and TS are not exactly the same.

You’re right, Typescript is a layer above Javascript which provides strong-typing and other features. Actually, every javascript is a valid typescript.

I chose to use the Javascript word because you can still use it if you want to write Javascript, as a lot of JS coders still want to, but for me the real point is to use strong typing to get auto-completion on action calls and entity names…

This project is a good one! But not the same philosophy: meant to be installed as a linux service, it needs a lot of sysadmin skills to be set up… and written in pure JS (so without the types)
It’s way less user-friendly (or even dev-friendly for guys like me who don’t have an instance or the will to perform its complex setup)

I made my statement because I didn’t need it explained to me. I meant, I really do understand the difference between the two.

:+1:

Sorry for that, I didn’t get it. English is not my first language :sweat_smile:

1 Like

All good! :+1: