Closed alb147 closed 4 years ago
Please post your bwalarm.yaml
here
Please post your
bwalarm.yaml
here
Hi, I don't have a 'bwalarm.yaml' file in the / config folder I have a file called 'alarm.yaml' Thanks
this is: `##########################################################
##########################################################
platform: bwalarm name: House panel: camera_update_interval: '' cameras: [] enable_camera_panel: false enable_clock: 'False' enable_clock_12hr: 'False' enable_custom_panel: 'False' enable_floorplan_panel: 'False' enable_sensors_panel: 'True' enable_serif_font: 'True' enable_weather: 'False' hide_passcode: 'True' panel_title: Alarma shadow_effect: 'True' enable_fahrenheit: 'False' states: armed_away: immediate:
That's not good.
Please post here content of bwalarm.yaml
from /config/resources/bwalarm/
making sure you enclose it in three single back quotes to preserve formatting.
Hi
This is content of bwalarm.yaml from /config/resources/bwalarm/
<platform: bwalarm panel: camera_update_interval: '' cameras: [] enable_camera_panel: 'False' enable_clock: 'False' enable_clock_12hr: 'False' enable_custom_panel: 'False' enable_floorplan_panel: 'False' enable_sensors_panel: 'True' enable_serif_font: 'True' enable_weather: 'False' hide_passcode: 'True' panel_title: Alarm shadow_effect: 'True' enable_fahrenheit: 'False' enable_night_mode: false>
Could you edit your previous post to preserve formatting? It's crucial and I won't be able to help if I cannot see formatting as YAML is sensitive to it.
Could you edit your previous post to preserve formatting? It's crucial and I won't be able to help if I cannot see formatting as YAML is sensitive to it.
now ok?
Unfortunately it isn't. Just select the text you want to preserve and then click on that "<>" symbol above (it displays "Insert code" when you put a mouse pointer next to it.
effectively the problem was in that file, it contains the following (image)
replace it with the last file and the error no longer appears:
platform: bwalarm
thanks
Do I get you right that it works as expected when you use the default bwalarm.yaml
but produces an error with the config from your screenshot?
By the way, in your original post I can see a users
section that is not present on the screenshot - is it intentional and the screenshot shows the whole config that does not work?
The file bwalarm.yaml from /config/resources/bwalarm/ only have this line: platform: bwalarm
My config is in /config/alarm.yaml
Yes, when I use the default bwalarm.yaml work fine
I think that my old bwalarm.yaml from /config/resources/bwalarm is the one old version
Ok, let's make it clear - the only config that is used by this component is /config/resources/bwalarm/bwalarm.yaml
, anything else is irrelevant/obsolete.
And I still need an answer to this question:
in your original post I can see a
users
section that is not present on the screenshot - is it intentional and the screenshot shows the whole config that does not work?
Basically, I need a properly formatted config (not a screenshot if at all possible) that doesn't work so I can experiment with it.
@alb147 may I now why you closed it?
@alb147 may I now why you closed it?
Yes, can close. But I have other error. I create the new issue
Hi I receive this error every time I enter the panel. although everything seems to work. Can you help me see what is wrong? Thanks
my version is: his integration: v1.12.4 Home Assistant: v0.110.6 Python: v (3,7,7, final, 0)
LOG:
Logger: homeassistant.components.websocket_api.http.connection.1762534672 Source: custom_components/bwalarm/alarm_control_panel.py:865 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 16:20:53 (4 occurrences) Last logged: 16:20:53 'users'
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service connection.context(msg), File "/usr/src/homeassistant/homeassistant/core.py", line 1253, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1290, in _execute_service handler.func(service_call) File "/config/custom_components/bwalarm/alarm_control_panel.py", line 422, in alarm_yaml_user alarm.settings_user(service.data.get(CONF_USER), service.data.get(CONF_COMMAND)) File "/config/custom_components/bwalarm/alarm_control_panel.py", line 865, in settings_user self._yaml_content['users'].append(user) File "/usr/local/lib/python3.7/site-packages/ruamel/yaml/comments.py", line 752, in getitem return ordereddict.getitem(self, key) KeyError: 'users'