Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Fyta Daten auslesen

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Fyta Daten auslesen

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MrX552 last edited by

      Moin,

      hat schon einmal jemand versucht die FYTA Daten in ioBroker zu bekommen, ohne IFTTT zu nutzen? in der API Beschreibung sieht das wie folgt aus:

      Auth API

      URL: https://web.fyta.de/api/auth/login

      Method: POST

      Body:

      {
          "email": "example@example.com",
          "password": "examplepassword"
      }
      

      Response:

      {
          "access_token": "111111111111111111111111111111111111111",
          "token_type": "Bearer",
          "expires_in": 5184000,
          "refresh_token": "2222222222222222222222222222222222222222",
          "scope": "mobile"
      }
      

      Get User Plants

      URL: https://web.fyta.de/api/user-plant

      Method: GET

      Response:

      {
        "gardens": [
          {
            "id": 123,
            "garden_name": "Home",
            "origin_path": null,
            "thumb_path": null,
            "mac_address": null
          }
        ],
        "plants": [
          {
            "id": 12,
            "nickname": "Ficus benjamina 1",
            "scientific_name": "Ficus benjamina",
            "status": 2,
            "plant_id": 201,
            "family_id": null,
            "wifi_status": 1,
            "thumb_path": "<url>",
            "origin_path": "<url>",
            "plant_thumb_path": "<url>",
            "plant_origin_path": "<url>",
            "received_data_at": "2023-01-00 10:10:00",
            "temperature_optimal_hours": 22,
            "light_optimal_hours": 0,
            "temperature_status": 2,
            "light_status": 1,
            "moisture_status": 3,
            "salinity_status": 2,
            "garden": {
              "id": 123
            },
            "sensor": {
              "id": "AA:AA:AA:2B:AF:F4",
              "has_sensor": true,
              "status": 1,
              "uuid_android": null,
              "uuid_ios": "4AAAAAA6F-0457-3233-8A43-032B5377E763",
              "version": "0.30.0",
              "is_battery_low": false,
              "received_data_at": "2023-01-01 10:10:00"
            },
            "hub": {
              "id": 123,
              "hub_id": "AA:AA:AA:27:7D:6A",
              "status": 1,
              "received_data_at": "2023-01-01 01:10:01",
              "reached_hub_at": "2023-01-01 10:10:01"
            }
          }
        ]
      }
      
      

      In meinem jugendlichen Leichtsinn habe ich nun gedacht, man könnte dafür die neuen Blöcke http get und http post nutzen, aber irgendwie bekomme ich es nicht hin, gerade das mit dem Token.

      Jörn

      M 1 Reply Last reply Reply Quote 0
      • M
        muffin142 Developer @MrX552 last edited by

        @mrx552

        Ich habe einen Adapter für FYTA erstellt, damit werden deine Gärten und Pflanzen als Datenpunkte zur Verfügung gestellt.
        Dieser ist direkt in Version über das Stable-Repository in ioBroker verfügbar, Version 0.2.0 über das Beta-Repository.
        Weitere Infos hier: NPM / Github

        1 Reply Last reply Reply Quote 1
        • mcm1957
          mcm1957 last edited by

          @mrx552
          https://forum.iobroker.net/topic/80655/test-fyta-adapter

          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          913
          Online

          31.7k
          Users

          79.7k
          Topics

          1.3m
          Posts

          3
          3
          171
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo