Alarm mode - 2 questions

Now that we have a great Alarm Mode, I will be able to configure and put my alarm system into service.

Two questions:

  1. What is the full URL syntax when adding « ?fullscreen=force » to xxxxxxxxxxxxxsistant.com/dashboard/123-alarme?
    I’ve tried « everything » and I can’t get full screen on my iPad!

  2. I have a HEIMAN siren, and I don’t know how to trigger it.
    image

Thanks for your help

  • https://plus.gladysassistant.com/dashboard?fullscreen=force
  • https://plus.gladysassistant.com/dashboard/capteurs?fullscreen=force
  • http://192.168.1.11/dashboard?fullscreen=force
  • http://192.168.1.11/dashboard/capteurs?fullscreen=force

Which browser are you using?

According to the documentation, I don’t think it’s possible today in Gladys.

@Isage

look here and test below

there are the elements in the doc, the syntax must be adapted according to what comes out of Gladys (use MQTT Explorer)

{"warning": {"duration": 10, "mode": "emergency", "strobe": false}}

  • mode (enum): Mode of the warning (sound effect) allowed values: stop, burglar, fire, emergency, police_panic, fire_panic, emergency_panic
  • level (enum): Sound level allowed values: low, medium, high, very_high
  • strobe_level (enum): Intensity of the strobe allowed values: low, medium, high, very_high
  • strobe (binary): Turn on/off the strobe (light) during warning allowed values: true or false
  • strobe_duty_cycle (numeric): Length of the flash cycle max value is 10
  • duration (numeric): Duration in seconds of the alarm unit is s

Linkquality (numeric)

Otherwise, as a last resort, use Gladys and Node-RED! :wink:

I think it only works in the MQTT → Gladys direction and not the other way around :thinking:

Which browser are you using?
Chrome or Safari

According to the documentation, I don’t think that’s possible today in Gladys.
Is there a siren compatible with Gladys?

@cicoub13 and @Isage,
indeed, it’s true that the MQTT mode of operation is specific to Gladys and that it has a syntax outside the protocol (it’s a technical reason specific to Gladys; I recall discussing it with @pierre-gilles) and in your case it publishes

gladys/master/device/mqtt:sirene/feature/mqtt:/text

and not

{"warning": {"duration": 10, "mode": "emergency", "strobe": false}}

which your alarm listens to

so @Isage is forced to use Node-RED (@Isage you can be crafty by creating a flow
with an mqtt-in component to an mqtt-out and a transfer node.
the mqtt-in listens to « gladys/master/device/mqtt:sirene/feature/mqtt:/text » or you put instead of text « Heiman-on » for example so « gladys/master/device/mqtt:sirene/feature/mqtt:/Heiman-on » and your transfer function transforms it into {"warning": {"duration": 10, "mode": "emergency", "strobe": false}} and same in the other direction

It would be nice to have in Gladys the possibility to create an MQTT device (in the MQTT integration) that would act as a pure MQTT bridge and interface between pure MQTT and Gladys’ standard MQTT. I’ll make a request, I think this could be interesting in this kind of case!

@Isage
I’ve created a feature request that should address your need (and others, I think! :blush:), now all that’s left is to vote! :wink:

Great!
I just voted :wink:

1 Like

What do you mean by full screen? The fullscreen mode hides the header at the top of the Gladys screen, isn’t that the case?

It’s not compatible with Gladys at the moment, there’s a feature request but few requests so far:

You’re mixing everything up @cce66 :sweat_smile:

The only solution here is simply to integrate the siren into Gladys, it’s not a very big job, someone just needs to do it :slight_smile:

No, that won’t meet the need; the solution here is simply to integrate the siren into Gladys.

Any contribution in that direction is welcome :slight_smile:

@pierre-gilles
What do you mean by « fullscreen »?

Fullscreen mode hides the header at the top of the Gladys screen, isn’t that the case?

That is to say, I don’t have this screen

Ah, that’s something else, the locked house has nothing to do with fullscreen :slight_smile:

Did you see my demo in the YouTube live? (At this moment: https

I watched your video :wink:

Actually I don’t have « Tablet mode » or « Full screen » on my tablet, nor on my iPhone13.
I only have « Edit »

image

I guess you’re on Gladys Plus, tablet mode is only available locally!

Oops

1 Like

@Isage

I’ve made a mini-tutorial that you can adapt for your alarm while it is being integrated, give me some feedback! :wink:

Thanks @cce66

I’ll take care of it tomorrow

I’ll keep you posted

Hi @cce66
I think I followed your tutorial well, but I’m stuck on port 1883.
Could you give me the commands to find and open the « configuration.yaml »?
Thanks

My MQTT device


Port 1883 is the MQTT broker port of the MQTT container — these are the settings you can find in Gladys as indicated in the documentation.

Port 1884 is the MQTT broker port of the Zigbee2Mqtt container; it’s indeed more complicated to retrieve the username (when it’s deployed by Gladys it’s « gladys » by default) and the password of the zigbee2Mqtt container, and that password is located in the configuration.yaml file. (I struggled because of that — at first I thought everything went through the first one :slight_smile: I hadn’t realized that the first one was used for Gladys’s operation with its own syntax which is due to its mode of operation; it’s likely that commercial gateways work the same way internally :thinking: and that the second is the gateway between the Zigbee protocol and the MQTT protocol which in this case is standard, well if I understood everything correctly this time! :rofl:)

So the question to be able to help you is: on which system did you install it, NAS or Linux? On Linux I know how; for a NAS, since I don’t have one I can’t really help except that there should be a file manager (normally the case on Syno) or SSH access (there it should be the same as for Linux — most NAS are based on that system)

Gladys Plus on Raspberry Pi 4; SSH access.

So once connected via SSH you can do:

sudo nano /var/lib/gladysassistant/zigbee2mqtt/z2m/configuration.yaml

Here I’m using nano, if you don’t have it installed you can install it, or use something else (vi, vim, other..)