Node Red UI Alarm Panel for YET another take on an alarm system

Thanks a lot for your reply I will input the new code tonight and check how it is working
What is the proper way to show present
Depict the node red dashboard to a tablet ??
For easy usage ;

Thanks

Harris

I have the node red dashboard on two of the smaller Amazon Fire tablets that I have near my front door, and my garage door. But you can certainly test it out on a phone or computer browser.

That URL is: http://[your home assistant base url (minus the 8123 port)]:1880/endpoint/ui

If your node red configuration includes a username and password, you’ll be presented with a login prompt.

once again thanks a lot i will test tonight

Harris

thanks so much for your time, i hope a lst question and my initial problem
I have installed the code and integration and it is working , Icons are shown now
The big problem is with the pin code, i definitely input the correct code, cause i try t on HASS and on another mqtt alarm application and it is the correct one.
I input the code and it always always return incorrect pin
This si driving me crazy for months and i cannot fix it
I can arm and disarm through HASS Gui but not through the node-red application which is the nice part
Any ideas please ?
Once again thanks for the support
Doing such things at the mid 50s can be a bit challenging …
Harris

Hi Mike

have you fixed your problem with the incorrect pin as i am having it for the last to months and is getting me bad…

thanks

Harris

The only two reasons that I could think of that you PIN is not working from the Node Red Dashboard are:

  1. You don’t have the correct path set to your alarm config file. It should be called out in the node red flow as something you need to change/verify. (when I wrote this - it wasn’t - I updated the flow to contain the correct comment that calls it out)
  2. You are typing your PIN too quickly. I found that with these tablet keypads (even with the native BWAlarm HTML interface) is that you have to be deliberate and slow.

Have you tried setting up another user with another PIN and trying that one? Have you been able to arm or disarm the system at all with the Node Red panel? Another drawback from this version of the UI is that you cannot arm it without the PIN - even with the appropriate setting in BWAlarm. You always have to PIN in and PIN out.

@Chmark I just looked at the node red file, and there was one more place to call out where your configuration might be different. It’s the reference to the path to your bwalarm.yaml file. I also included a heavily redacted version of my bwalarm.yaml for reference. I noticed that BWAlarm pulled in all the users that I had configured in the system (including some static “tablet” users, and some home assistant cloud admin stuff). You’ll notice that their “code” is the same as their “id”, and their enabled flag is set to false. Valid alarm users will have their 4 digit codes in plain text here, and will have their enabled flags set to ‘true’. If you are not using a 4 digit PIN, then the node red code will have to be modified, too… I think it only supports 4 digit PINs.

thanks again

i am getting somewhere but not finalized yet
I did see the users and i changed the code to my initial general code, now i am able to arm the system ( which i could not do in the past) but disarm is not happening…

I found that in the bwalarm mqtt settings, you need to set the override_code: true or else it won’t disarm/arm the alarm.

The Node-red panel still requires a pin to do either on my setup and finally works great.

