Comments (7)
Hi,
setting the set_temperature is already implemented but not released yet to the master branch. Just use the pluging from the develop branch:
https://github.com/smarthomeNG/plugins/tree/develop/avm
from plugins.
Hi,
I just tried that out but it hasn't been successful. I tried setting the set_temparature with Visu (and from the Admin-page), but with every "update-loop" the previously set value is overwritten. So it seems it is not written into the thermostat. Please see the log-extract and config below.
I'd be glad to receive hints and would be happy to test!
//giase
log:
-> setting settemp via Visu
2019-12-04 11:32:52 CET DEBUG item Main Item avm.dect.bad_eg_heizkoerper.settemp = 22.5 via Visu 192.168.1.211:59940 None -- (item.py:__update:2224)
...
-> update loop resets value to the one stored in Fritz!DECT 301
2019-12-04 11:36:51 CET DEBUG __init__ plugins.avm_fritzbox_6490.update fritzbox_6490@: Starting update loop for instance fritzbox_6490 -- (__init__.py:_update_loop:637)
...
2019-12-04 11:36:55 CET DEBUG __init__ plugins.avm_fritzbox_6490.update fritzbox_6490@: handling hkr device -- (__init__.py:_update_home_automation:1781)
2019-12-04 11:36:55 CET DEBUG item plugins.avm_fritzbox_6490.update Item avm.dect.bad_eg_heizkoerper.settemp = 23.0 via avm None None -- (item.py:__update:2224)
config:
bad_eg_heizkoerper:
# Current hkr state: 0 = closed, 1: open, 2: temperature controlled, 3: error
type: num
value: 3
avm_data_type@fritzbox_6490: hkr_device
ain: XXXXX XXXXXXX # has to be identical to id in fritzbox (also with spaces!)
visu_acl: rw
# these items need to be child items from hkr_device
temp:
value: -1
avm_data_type@fritzbox_6490: temperature
type: num
visu_acl: rw
settemp:
visu_acl: rw
type: num
database: 'yes'
value: -1
avm_data_type@fritzbox_6490: set_temperature
from plugins.
I found a hint in the warnings-log:
2019-12-04 12:02:49 ERROR plugins.avm fritzbox_6490@: Exception when sending POST request for updating item towards the FritzDevice: HTTPSConnectionPool(host='fritz.box', port=443): Max retries exceeded with url: /webservices/homeautoswitch.lua?ain=099950347481&switchcmd=sethkrtsoll¶m=45.0&sid=c59f7253a7121d95 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x69b1ecf0>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt',))
Do you have an idea what is wrong? Why can I read but not set? User-permissions in the FB?
//giase
from plugins.
Hi again,
I figured if I reset my FritzBox to use the standard 443 port, it works. I am confused as reading the temp is working also before. How is the port for the FB-interface for the plugin derived? e.g. if I use the standard FritzBox-port 443, the plugin port is 49433. What if I e.g. use port 44450?
//giase
from plugins.
49443 is the standard HTTPS tr-064 port (e.g. https://www.janrufmonitor.de/tr-064-aktivieren/, https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AVM_TR-064_first_steps.pdf -> Chapter 3.1)
please ask AVM how to change that and not us. if it is possible to change it at all!
from plugins.
I just meant to say: If someone does NOT use the standard HTTPS port for security reasons in the FB (as I did), the avm-plugin wonβt work as expected. This should be helpful information for you as well.
In addition, it might be confusing to allow setting the port in the plugin to an arbitrary value as this implies that this should work.
This particular problem here can be solved setting the standard https-port in the FB.
Cheers!
from plugins.
it is ok to switch the port between http and https. so at least for this it is mandatory to have it configurable.
i cannot say how TR-064 will react if you reconfigure 443. but i suppose there is a solution as AVM is also using their TR-064 interface. if they did not regard a changed 443, this could be also a bug in the fritzbox, but its not upon me to judge.
from plugins.
Related Issues (20)
- UZSU plugin: implement holidays and alarm features
- rtr2: can't pass rtr2_settings or rtr2_controller_settings HOT 6
- viessmann: cant parse datetime reply from heater HOT 6
- smartvisu plugin: error reading deprecated.yaml HOT 2
- svNG Plugin join: Missing "say" and "language" commands HOT 3
- svNG plugin harmony: PowerOff handling not correct HOT 2
- svNG plugin harmony: Harmony prefix not registered in plugin.yaml HOT 2
- telegram: Plugin should be improved to use async HOT 2
- database: Increase duration of previous db entry when deleting HOT 2
- database: Plugin does not work with mysql when using a password that starts with numbers HOT 3
- uzsu: Own interpolation code instead of scipy
- database: Verwaiste Datenreihen neu zuordnen
- rtr: Plugin might have issue with newest core changes? Deprecated anyhow? HOT 2
- db_addon: Duplicate values for verbrauch_heute_minus3 and verbrauch_heute_minus2 HOT 10
- influxdb, influxdb2: Add database data retrospectively HOT 4
- sml2 Plugin hat keine auto reconnect Funktion
- ebus: fix version and connect problem HOT 1
- db_addon: sometimes values aren't recalculated
- database: Wrong return value for item.db() function for sparsely filled databases HOT 4
- AttributeError: 'UZSU' object has no attribute '_schedulers' / AttributeError: 'KNX' object has no attribute '_schedulers' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugins.