mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-10-15 18:58:29 +00:00
feat: fix lua query and download logic
This commit is contained in:
@@ -347,6 +347,7 @@ class MeijuCloud(MideaCloud):
|
|||||||
"applianceMFCode": manufacturer_code,
|
"applianceMFCode": manufacturer_code,
|
||||||
'version': "0",
|
'version': "0",
|
||||||
"iotAppId": self.APP_ID,
|
"iotAppId": self.APP_ID,
|
||||||
|
"modelNumber": model_number
|
||||||
}
|
}
|
||||||
fnm = None
|
fnm = None
|
||||||
if response := await self._api_request(
|
if response := await self._api_request(
|
||||||
|
@@ -6,6 +6,7 @@ from homeassistant.components.switch import SwitchDeviceClass
|
|||||||
DEVICE_MAPPING = {
|
DEVICE_MAPPING = {
|
||||||
"default": {
|
"default": {
|
||||||
"rationale": [0, 1],
|
"rationale": [0, 1],
|
||||||
|
"queries": [{}],
|
||||||
"calculate": {
|
"calculate": {
|
||||||
"get": [
|
"get": [
|
||||||
{
|
{
|
||||||
|
@@ -6,6 +6,7 @@ from homeassistant.components.switch import SwitchDeviceClass
|
|||||||
DEVICE_MAPPING = {
|
DEVICE_MAPPING = {
|
||||||
"default": {
|
"default": {
|
||||||
"rationale": [0, 1],
|
"rationale": [0, 1],
|
||||||
|
"queries": [{}],
|
||||||
"calculate": {
|
"calculate": {
|
||||||
"get": [
|
"get": [
|
||||||
{
|
{
|
||||||
|
@@ -33,7 +33,6 @@ DEVICE_MAPPING = {
|
|||||||
"entities": {
|
"entities": {
|
||||||
Platform.WATER_HEATER: {
|
Platform.WATER_HEATER: {
|
||||||
"water_heater": {
|
"water_heater": {
|
||||||
"name": "Water Heater",
|
|
||||||
"power": "power",
|
"power": "power",
|
||||||
"operation_list": {
|
"operation_list": {
|
||||||
"off": {"power": "off"},
|
"off": {"power": "off"},
|
||||||
|
@@ -5,6 +5,7 @@ from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
|||||||
DEVICE_MAPPING = {
|
DEVICE_MAPPING = {
|
||||||
"default": {
|
"default": {
|
||||||
"rationale": [0, 1],
|
"rationale": [0, 1],
|
||||||
|
"queries": [{}],
|
||||||
"calculate": {
|
"calculate": {
|
||||||
"get": [
|
"get": [
|
||||||
{
|
{
|
||||||
@@ -96,6 +97,7 @@ DEVICE_MAPPING = {
|
|||||||
},
|
},
|
||||||
"61001527": {
|
"61001527": {
|
||||||
"rationale": [0, 1],
|
"rationale": [0, 1],
|
||||||
|
"queries": [{}],
|
||||||
"calculate": {
|
"calculate": {
|
||||||
"get": [
|
"get": [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user