I have managed to set the arm state of the alarm and @kmycek you were correct it was all the users imported with different codes.
But i still cannot manage to disarm the alarm via mqtt even with the overide_code ( which was true all the time

Keep digging…
I never thought would be that difficult

Thanks for all the support guys

Do you have an MQTT client so you can read the messages that it’s getting under the home/alarm/set.

As long as BW alarm is getting DISARM then it works.

I’ve put my bwalarm.yaml below so you can take a look. Took me a long time to get it going too.

Hope it helps.

platform: bwalarm
#name: Alarm
panel:
  cameras:
  
  panel_title:  House
  enable_clock_12hr: 'True'
  enable_clock: 'True'
  enable_weather: 'False'
  enable_fahrenheit: 'True'
  round_buttons: 'True'
  enable_sensors_panel: false
  enable_camera_panel: 'True'
  hide_sidebar: 'True'
  hide_sensors: 'True'
  hide_passcode: 'True'
  shadow_effect: 'False'
  enable_serif_font: 'False'
  camera_update_interval: '1'
  enable_custom_panel: 'False'
  enable_floorplan_panel: 'False'
enable_night_mode: true
states:
  armed_away:
    immediate:
    - binary_sensor.downstairs_windows
    - binary_sensor.downstairs_motion
    - binary_sensor.back_door
    - binary_sensor.upstairs_windows
    - binary_sensor.master_bedroom_windows
    - sensor.ecolink_motion_detector_burglar_2
    delayed:
    - binary_sensor.front_door
    override: []
    pending_time: 60
    warning_time: 25
    trigger_time: 600
  armed_home:
    immediate:
    - binary_sensor.downstairs_windows
    - binary_sensor.master_bedroom_windows
    - binary_sensor.upstairs_windows
    delayed:
    - binary_sensor.back_door
    - binary_sensor.front_door
    override: []
    pending_time: 0
    warning_time: 25
    trigger_time: 600
  armed_night:
    immediate:
    - binary_sensor.back_door
    - binary_sensor.downstairs_windows
    - binary_sensor.front_door
    - binary_sensor.upstairs_windows
    - binary_sensor.master_bedroom_windows
    delayed: []
    override: []
    pending_time: 0
    warning_time: 10
    trigger_time: 600
users:
- id: 53fec3710eb44673be72438a09add170
  name: Home Assistant Cloud
  enabled: false
  code: 53fec3710eb44673be72438a09add170
  picture: ha.png
- id: b0a183ad476d4bb4bcc4af8d2fa70cbd
  name: Hass.io
  enabled: false
  code: b0a183ad476d4bb4bcc4af8d2fa70cbd
  picture: ha.png
- id: 04365e133e474d62b151fb1b2801b711
  picture: ha.png
- id: b52d3dae508449f596751ae584034367
  name: Alarm
  enabled: false
  code: b52d3dae508449f596751ae584034367
  picture: ha.png
- id: 0a8ab91f12d64fdea39e6bd31a7279c2
- id: f1eeaf39eefc4736b5968bf86f7749e8
  name: Alarm
  enabled: false
  code: f1eeaf39eefc4736b5968bf86f7749e8
  picture: ha.png
admin_password: HA1234
themes:
- name: Default
  warning_color: '#FF2943'
  pending_color: '#FF2943'
  disarmed_color: '#171918'
  triggered_color: '#FF0000'
  armed_home_color: '#FF7D7D'
  armed_away_color: '#FF5C5C'
  armed_perimeter_color: '#DAFF9E'
  active: 'True'
  armed_night_color: '#A30000'
  info_header_text_color: '#34DD6B'
  info_detail_text_color: '#FFFFFF'
  paper_item_selected_color: '#7D7D7D'
  action_button_border_color: '#FFFFFF'
  arm_button_text_color: '#FFFFFF'
  panel_text_color: '#FFFFFF'
  header_text_color: '#FFFFFF'
  alarmstatus_text_color: '#FFFFFF'
  time_text_color: '#FFFFFF'
  weather_text_color: '#FFFFFF'
  title_text_color: '#FFFFFF'
  subtitle_text_color: '#FFFFFF'
  info_panel_buttons_color: '#FFFFFF'
  arm_button_border_color: '#FFFFFF'
  paper_listbox_color: '#FFFFFF'
enable_persistence: true
enable_log: true
code: '6589'
panic_code: '5217'
code_to_arm: false
mqtt:
  enable_mqtt: true
  payload_arm_home: ARM_HOME
  payload_disarm: DISARM
  override_code: true
  payload_arm_away: ARM_AWAY
  qos: '0'
  payload_arm_night: ARM_NIGHT
  state_topic: home/alarm
  command_topic: home/alarm/set
  pending_on_warning: false

That’s great thanks
Did not know how to add all these themes and colours so I will give it a try now,
Where do you get all these colours codes ;; FF0000 etc …
I do have an mqtt client and strangely I see different user IDs sending the comands ( hass.io cloud etc.) And not only mqtt
Maybe I would need to change all other IDs to false
Will try again .!!!
In any case thanks a lot for the support it’s really helpful :relieved:

Harris

thanks so much

It finally works properly

Thanks

Thanks so much !!!
I did some changes , not quite sure which was the golden move but it Finally WORKS

Thanks

Harris

1 Like

Hi.

FIrst off - I’m not a Node-RED expert (or a javascript one either) but I like the potential in this so… And I do have (an ancient) background is software dev.

I;m working on fixing the code for pin validation. My working copy:

  • Does not need a pin to arm
  • Will correctly validate an entered PIN on disarm

For some reason BWAlarm isn’t reading the MQTT messages, but I can see that they are being sent, so need to resolve that. Needed a reboot - doh!

I will setup a repo for my code and contribute back. Thanks to the hard work of those involved in getting this to this point.

Edit:
Repo for my dev work : https://github.com/swests/NodeRedUiAlarm/tree/swests-dev

I’m a noob with node red, and I’m still getting familiar with HA after 8 months now. I found Node Red Alarm Panel UI which was just what I had been looking for. I realize no one has made any notes on this in over a year. But I have read every comment, walked through and implemented all the steps. I was hoping you wouldn’t mind telling me how do I access the alarm panel? Is there a web address? I tried through the lovelace dashboard but I don’t believe that is correct as it looks nothing like the screen shots in this thread.