Apollon77 / ioBroker.daikin-cloud

ioBroker Adapter for Daikin-Cloud devices
MIT License
14 stars 6 forks source link

Onecta Cloud API with deprecated API #215

Closed rauschgiftengel closed 2 months ago

rauschgiftengel commented 3 months ago

Hey, got the following email today:

We noticed that you are using the Onecta Cloud API with deprecated API key credentials. Please be informed that the API key will be invalidated starting 03 July 2024.

You can switch to our new open Onecta Cloud API platform free of charge. The API is fully documented on our developer portal:

. Daikin Developer Portal

You can log in to this portal using your current Onecta App account. Only minor changes are required to update your current application to keep it running with the new Cloud API.

If you are using third-party software or open-source software, please contact the respective developers for further actions.

Without action on your part, your automation or integration application will stop working on 03 July 2024.

If you are no longer interested in using the Onecta Cloud API or if your automation application is no longer in use, please disable the interaction with the Onecta Cloud API.

Regards, Daikin Residential Cloud Developer

At the API Portal i can create an app and get keys and secrets, but are these already supported in your plugin ? Can someone give me a hint how to use the new key - because this sentence states it won´t work anymore after 03 July

"Without action on your part, your automation or integration application will stop working on 03 July 2024."

if you need someone to test something or supply some infos - just give me a notice.

nschell1811 commented 3 months ago

+1

BlackEdder0815 commented 3 months ago

+1

RePa02 commented 3 months ago

+1

manfred-hofmann commented 3 months ago

+1

Dar4ide commented 3 months ago

+1

gituser-rk commented 3 months ago

+1

Chris25122 commented 3 months ago

+1

Apollon77 commented 3 months ago

All right ... then it seems to be time now to do that update --- grmmpff ;-)

homecineplexx commented 3 months ago

+1

BrokenNeni commented 3 months ago

+1

Apollon77 commented 3 months ago

No "me too" posts please because they help noone. Use Thumbs up in the first post please

goliat0815 commented 3 months ago

Ich wollte mich mal hier direkt auch bedanken für den Adapter und auch für das hoffentlich bald erscheinende, erfolgreiche Update des Adapters. Vielen Dank , großartige Arbeit. Ich habe auch gerade mal eine kleine Spende da gelassen. Wenn der Adapter mit der neuen API da ist, spende ich gern nochmal was.

manfred-hofmann commented 3 months ago

Schade, dass Firmen wie Daikin nicht einsehen wollen, dass ein offenes System eigentlich ein weiteres Verkaufsargument ist. Stattdessen bringen sie lieber ihre eigene App heraus, die aber nix kann. Dafür aber die aktuelle Pollen Belastung und Luftqualität anzeigt. Wozu ich die aber für eine Heizung bzw. Klimaanlagensteuerung brauche, ist mir ein Rätsel. Deswegen würde ich mich freuen wenn nach der Umstellung der Adapter weiterhin funktionieren würde und wäre dann auch mit einer Spende dabei.

bakerman23 commented 3 months ago

Schade, dass Firmen wie Daikin nicht einsehen wollen, dass ein offenes System eigentlich ein weiteres Verkaufsargument ist.

Den Einwand verstehe ich nicht. Die API, die wir alle so fleißig benutzen, wird doch von daikin zur Verfügung gestellt. Daikin bietet jedem die Möglichkeit daraus was zu machen. Ich kenne auch keine Firma die für iobroker eine fertige Lösung anbietet und den Support dafür liefert.

manfred-hofmann commented 3 months ago

OK, da hab ich mich falsch ausgedrückt. Ich meinte es gibt mittlerweile Firmen, die stellen neben ihren Remote API auch eine lokale Schnittstelle zur Verfügung. Da würde sich die maximale Calls von 200 am Tag erübrigen.

manfred-hofmann commented 2 months ago

So, jetzt ist es soweit. Der Adapter funktioniert seit 10:14 Uhr bei mir nicht mehr. (Communication failed 403)

