Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mqtt: sensor + binary sensor miss encoding property #2529

Open
atamgp opened this issue Mar 4, 2023 · 1 comment
Open

mqtt: sensor + binary sensor miss encoding property #2529

atamgp opened this issue Mar 4, 2023 · 1 comment
Labels

Comments

@atamgp
Copy link

atamgp commented Mar 4, 2023

mqtt:
  sensor:
    - name: "solax_test"
      state_topic: "loc/solax_test"
      encoding: ""

File to edit:
https://github.com/keesschollaart81/vscode-home-assistant/blob/master/src/language-service/src/schemas/integrations/core/mqtt.ts

Interface BinarySensorItem and SensorItem here should add this property:

encoding?: string;

reference:
https://www.home-assistant.io/integrations/sensor.mqtt/#encoding

I don't have ts and npm stuff installed, sry

@atamgp atamgp added the yaml label Mar 4, 2023
@Rover2
Copy link

Rover2 commented Oct 11, 2023

Same goes for configuration_url and suggested_display_precision within a device:

mqtt:
  sensor:
    - object_id: whatever
      device:
        configuration_url: ""
        suggested_display_precision: 1

It worked for me until now - were those entries removed and I had just "cacheing luck"?
I don't know if this must be part of an other .ts file since device: isn't mqtt-specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants