Closed paulmorabito closed 1 month ago
Hi, yes, addon logs and browser console logs
Here you go:
Add-on logs:
s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started Starting Fusion... ADDON: true INGRESS_PORT: 8099 EXPOSED_PORT: HASS_PORT: 8123
Thanks, in js.log i see
CodeConfig.CxOcBhK1.js:1 Y {name: 'YAMLException', reason: 'can not read a block mapping entry; a multiline key may not be an implicit key', mark: {…}, message: 'can not read a block mapping entry; a multiline ke… 12 | ffff\n 13 | \n 14 | theme: godis\n-----------^', stack: 'YAMLException: can not read a block mapping entry;…p/immutable/chunks/CodeConfig.CxOcBhK1.js:1:5418)'}
I think you're trying to save invalid yaml in code editor
Yeah I pasted the element incorrectly but the last attempt had valid yml. On 22 Jul 2024 at 19:19 +0200, Mattias Persson @.***>, wrote:
Thanks, in js.log i see CodeConfig.CxOcBhK1.js:1 Y {name: 'YAMLException', reason: 'can not read a block mapping entry; a multiline key may not be an implicit key', mark: {…}, message: 'can not read a block mapping entry; a multiline ke… 12 | ffff\n 13 | \n 14 | theme: godis\n-----------^', stack: 'YAMLException: can not read a block mapping entry;…p/immutable/chunks/CodeConfig.CxOcBhK1.js:1:5418)'} I think you're trying to save invalid yaml in code editor — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Can you post your yaml like this
```yaml
theme: godis
Here it is. i've just installed it and am trying to get to grips with how it worked so added an entity to the yaml. There are no config errors reported in the editor.
views:
- id: 1896633189085
type: configure
name: Overview
- name: Climate
id: 995548803567
sections:
- type: horizontal-stack
sections: []
id: 6196183727261
- type: entity
entity: binary_sensor.hue_secure_contact_sensor_1_opening
icon: mdi:door
name: Entrance
sidebar: []
theme: godis
Yeah, that's valid yaml but wrong config. There's no type entity and they need to be in a view. There's currently no validation, so if you're using code editor there's a chance it breaks. Use the ui and inspect the code later.
Thanks. Is there a way to add elements via the UI only? Or, can I edit the files in another editor and upload them? Do you have a sample file by any chance?
Is there a way to add elements via the UI only?
Yes, https://www.youtube.com/watch?v=D8mWruSuPOM
Or, can I edit the files in another editor and upload them?
Yeah, with ssh addon
Do you have a sample file by any chance?
https://github.com/matt8707/ha-fusion/blob/main/data/dashboard.yaml
Ok got it. Regarding the UI, how do I add an element like a sensor. Is it an object? If so, this is always greyed out.
Nvm figured it out. Thank you for the prompt replies.
Hi, I'm using the latest version as an add-on on 2024.7.3 of Home Assistant (HassOS). The issue I am facing is the save button is not working.
Is there any further info I can provide you to further trouble shoot?