tr-64 Adapter for ioBroker
This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.
This adapter reads main information from AVM Fritz!Box, like call list or number of messages on answering machine.
Based on this AVM documentations
This adapter was initially created by @soef at https://github.com/soef/ioBroker.tr-064 but not maintained any more, so we moved it to iobroker-community so that bugs could be fixed. thanks @soef for his work.
If you move from tr-064-community adapters you can easily copy whole device list or settings by:
To monitor the presence of persons in your home, so to control once anyone of your family/roommate is leaving or arriving, you can use this adapter as follows:
Also, a script was published by the ioBroker community which uses this adapter information to trigger actions (e.g. everyone left home, so turn off everything automatically, see number of persons currently being present, or person status in general, via VIS, etc.). See ioBroker forum thread (in German)
Anrufbeantworter
(answering machine)Can be switched on/off.
The state cbIndex can be set, to address # of the answering machine.
The call monitor will create realtime states for every inbound and outbound call.
If the phone book is enabled (default), numbers will be resolved to Names
There ist also a state indicating a ringing phone.
phonebook.number
all 3 states, name, number and image will be set to the found contact. Note, searches by name will first compare the complete name, if not found, part of is used.Output formats:
json
html
Call lists are:
Call count:
The call count can be set to 0. The next call will increment 1.
The html output can be configured by a template.
With the command state you can call every tr-064 command from this documentation.
e.g.
command = {
"service": "urn:dslforum-org:service:WLANConfiguration:1",
"action": "X_AVM-DE_SetWPSConfig",
"params": {
"NewX_AVM-DE_WPSMode": "pbc",
"NewX_AVM-DE_WPSClientPIN": ""
}
};
The command state should be set to a JSON of the above Lines. So { … } (without command = and line breaks)
The callback of the call will set the commandResult state.
Here you will find an example how to switch the answering machine in the Fritzbox on and off by using the command state. For testing you can just copy & paste the string into the state tr-064.0.states.command
Switch the answering machine on:{"service": "urn
service
1","action": "SetEnable", "params": {"NewIndex": "0","NewEnable": "1"}}
Switch the answering machine off:{"service": "urn
service
1","action": "SetEnable", "params": {"NewIndex": "0","NewEnable": "0"}}
A detailed description of the actions and parameters for TAM you can find here https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/x_tam.pdf (link is contained in the AVM documentation above).
To use the call monitor feature it must be first enabled in the AVM Fritz!Box.
To enable the call monitor dial #96*5*
and the TCP/IP Port 1012 will be opened. To close the port dial #96*4*
.
The MIT License (MIT)
Copyright (c) 2023-2024 ioBroker Community Developers iobroker-community-adapters@gmx.de
Copyright (c) 2015-2023 soef soef@gmx.net, ioBroker-Community-Developers
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.