Code Monkey home page Code Monkey logo

Comments (4)

cypherbits avatar cypherbits commented on May 27, 2024

@djansen1987 Some questions about the lastest beta:

  • why did you remove the sensors conditions (the if h1, or sec)?
  • why did you remove the sensor list from configuration?
  • my HA says the "version": "1.4.1.B1" is not a good version number.

I implemented the batteryTemperature that is working for me on a H1.
Reenabled the configuration and the sensors check.
I want to check for the configuration batteryTemperature before calling and trying to get the temperature, that is why I reenabled them.

from sajesolar.

djansen1987 avatar djansen1987 commented on May 27, 2024

Hi @cypherbits,

THanks for your interest, I am looking in to making the setup more easy. No more advanced config yaml, and let the component find out what type or modules you have. But as you can see i am a bit stuck. This is partly due to the lack of enough python knowledge and also time.

Maybe you can help out, only thing important to me is backward competible sensor names to maintain Energy dashboard statistics.

from sajesolar.

djansen1987 avatar djansen1987 commented on May 27, 2024

I have checked one of my account with a battery but can't seem to find a api endpoint showing battery tempature. Please reopen the issue if you have found more information.

from sajesolar.

cypherbits avatar cypherbits commented on May 27, 2024

Some code I have:

url_findBatteryRealTimeList = f"https://fop.saj-electric.com/saj/cloudMonitor/deviceInfo/findBatteryRealTimeList"
                #"2022-11-10+21:30:00"
                datetime_now = datetime.datetime.now().strftime("%Y-%m-%d+%H:%M:%S")
                _LOGGER.debug(datetime_now)
                payloadBattery= f"devicesn={deviceSnArr}&timeStr={datetime_now}"
                response_findBatteryRealTimeList = await self._session.post(url_findBatteryRealTimeList, headers=headers, data=payloadBattery)
                result_findBatteryRealTimeList = await response_findBatteryRealTimeList.json()
                result_batteryTemperature = dict()
                result_batteryTemperature["batteryTemperature"]=result_findBatteryRealTimeList["list"][0][0]["batTemperature"]
                plantDetails.update(result_batteryTemperature)
                _LOGGER.debug(result_findBatteryRealTimeList)

                if response_findBatteryRealTimeList.status != 200:
                    _LOGGER.error(f"{response_findBatteryRealTimeList.url} returned {response_findBatteryRealTimeList.status}")
                    return

from sajesolar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.