rauschgiftengel commented 2 months ago

Englisch below/Englisch darunter.

Bitte respektiert die Regeln, dies ist ein Issues-Thread, das bedeutet, ich hab die gleiche Issue -> Daumen hoch. Bitte keine Diskussionen - der Entwickler hat die Issue angenommen - alles weitere lenkt nur ab, jeder bekommt eine Email dazu.

Threadsprache = Englisch - bitte erwartet nicht dass jeder Entwickler immer jede Antwort übersetzt. Die meisten arbeiten in ihrer Freizeit an den Plugins, daher bitte die Ablenkungen minimieren.

Please respect the rules, this is an issues thread, that means I have the same issue -> thumbs up. Please no discussions - the developer has accepted the issue - everything else is just a distraction, everyone gets an email about it.

Thread language = English - please don't expect every developer to always translate every answer. Most of them work on the plugins in their spare time, so please minimize distractions.

rauschgiftengel commented 2 months ago

Please respect the rules, this is an issues thread, that means I have the same issue ->

THUMP UP IN THE FIRST THREAD !

Do not Spam with "me too" threads !

Apollon77 commented 2 months ago

I'm already in the process to adjust anything needed but changes are bigger. I hope I have something to test by tomorrow

GR3MLYN commented 2 months ago

Vielen Dank für die großartige Arbeit. Ohne diesen Adapter würde mein komplettes Kühl- und Heizkonzept nicht mehr funktionieren. Wir haben mittlerweile in jedem Raum eine Daikin Anlage. Mach nicht zu lange heute. ;) Spende ist unterwegs.

Apollon77 commented 2 months ago

Ihr könnt Euch aber gedanklich schonmal auf Änderungen einstellen ... Es gibt ein Daily limit von 200 Calls! Wir versuchen zu optimieren wie es geht und so, aber mal schauen was das wird.

Volker88 commented 2 months ago

Kann man dann eventuell einstellen, das nachts nur stündlich abgefragt wird und dafür tagsüber öfter? Ich nutze den Adapter um die Klimaanlage anhand meiner PV Erzeugung zu steuern. Da nachts keine Strom vom Dach kommt, muss ich nachts auch nicht regelmäßig die Klimaanlage abfragen

Bart1909 commented 2 months ago

Ihr könnt Euch aber gedanklich schonmal auf Änderungen einstellen ... Es gibt ein Daily limit von 200 Calls! Wir versuchen zu optimieren wie es geht und so, aber mal schauen was das wird.

200 Calls pro Account oder pro Gerät? Falls pro Gerät könnte man vllt überlegen, ob man ein 8h Fenster definierbar macht, wo der Adapter "offline" ist. Und in den restlichen 16 Stunden ist es dann 2 Calls pro 10min, also 1 lesender und 1 schreibender. Falls die API das hergibt, mit einem Aufruf jeweils

Bart1909 commented 2 months ago

Kann man dann eventuell einstellen, das nachts nur stündlich abgefragt wird und dafür tagsüber öfter? Ich nutze den Adapter um die Klimaanlage anhand meiner PV Erzeugung zu steuern. Da nachts keine Strom vom Dach kommt, muss ich nachts auch nicht regelmäßig die Klimaanlage abfragen

genau, das war auch mein Gedanke. Ich steuere die Warmwasser-Aufbereitung anhand des PV-Überschusses. Nachts passiert da nichts, da wird "nur" die Temperatur überwacht. Aber da könnte man auch drauf verzichten

Apollon77 commented 2 months ago

200 pro Account!

Genau ... ich plane bereits mal mindestens eine slowPolling Modus oder "normal piolling modus" den man dann umschalten kann. erstmal manuell (zeitgesteuert per javascript zb) , später vllt zeitgesteuert vom adapter - sobald wir mal wissen was sinn macht.

timoglaess commented 2 months ago

was für ein Mist... Aber ich hab auch Hoffung. Das war vorher schon nicht wirklich nachvollziehbar aktuell. Oft wurden die Werte stundenlang nicht aktualisiert und hat alle paar Tage plötzlich auch mal gar keine Werte mehr geliefert. Wenn mit der Umstellung die API Verbindung stabiler ist und die einzelnen Calls, wenigstens zum Zeitpunkt der Abfrage, einen verlässlichen aktuellen Wert können, zb. gesichert alle 15min wär das durchaus eine Verbesserung. In der Nacht zb. einmal pro Stunde würde Sinn machen, um den Aussentemperaturabfall erkennen zu können. Die schreibenden Calls hingegen sollten direkt wirken, um zb. bei erhöhtem Netzbezug, nicht erst den nächsten Zyklus abwarten zu müssen. Vielen Dank Ingo für dein Engagement :-)

Armilar commented 2 months ago

200 pro Account!

Genau ... ich plane bereits mal mindestens eine slowPolling Modus oder "normal piolling modus" den man dann umschalten kann. erstmal manuell (zeitgesteuert per javascript zb) , später vllt zeitgesteuert vom adapter - sobald wir mal wissen was sinn macht.

So macht es die Integration von HA: image Vielleicht wären es im ioBroker auch geeignete Parameter?

nikmaier commented 2 months ago

Evtl. gehts ja auch so wie mit dem Bluelink Adapter, dass man per Button aktualisieren kann, dann könnte sich ja jeder ein eigenes Script basteln.

Armilar commented 2 months ago

Daikin sendet übrigens die aktuellen Ratelimits mit... image

dass man per Button aktualisieren kann, dann könnte sich ja jeder ein eigenes Script basteln.

klingt für eine Verfolgung in influxDB nicht sehr prickelnd, wenn die Werte nicht automatisiert kommen ;-)

Apollon77 commented 2 months ago

Soooo, then lets see, first test version available:

IMAGE 2024-07-04 14:46:01

Verify that things work afterwards. Beware of the 200 max requests per day!

Localization and texts and documentations are still WIP

DannySotzny commented 2 months ago

works good! Thank you very much!

gituser-rk commented 2 months ago

Works for me, but be aware of popup blockers. Needs to be allowed for Step 7

bakerman23 commented 2 months ago

Ein paar Anregungen um den Adapter zu entlasten. Wärmepumpe: daikin Wärmepumpen haben einem smartgrid schließerkontakt, an dem der Wechselrichter angeschlossen werden kann. Wird dieser geschlossen, wird Warmwasser auf Komfort Temperatur erwärmt. Das kann man auch gut mit einem Shelly steuern. Klimaanlage: es gibt anlernbare IR oder Funksender, die sich in iobroker integrieren lassen, mit denen man die Klimaanlage steuern kann. Beide Varianten umgehen die daikin Cloud.

Apollon77 commented 2 months ago

@gituser-rk Did you really looked at popup blocker? In FF there is a small bar added on top of the page when it blocks the popup and you can select there to unblock it ... most likely you just missed that ...

gituser-rk commented 2 months ago

@gituser-rk Did you really looked at popup blocker? In FF there is a small bar added on top of the page when it blocks the popup and you can select there to unblock it ... most likely you just missed that ...

Thanks - shame on me. Corrected my post.

Vippis2000 commented 2 months ago

Updatet to 0.4.0 and authenticated. Works fine!

Speedbird74 commented 2 months ago

Some data missing in comparison to previous Version like internal fan speed and temperature of internal heat exchanger. Rest seems to work as intended. Thanks for your efforts, really appreciated!

harryslapalot commented 2 months ago

The new version works, thank you very much for the quick fix. Unfortunately the low refresh rate makes it almost unusable for me. I know that is not your fault. I just wrote an email to Daikin about the issue and asked why there is no more local API access as there used to be in earlier times. Maybe it helps if more people do that so they see the need for local access or higher refresh rates.

