Jluc
July 15, 2026, 8:41am
1
Description
Sending SMS is very convenient but it is currently only possible to set up one number. To share notifications, would it be possible to add a key for a second Free number?
mutmut
July 15, 2026, 4:48pm
2
I would add that each API key should belong to a user account, which allows sending a message to Mr. or Ms.
This feature was already on my TODO list because we had discussed it when I did that integration
Iâve done a bit of work on it:
Iâll give it a try this weekend and put an image up for testing
Great, now each user can set their own Free API key.
I also added in the user list the option to message everyone
Iâll prepare an image if someone wants to test
The PR
master â William-De71:feat/sms-free-multiuser
ouvert 09:06PM - 17 Jul 26 UTC
### Pull Request check-list
- [x] If your changes affect the code, did you wr⊠ite the tests?
- [x] Are server tests passing with coverage? (`cd server && npm run coverage`) â Codecov requires **100% coverage on lines changed in this PR**
- [ ] Did Cypress E2E tests pass? (`npm run cypress:run` from repo root, if UI changed)
- [x] Is the linter passing? (`npm run eslint` on both front/server)
- [x] Did you run prettier? (`npm run prettier` on both front/server)
- [ ] If you are adding a new feature/service, did you run the integration comparator? (`npm run compare-translations` on front)
- [x] Did you test this pull request in real life? With real devices?
- [ ] If your changes modify the API (REST or Node.js), did you modify the API documentation?
- [ ] If you are adding a new features/services which needs explanation, did you modify the user documentation?
- [x] Did you add fake requests data for the demo mode? (N/A â no new widget)
### Description of change
This PR adds **multi-user support to the Free Mobile integration**.
#### Problem
Until now, only the **admin** account could configure a Free Mobile API key. The customer ID and access token were stored as **global** service variables, so Gladys could only send SMS to that single account. There was no way to send an SMS to another user, nor to build scenes targeting a specific user.
#### Solution
Free Mobile is now aligned with the **Telegram / CallMeBot** pattern:
- **Per-user configuration**: the `FREE_MOBILE_USERNAME` and `FREE_MOBILE_ACCESS_TOKEN` variables are now stored per-user (`userRelated: true`). Each user can enter their own credentials from the integration page to receive SMS.
- **Automatic migration**: on service start, the legacy global configuration (if any) is migrated to the **admin** user's per-user configuration, then the old global variables are removed. Existing installations keep working with no manual action.
- **New message handler**: a `message.send(userId, message)` handler reads the user's own credentials on the fly and sends the SMS.
- **Scene action**: the "Send an SMS" action now has a **recipient selector** â you can send to a specific user, or to **all users** who configured Free Mobile.
and the image being built:
docker pull willde71/gladys-test:freemobile
Jluc
July 17, 2026, 9:19pm
7
Super, a big thank you @Will_71 . I just need to manage to set up a second user
Hi @Jluc !
Each user can have their own Free Mobile key. This wasnât done in the native integration: it displays that it will be removed in a future version.
The replacement is the community integration Free Mobile SMS , in the catalog (notifications category):
Install Free Mobile SMS .
Each person opens this integration, Configuration tab, My Account block, and enters their identifier and Free key.
In the scenes, replace Send an SMS with Send a message , on the Free Mobile SMS channel, targeting the user whose account is filled in.
The old SMS action continues to use the native integration, limited to one key for the whole house. Hence the change of block. Thanks @Will_71 for the integration.
Iâm moving this topic to « Delivered requests ». If thereâs still a case that doesnât fit, open a new topic: it will be easier to follow.