Comments (5)
Can you post your config? (without username and password)
I presume the API/web site urls have changed, they enabled https a while back, but couldn't get it to work by simply changing the url.
from home-assistant-custom-components.
Yes, here it is. I did not change it since the last time the component worked.
sensor:
- platform: solarportal
host: www.omnikportal.com
port: 10000
username: MYUSERNAME
password: MYPASSWORD
scan_interval: 1800
resources:
- actualpower
- energytoday
from home-assistant-custom-components.
There is a post on the website that there is a new app now, so I guessed the old API was removed:
Dear Customers,
Omnik old version APP has removed,and no running anymore. Please
download new APP version (Omnik Portal) from the App Store.If you use Android system, please go to Google play download:
"Omnik Portal"
https://play.google.com/store/apps/details?id=com.jialeinfo.omniksolar&hl=enIf you use iOS system, please go to iOS App store download:
"Omnik Portal"
https://itunes.apple.com/cn/app/id1246117091
Thank you so much for your notice.
Omnik Team
I took a peek inside the new Android app, and the below urls can be found.
They use a token based authentication now it seems.
Did some searching, but I found no python or other code supporting this yet.
sources/com/jialeinfo/util/Configs.java: public static final String AccessTokenUrl = "https://api.omnikportal.com/v1/user/account_validate";
sources/com/jialeinfo/util/Configs.java: public static final String AddDataLogger = "https://api.omnikportal.com/v1/device/datalogger/add";
sources/com/jialeinfo/util/Configs.java: public static final String AddPlantUrl = "https://api.omnikportal.com/v1/plant/add";
sources/com/jialeinfo/util/Configs.java: public static final String AreasUrl = "https://api.omnikportal.com/v1/plant/areas";
sources/com/jialeinfo/util/Configs.java: public static final String C_User_ListUrl = "https://api.omnikportal.com/v1/user/c_user_list";
sources/com/jialeinfo/util/Configs.java: public static final String DOWNLOAD = "https://play.google.com/store/apps/details?id=com.jialeinfo.omniksolar";
sources/com/jialeinfo/util/Configs.java: public static final String DataLoggerDeleteUrl = "https://api.omnikportal.com/v1/device/datalogger/delete";
sources/com/jialeinfo/util/Configs.java: public static final String DataLoggerListUrl = "https://api.omnikportal.com/v1/device/datalogger/list";
sources/com/jialeinfo/util/Configs.java: public static final String DataLoggerModifyUrl = "https://api.omnikportal.com/v1/device/datalogger/modify";
sources/com/jialeinfo/util/Configs.java: public static final String DataLoggerSimUrl = "https://api.omnikportal.com/v1/device/datalogger/sim";
sources/com/jialeinfo/util/Configs.java: public static final String DeletePlantUrl = "https://api.omnikportal.com/v1/plant/delete";
sources/com/jialeinfo/util/Configs.java: public static final String DeviceListUrl = "https://api.omnikportal.com/v1/device/list";
sources/com/jialeinfo/util/Configs.java: public static final String DtailsUrl = "https://api.omnikportal.com/v1/plant/details";
sources/com/jialeinfo/util/Configs.java: public static final String HistoryEnergyUrl = "https://api.omnikportal.com/v1/plant/energy";
sources/com/jialeinfo/util/Configs.java: public static final String InverterAlarmModifyUrl = "https://api.omnikportal.com/v1/device/inverter/alarm_modify";
sources/com/jialeinfo/util/Configs.java: public static final String InverterAlarmUrl = "https://api.omnikportal.com/v1/device/inverter/alarm";
sources/com/jialeinfo/util/Configs.java: public static final String InverterDataUrl = "https://api.omnikportal.com/v1/device/inverter/data";
sources/com/jialeinfo/util/Configs.java: public static final String ListUrl = "https://api.omnikportal.com/v1/plant/list";
sources/com/jialeinfo/util/Configs.java: public static final String ModifyPlantUrl = "https://api.omnikportal.com/v1/plant/modify";
sources/com/jialeinfo/util/Configs.java: public static final String ModifyUrl = "https://api.omnikportal.com/v1/user/c_user_list";
sources/com/jialeinfo/util/Configs.java: public static final String PlantDataUrl = "https://api.omnikportal.com/v1/plant/data";
sources/com/jialeinfo/util/Configs.java: public static final String RegisterUrl = "https://api.omnikportal.com/v1/user/b_user_register";
sources/com/jialeinfo/util/Configs.java: public static final String StatisticUrl = "https://api.omnikportal.com/v1/plant/statistic";
sources/com/jialeinfo/util/Configs.java: public static final String TodayPowerUrl = "https://api.omnikportal.com/v1/plant/power";
sources/com/jialeinfo/util/Configs.java: public static final String UsageUrl = "https://api.omnikportal.com/v1/user/account_validate";
sources/com/jialeinfo/util/Configs.java: public static final String VersionUrl = "https://api.omnikportal.com/v1/version/current";
sources/com/jialeinfo/util/Configs.java: public static final String eUrl = "https://api.omnikportal.com/v1";
sources/com/jialeinfo/util/Configs.java: public static final String userLogin = "https://api.omnikportal.com/v1/user/account_validate";
from home-assistant-custom-components.
Looks like some code can be found here
https://github.com/DiedB/Homey-SolarPanels
from home-assistant-custom-components.
Stale issue, closing for now.
from home-assistant-custom-components.
Related Issues (20)
- Toon climate and smartmeter not working since 0.89 HOT 8
- Error while setting up platform Toon in 0.90.1 HOT 1
- Branderinfo Toon HOT 4
- Toon with 0.92 HOT 4
- Plugwise 0.92.1 HOT 2
- Support for custom_updater HOT 6
- Plugwise timeouts HOT 5
- Feature request: Total power usage current day HOT 4
- [Smartmeter] Sensors remain "unknown" HOT 1
- toon_climate not working after Home Assistant update 0.96 HOT 20
- Can't import repo in Home Assistant HOT 1
- plugwise outlets not working with home assistant 0.96 HOT 2
- After install it won't connect HOT 4
- P2000 component location wrong HOT 2
- Plugwise not working anymore HOT 3
- Home Assistant Community Store support? HOT 7
- ModuleNotFoundError: No module named 'homeassistant.components.plugwise.switch' HOT 2
- Solarportal: no updates and error logs AttributeError: 'NoneType' object has no attribute 'find'
- The plugwise platform for the switch integration does not support platform setup. Please remove it from your config.
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 home-assistant-custom-components.