Dar4ide commented 2 months ago

Thanks, works with New version and 5 air conditioning units out of the Box. Daikin removed some setpoints like econoMode or streamerMode. Thanks for your work, Issue could be closed

fu-zhou commented 2 months ago

Bei mir reagieren die Wandgeräte Perfera innerhalb von Sekunden auf Ein- und Ausschaltbefehl. Das ist eigentlich für mich das Wesentliche. Die API Developer Statistik zeigt auch noch keinen Zugriff (30 days summary) ...

Super Arbeit, vielen Dank!

Apollon77 commented 2 months ago

If you enable the debig log in the adapter then after each request the "rate limit status" is shown

Vippis2000 commented 2 months ago

Ein paar Anregungen um den Adapter zu entlasten. Wärmepumpe: daikin Wärmepumpen haben einem smartgrid schließerkontakt, an dem der Wechselrichter angeschlossen werden kann. Wird dieser geschlossen, wird Warmwasser auf Komfort Temperatur erwärmt. Das kann man auch gut mit einem Shelly steuern. Klimaanlage: es gibt anlernbare IR oder Funksender, die sich in iobroker integrieren lassen, mit denen man die Klimaanlage steuern kann. Beide Varianten umgehen die daikin Cloud.

Könntest Du mir hierzu ein paar Tipps geben? Welche Sender benutzt du?

bakerman23 commented 2 months ago

Ich selber (noch) nichts. Allerdings ist broadlink wohl sehr beliebt.

Speedbird74 commented 2 months ago

Somehow I exceeded the rate limit,although polling set to 300s between 06-22 and 3600s between 22-6. Should be exactly 200/day. Most likely because my own script changed values being send towards the cloud, adding up. Now I seem to be punished with 128000 seconds waiting time. Thanks Daikin. Anybody knows whether deleting and reopening a new Daikin app helps?

Update: Stopped the instance for an hour, restarted, now it works again.

Speedbird74 commented 2 months ago

Ich komme nicht mehr auf auf meine App um die redirect Url einzutragen. Hatte jemand auch das Problem ?

image

Du musst rechts oben auf der Website auf deine e-Mail gehen und in drop down auf My Apps klicken. Dann kannst du es eintragen.

Chris25122 commented 2 months ago

Ich komme nicht mehr auf auf meine App um die redirect Url einzutragen. Hatte jemand auch das Problem ? image

Du musst rechts oben auf der Website auf deine e-Mail gehen und in drop down auf My Apps klicken. Dann kannst du es eintragen.

Danke dir habe es inzwischen hinbekommen. Habe deswegen den Kommentar schon gelöscht.

DieterB61 commented 2 months ago

Hi, everything worked well for me up to now. Thank's a lot. Is there a possibility to display the remainingDay value in ioBroker Vis?

jodabis commented 2 months ago

Hi, thanks for all the effort! When will 0.4.0 ship officially?

Volker88 commented 2 months ago

I have 0.4.0 running since yesterday without issues. It refreshes the data every 15 minutes but when i trigger start of my air conditioning it will immediately start and not wait for the next refresh cycle.

I only had to adapt my script to extract the Energy Consumption data into individual data points. If anyone is using that or interested in using it, the updated version is here: https://gist.github.com/Volker88/59a14f8d614db33f163452fb56469e01

Dar4ide commented 2 months ago

I have 0.4.0 running since yesterday without issues. It refreshes the data every 15 minutes but when i trigger start of my air conditioning it will immediately start and not wait for the next refresh cycle.

I only had to adapt my script to extract the Energy Consumption data into individual data points. If anyone is using that or interested in using it, the updated version is here: https://gist.github.com/Volker88/59a14f8d614db33f163452fb56469e01

I have the same issue, everytime i send state to the cloud a full data refresh of the device occurs. 1 update consums 2 of the rate limit. @Apollon77 is it possible to suppress the automatic update after setting a new state?