Open kaibuk opened 4 years ago
I prepared a new update with additional logs because I'm not sure how well the device is supported by the API. I assume we should at least see the battery level.
Hello Tim
Sorry i dind't came back to yo as at the moment there is a lot of going on in Work. i will collect the logs.
I could see in the logs that its trying to get some information already but nothing is showing up in the Mozilla IoT.
I Fritz Box you can set 4 screen variation. On each screen you can setup 4 buttons. Lights take normally one spot but the Temperature sensor 2 spots as they allow oyu t change th temperature.
Screenshot attached from Fritz. Box
In log files i can see that
2020-11-05 20:57:37.944 INFO : fritz-adapter: Opening database: /home/pi/.mozilla-iot/config/db.sqlite3 2020-11-05 20:57:38.305 INFO : fritz-adapter: Loading add-on fritz-adapter from /home/pi/.mozilla-iot/addons/fritz-adapter 2020-11-05 20:57:43.115 INFO : fritz-adapter: Detected new Comet DECT with ain 119610296464 2020-11-05 20:57:43.744 INFO : fritz-adapter: Detected new Comet DECT with ain 119600012296 2020-11-05 20:57:44.584 INFO : fritz-adapter: Detected new Comet DECT with ain 119600947448 2020-11-05 20:57:45.441 INFO : fritz-adapter: Detected new Comet DECT with ain 119610469968 2020-11-05 20:57:46.249 INFO : fritz-adapter: User rights: ["Dial"] 2020-11-05 20:57:46.250 ERROR : fritz-adapter: User needs "HomeAuto" access rights 2020-11-05 20:57:46.356 INFO : Opened a new things socket 2020-11-05 20:57:46.384 INFO : About to call startPairing on FritzAdapter 2020-11-05 20:57:46.788 INFO : fritz-adapter: Detected new FRITZ!DECT 500 with ain 130770002688-1 2020-11-05 20:57:46.789 INFO : fritz-adapter: {"identifier":"130770002688-1","productname":"FRITZ!DECT 500","name":"Licht Esszimer","features":["Light","HAN-FUN","OnOffActor","DimmableLight","ColorLight"],"simpleonoff":{"state":false},"levelcontrol":{"level":187,"levelpercentage":73},"colorcontrol":{"temperature":3400}} 2020-11-05 20:57:46.791 INFO : fritz-adapter: Detected new FRITZ!DECT 500 with ain 130770020101-1 2020-11-05 20:57:46.792 INFO : fritz-adapter: {"identifier":"130770020101-1","productname":"FRITZ!DECT 500","name":"Licht Wohnzimmer","features":["Light","HAN-FUN","OnOffActor","DimmableLight","ColorLight"],"simpleonoff":{"state":false},"levelcontrol":{"level":176,"levelpercentage":69},"colorcontrol":{"temperature":3400}} 2020-11-05 20:57:46.793 INFO : fritz-adapter: Detected new Comet DECT with ain 119610296464 2020-11-05 20:57:46.795 INFO : fritz-adapter: {"identifier":"119610296464","productname":"Comet DECT","name":"Heizung Office","features":["Thermostat","TemperatureSensor"],"battery":90,"batterylow":false,"temperature":{"celsius":19.5,"offset":0},"thermostat":{"currentTemperature":19.5,"targetTemperature":16.5}} 2020-11-05 20:57:46.796 INFO : fritz-adapter: Detected new Comet DECT with ain 119600012296 2020-11-05 20:57:46.797 INFO : fritz-adapter: {"identifier":"119600012296","productname":"Comet DECT","name":"Heizung Wohnzimmer","features":["Thermostat","TemperatureSensor"],"battery":80,"batterylow":false,"temperature":{"celsius":19,"offset":-1},"thermostat":{"currentTemperature":19,"targetTemperature":17.5}} 2020-11-05 20:57:46.798 INFO : fritz-adapter: Detected new Comet DECT with ain 119600947448 2020-11-05 20:57:46.799 INFO : fritz-adapter: {"identifier":"119600947448","productname":"Comet DECT","name":"Heizung Schlafzimmer","features":["Thermostat","TemperatureSensor"],"battery":40,"batterylow":false,"temperature":{"celsius":14.5,"offset":-3},"thermostat":{"currentTemperature":14.5,"targetTemperature":12.5}} 2020-11-05 20:57:46.800 INFO : fritz-adapter: Detected new Comet DECT with ain 119610469968 2020-11-05 20:57:46.801 INFO : fritz-adapter: {"identifier":"119610469968","productname":"Comet DECT","name":"Heizung Badezimmer","features":["Thermostat","TemperatureSensor"],"battery":30,"batterylow":false,"temperature":{"celsius":19.5,"offset":0},"thermostat":{"currentTemperature":19.5,"targetTemperature":16.5}} 2020-11-05 20:57:46.802 INFO : fritz-adapter: Detected new FRITZ!DECT 500 with ain 130770002688 2020-11-05 20:57:46.802 INFO : fritz-adapter: {"identifier":"130770002688","productname":"FRITZ!DECT 500","name":"Licht Esszimer","features":["HAN-FUN"]} 2020-11-05 20:57:46.803 INFO : fritz-adapter: Detected new FRITZ!DECT 500 with ain 130770020101 2020-11-05 20:57:46.804 INFO : fritz-adapter: {"identifier":"130770020101","productname":"FRITZ!DECT 500","name":"Licht Wohnzimmer","features":["HAN-FUN"]} 2020-11-05 20:57:46.805 INFO : fritz-adapter: Detected new FRITZ!DECT 440 with ain 099950405034 2020-11-05 20:57:46.806 INFO : fritz-adapter: {"identifier":"099950405034","productname":"FRITZ!DECT 440","name":"Schalter Wohnzimmer","features":["Button","TemperatureSensor"],"battery":100,"batterylow":false,"temperature":{"celsius":20,"offset":0}} 2020-11-05 20:57:46.807 INFO : fritz-adapter: Detected new FRITZ!DECT 200 with ain 116300154860 2020-11-05 20:57:46.808 INFO : fritz-adapter: {"identifier":"116300154860","productname":"FRITZ!DECT 200","name":"FRITZ!DECT 200 #7","features":["EnergyMeter","TemperatureSensor","SmartPlug","Microphone","OnOffActor"],"temperature":{"celsius":null,"offset":null},"powermeter":{"voltage":null,"power":null,"energy":null}} 2020-11-05 20:57:47.767 INFO : fritz-adapter: Detected new Licht Esszimer [130770002688-1] (FRITZ!DECT 500) 2020-11-05 20:57:47.774 INFO : fritz-adapter: Detected new Licht Wohnzimmer [130770020101-1] (FRITZ!DECT 500) 2020-11-05 20:57:50.725 INFO : Successfully created new thing FRITZ!DECT 200 #7 2020-11-05 20:57:51.499 INFO : Successfully created new thing Heizung Office 2020-11-05 20:57:52.094 INFO : Successfully created new thing Heizung Wohnzimmer 2020-11-05 20:57:52.526 INFO : Successfully created new thing Heizung Schlafzimmer 2020-11-05 20:57:53.245 INFO : Successfully created new thing Heizung Badezimmer 2020-11-05 20:57:54.206 INFO : Successfully created new thing Licht Esszimer 2020-11-05 20:57:54.749 INFO : Successfully created new thing Licht Wohnzimmer
Sorry i dind't came back to yo as at the moment there is a lot of going on in Work
No problem :)
Thank you very much for the detailed info.
I expected to see AVM-Button
in the features
list.
I need to check if there is something wrong with my decoding function.
I added basic support for buttons now. You should be able to add your buttons and see the battery level as well as the temperature. According to the Fritz documentation, it should also be possible to get the button press events. Unfortunately, the structure isn't very well documented. I need some additional logs after installing the update.
Hi
We are one step closer. So now the device is showing up and if the automatic search it gives me the option to Select Temperature Sensor or Custom Thing
Both Options are giving me the visibility to the Battery Level and the Temperature information of the Room I setup
So information is beeing displayed. But not yet button assignment possible. As said its not critical but that would give your Addon the latest functionality with all the AVM devices.
The logs are attached and I can see that it can read all the assignment I have set
2020-11-07 08:33:12.693 INFO : fritz-adapter:
Thanks. run-app.log.2020-11-07.txt
Also you should add int your API info Supported Devices: Dect 500. :)
Also you should add int your API info Supported Devices: Dect 500. :)
Done.
The new update should add four events to your button device.
Every time you click a button you should get a new PressedEvent
.
Keep in mind that it takes a few seconds until the next poll call detects the new event.
Hi
I can see in rules now Following Events
But Still if I press it doesnt show that it has ben pressed.
Sorry, I was a bit busy with the typescript migration of the node addon library.
But Still if I press it doesnt show that it has ben pressed.
I think I need the debug logs after triggering an event.
Hi
Whenever you will have it would benefit the addon to have support for Dect 440. Below are the log files.
Dect440.txt
Kind Regards