What’s Changed
🚂 It has been a while, but here is a MASSIVE upgrade 🚀 😎
This is a major version bump of the extension, as there are major changes, starting with upgrading all dependencies. This includes a new YAML parser, which should make things much more robust.
🔐 The whole configuration and connection handling have been overhauled 📶
The access tokens your Home Assistant are no longer stored in plain text of the VSCode settings JSON files, instead, we now make use of a secure storage VSCode provides for this type of data. Besides your access token, we also store your instance URL in there to ensure it is all private.
After upgrading to this version, the extension will automatically migrate your connection details for you. If you run the Home Assistant Community Code Server add-on, there is nothing you have to do either, as the add-on configures this automatically for you.
If you are a new user, you will now be greeted by this little pop-up that helps you get set up after you've installed the extension:
Existing user? You can now configure, test, clear, and debug your authentication and connection directly through VSCode's command menu:
Curious about your connection state? We'll now show it in the status bar! 🤩
My instance is called "Lucy", which is what my VSCode is connected to. Clicking on it, will open up the browser and go directly to my connected Home Assistant instance. 🚀
🕵️♀️ Finding unknown entities, devices, areas, floors, and labels
Inspired by my custom integration: Spook 👻, the extension will now highlight unknown entities, devices, areas, floors, or labels you are using in your YAML configuration.
Hover for more context 🤩
Sometimes, you wonder... what is going on? Well... just hover over things to get more context. For example, hovering over an entity ID gives you the state of that entity:
🎬 Unknown actions 🤔
Just like with entities and devices, the extension now also highlights used actions that haven't been found on your Home Assistant instance.
🤐 Improved handling of secrets 🤫
Auto completion for secrets has been added. So, if you make use of the secrets.yaml file in your repository; that now auto completes.
You can also go to the definition of a secret, which teleports you directly to your secrets file, to the line where this secret is defined.
And yes, we'll warn you if the used secret no longer exists 👍
🆔 Automatically generate unique IDs
In some cases, you'd need a unique ID or another unique identifier in your configuration, for example, in case you come across a unique_id or the id field of an automation. To prevent just randomly smashing your keyboard, the extension will now suggest inserting/generating a nice UUID for you.
🛑 BUT WAIT! There is more!
Yes, there is a lot more actually...
- Schema support for Modbus
- Reload commands for a specific integration are now in a submenu
- Rendering a template with a render issue, now reports back the actual issue
- More error handling across the board
- Tons of schema updates and extensions for MQTT, KNX, groups, helpers, dashboards, etc.
All in all, a massive quality-of-life boost for every Home Assistant power user working in VS Code!
Enjoy the release!
../Frenck
All updates
🚀 Features
- Add error handling and display render issue when rendering template @frenck (#3602)
- Add unknown service actions calls checks/warnings detected @frenck (#3593)
- Add unknown floor_id checks/warnings detected @frenck (#3583)
- Add unknown label_id checks/warnings detected @frenck (#3581)
- Add service action information on hover of action identifier @frenck (#3580)
- Add unknown device_id checks/warnings detected @frenck (#3579)
- Only show config attribute description when hovering the YAML key @frenck (#3578)
- Add entity information on hover of entity_id @frenck (#3577)
- Add goto definition for secrets @frenck (#3576)
- Add detection/warnings for unknown secrets @frenck (#3575)
- Add autocompletion for secrets from secrets.yaml @frenck (#3574)
- Add UUID generator auto completion for id & unique_id @frenck (#3573)
- Add unknown area_id checks/warnings detected @frenck (#3565)
- Add unknown entity_id checks/warnings detected @frenck (#3560)
- Update vscode-json-languageservice & vscode-languageserver @frenck (#3559)
- Migrate to @vscode/extension-telemetry @frenck (#3558)
- Upgrade yaml-language-server to 1.18.0 and yaml to 2.8.0 @frenck (#3557)
- Refactor all reload command into a submenu @frenck (#3554)
- Add Home Assistant status bar item @frenck (#3553)
- Set default instance URL when setting up connection @frenck (#3552)
- Migrate/implement the use of VSCode SecretStorage for tokens and URLs @frenck (#3551)
- Refactor parameter names to improve clarity and enable unused parameter checks @frenck (#3547)
- Optimize schema generation in compile script @frenck (#3546)
- Add & cleanup using stylistic @frenck (#3545)
- Auto-discover Home Assistant when running inside an add-on @felipecrs (#3283)
- add prefixes for entity types @ximex (#3402)
- Stricter string types @ximex (#3403)
- Reuse Entity types in plural forms @ximex (#3400)
- Apply prettier on latest changes @edoren (#3347)
- Add device_classes volatile_organic_compounds_parts and volume_flow_rate @lechercheur123 (#3290)
🐛 Bug Fixes
- Fix RepeatAction for_each type to accept an array of Data @frenck (#3600)
- Support action for auto completion in addition to service @frenck (#3592)
- Less trigger happy workspace association @frenck (#3572)
- Fix Jinja2 operator beginning pattern to include whitespace @frenck (#3567)
- Remove position tracking performance test, it is flaky as hell @frenck (#3561)
- Fix incorrect definition of mqtt..connections @MaartenStaa (#3555)
- Change action_topic type to string @frenck (#3548)
- Fix wrong regex check @edoren (#3346)
- Fix yaml discovery for Samba share and Windows @edoren (#3345)
- Fix schema resolution using Samba share on Windows @edoren (#3313)
- Fix URL mismatch for unit_for_measurement @frenck (#3324)
🧬 YAML Schema Updates
- Extend support for custom sentences and responses @frenck (#3601)
- Update Thermostat & Humidifier card schemas @frenck (#3599)
- Update MQTT schemas for sensor and binary sensor @frenck (#3598)
- Extend support for groups @frenck (#3597)
- Add support for timer helper @frenck (#3596)
- Add support for compensation helper @frenck (#3595)
- Add support for camera proxy @frenck (#3594)
- Update MQTT schemas for device trackers @frenck (#3591)
- Add support for Alert @frenck (#3590)
- Extend support for intent scripts @frenck (#3589)
- Add support for Modbus @frenck (#3588)
- Update MQTT schemas for the alarm control panel @frenck (#3587)
- Update KNX integration YAML to match current HA source code @frenck (#3586)
- Update all selector schemas to match HA sourcecode @frenck (#3584)
- Add support for MQTT scene entities @frenck (#3570)
- Add support for MQTT siren entities @frenck (#3569)
- Add support for MQTT Button entities @frenck (#3568)
- Add support for MQTT Humidifier entities @frenck (#3566)
- Add support for MQTT Switch entities @frenck (#3562)
- Add icon property to AttributeRow @frenck (#3563)
- Add webostv.turn_on trigger to triggers schema @matejdro (#2292)
- Added sort to SelectSelector in selectors.ts @WaterInTheLake (#3556)
- Add support for alternative template schema @mbo18 (#3235)
- Add missing MQTT items for fans @jbperrin88 (#3312)
- Add condition support to trigger based templates @ocrease (#3408)
- Add missing enum values and link to code file @ximex (#3399)
- Update schema for template vacuums @jfurtner (#3350)
- Fix persistent notification trigger schema @frenck (#3234)
- Add support for MQTT image @ngraziano (#3225)
- Extend MQTT device information properties @frenck (#3224)
- Add modern syntax for tap_action in Dashboards @frenck (#3223)











