@paul53 said in ZigBee Smart Knob Schalter / Dimmer - Blockly:
@roger-nawrath sagte: single für einschalten - double für ausschalten
Etwas einfacher (mit Trigger auf "wurde geändert"):
DANKE - das wäre ja "akzeptabel ... aber wenn wir schon mal dabei sind - darf ich noch eine Frage stellen?!
Ich habe div. Smart Power plug's arbeiten eigentlich "gut" .... aber, d.h. die Datenpunkte wie akt. Stromverbrauch, Watt, Spannung werden im IOBroker nur aktualisiert wenn die entsprechende App, sprich Handy aufgerufen wird . sobald man rausgeht, bzw. Bildschirm des Handy's abschaltet ... werden die Daten/Datenpunkte nicht mehr aktualisiert oder besser nur der Datenpunkt "Summenbildung kWh" - dieser Punkt wird von der App selber verwaltet.
{
"type": "device",
"common": {
"name": "Smart Power Plug 1",
"read": true
},
"native": {
"accessType": 0,
"activeTime": 1732095433,
"baseAttribute": 0,
"cloudOnline": true,
"communication": {
"communicationModes": [
{
"pv": "",
"type": 0
},
{
"pv": "2.2",
"type": 1
}
],
"communicationNode": "bfdb09c8b08d4f0be3brav",
"connectionStatus": 1,
"dataModel": 1,
"mqttTopicAttr": 1
},
"dataPointInfo": {
"dpMaxTime": 1732539327445,
"dpName": {},
"dps": {
"1": true,
"9": 0,
"17": 14.34,
"18": 0,
"19": 0,
"20": 233,
"21": 0,
"26": 0,
"27": 1,
"28": 1,
"29": false,
"209": "AAo=",
"210": "AAY="
},
"dpsTime": {
"1": 1732295898419,
"9": 1732262220541,
"17": 1732505408820,
"18": 1732284953307,
"19": 1732284953307,
"20": 1732539327445,
"21": 1732262220541,
"26": 1732262220541,
"27": 1732262220541,
"28": 1732262220541,
"29": 1732262220541,
"209": 1732263945168,
"210": 1732263945066
}
},
"devAttribute": 2048,
"devId": "bf57b8d521a1c155663hp9",
"devKey": "",
"deviceTopo": {
"nodeId": "a4c138b73c0ed519",
"parentDevId": "bfdb09c8b08d4f0be3brav"
},
"iconUrl": "https://images.tuyaeu.com/smart/icon/ay1503986080106Gppjy/0459cb9952626151091004d97a159c01.png",
"lat": "52.45",
"localKey": "",
"lon": "13.54",
"mac": "a4c138b73c0ed519",
"name": "Smart Power Plug 1",
"otaInfo": {
"otaModuleMap": {
"zigbee": {
"cdv": "",
"upgradeStatus": 3,
"verSw": "1.1.0"
}
},
"otaUpgradeModes": [
0
],
"supportAuto": true
},
"ownerId": "182565009",
"productId": "w0qqde0g",
"runtimeEnv": "prod",
"secKey": "",
"timezoneId": "Europe/Berlin",
"uuid": "a4c138b73c0ed519",
"virtual": false,
"virtualExperience": false,
"dpName": {},
"meshId": "bfdb09c8b08d4f0be3brav",
"groudId": 182565009,
"schema": [
{
"code": "switch_1",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-dp_power",
"type": "obj",
"executable": true,
"mode": "rw",
"defaultRecommend": false,
"name": "开关1",
"property": {
"type": "bool"
},
"subType": "bool",
"id": 1,
"editPermission": false
},
{
"code": "countdown_1",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-dp_time3",
"type": "obj",
"executable": false,
"mode": "rw",
"defaultRecommend": true,
"name": "开关1倒计时",
"property": {
"unit": "s",
"min": 0,
"max": 43200,
"scale": 0,
"step": 1,
"type": "value"
},
"subType": "value",
"id": 9,
"editPermission": false
},
{
"code": "add_ele",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-dp_battery",
"type": "obj",
"executable": false,
"mode": "rw",
"defaultRecommend": true,
"name": "增加电量",
"property": {
"unit": "kwh",
"min": 0,
"max": 100000000,
"scale": 3,
"step": 100,
"type": "value"
},
"subType": "value",
"id": 17,
"editPermission": false
},
{
"code": "cur_current",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-gongnuan",
"type": "obj",
"executable": false,
"mode": "ro",
"defaultRecommend": true,
"name": "当前电流",
"property": {
"unit": "mA",
"min": 0,
"max": 30000,
"scale": 0,
"step": 1,
"type": "value"
},
"subType": "value",
"id": 18,
"editPermission": false
},
{
"code": "cur_power",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-power1",
"type": "obj",
"executable": false,
"mode": "ro",
"defaultRecommend": true,
"name": "当前功率",
"property": {
"unit": "W",
"min": 0,
"max": 50000,
"scale": 1,
"step": 1,
"type": "value"
},
"subType": "value",
"id": 19,
"editPermission": false
},
{
"code": "cur_voltage",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-icon-test6",
"type": "obj",
"executable": false,
"mode": "ro",
"defaultRecommend": true,
"name": "当前电压",
"property": {
"unit": "V",
"min": 0,
"max": 5000,
"scale": 1,
"step": 1,
"type": "value"
},
"subType": "value",
"id": 20,
"editPermission": false
},
{
"code": "test_bit",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-HomeArm",
"type": "obj",
"executable": false,
"mode": "ro",
"defaultRecommend": true,
"name": "产测结果位",
"property": {
"min": 0,
"max": 5,
"scale": 0,
"step": 1,
"type": "value"
},
"subType": "value",
"id": 21,
"editPermission": false
},
{
"code": "fault",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-baojing",
"type": "obj",
"executable": false,
"mode": "ro",
"defaultRecommend": true,
"name": "过流故障上报",
"property": {
"label": [
"ov_cr"
],
"type": "bitmap",
"maxlen": 1
},
"subType": "bitmap",
"id": 26,
"editPermission": false
},
{
"code": "relay_status",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-zhuangtai",
"type": "obj",
"executable": false,
"mode": "rw",
"defaultRecommend": true,
"name": "设备重启状态设置",
"property": {
"range": [
"off",
"on",
"memory"
],
"type": "enum"
},
"subType": "enum",
"id": 27,
"editPermission": false
},
{
"code": "light_mode",
"defaultValue": "",
"canTrigger": false,
"iconname": "tcl_function_light",
"type": "obj",
"executable": false,
"mode": "rw",
"defaultRecommend": false,
"name": "指示灯模式",
"property": {
"range": [
"none",
"relay",
"pos",
"on"
],
"type": "enum"
},
"subType": "enum",
"id": 28,
"editPermission": false
},
{
"code": "child_lock",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-dp_power2",
"type": "obj",
"executable": false,
"mode": "rw",
"defaultRecommend": false,
"name": "童锁",
"property": {
"type": "bool"
},
"subType": "bool",
"id": 29,
"editPermission": false
},
{
"code": "cycle_timing",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-dp_time3",
"type": "raw",
"executable": true,
"mode": "rw",
"defaultRecommend": false,
"name": "循环定时",
"subType": "raw",
"id": 209,
"editPermission": false
},
{
"code": "random_timing",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-dp_time3",
"type": "raw",
"executable": true,
"mode": "rw",
"defaultRecommend": false,
"name": "随机定时",
"subType": "raw",
"id": 210,
"editPermission": false
}
],
"productKey": "w0qqde0g",
"schemaExt": [
{
"complexType": "",
"id": 1,
"inputStyle": "",
"inputType": "plain"
},
{
"complexType": "",
"id": 9,
"inputStyle": "",
"inputType": " "
},
{
"complexType": "",
"id": 17,
"inputStyle": "",
"inputType": " "
},
{
"complexType": "",
"id": 27,
"inputStyle": "",
"inputType": " "
},
{
"complexType": "",
"id": 28,
"inputStyle": "",
"inputType": " "
},
{
"complexType": "",
"id": 29,
"inputStyle": "",
"inputType": " "
}
],
"version": "",
"cid": "a4c138b73c0ed519",
"dpCodes": {
"switch_1": {
"code": "switch_1",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-dp_power",
"type": "obj",
"executable": true,
"mode": "rw",
"defaultRecommend": false,
"name": "开关1",
"property": {
"type": "bool"
},
"subType": "bool",
"id": 1,
"editPermission": false
},
"countdown_1": {
"code": "countdown_1",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-dp_time3",
"type": "obj",
"executable": false,
"mode": "rw",
"defaultRecommend": true,
"name": "开关1倒计时",
"property": {
"unit": "s",
"min": 0,
"max": 43200,
"scale": 0,
"step": 1,
"type": "value"
},
"subType": "value",
"id": 9,
"editPermission": false
},
"add_ele": {
"code": "add_ele",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-dp_battery",
"type": "obj",
"executable": false,
"mode": "rw",
"defaultRecommend": true,
"name": "增加电量",
"property": {
"unit": "kwh",
"min": 0,
"max": 100000000,
"scale": 3,
"step": 100,
"type": "value"
},
"subType": "value",
"id": 17,
"editPermission": false
},
"cur_current": {
"code": "cur_current",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-gongnuan",
"type": "obj",
"executable": false,
"mode": "ro",
"defaultRecommend": true,
"name": "当前电流",
"property": {
"unit": "mA",
"min": 0,
"max": 30000,
"scale": 0,
"step": 1,
"type": "value"
},
"subType": "value",
"id": 18,
"editPermission": false
},
"cur_power": {
"code": "cur_power",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-power1",
"type": "obj",
"executable": false,
"mode": "ro",
"defaultRecommend": true,
"name": "当前功率",
"property": {
"unit": "W",
"min": 0,
"max": 50000,
"scale": 1,
"step": 1,
"type": "value"
},
"subType": "value",
"id": 19,
"editPermission": false
},
"cur_voltage": {
"code": "cur_voltage",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-icon-test6",
"type": "obj",
"executable": false,
"mode": "ro",
"defaultRecommend": true,
"name": "当前电压",
"property": {
"unit": "V",
"min": 0,
"max": 5000,
"scale": 1,
"step": 1,
"type": "value"
},
"subType": "value",
"id": 20,
"editPermission": false
},
"test_bit": {
"code": "test_bit",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-HomeArm",
"type": "obj",
"executable": false,
"mode": "ro",
"defaultRecommend": true,
"name": "产测结果位",
"property": {
"min": 0,
"max": 5,
"scale": 0,
"step": 1,
"type": "value"
},
"subType": "value",
"id": 21,
"editPermission": false
},
"fault": {
"code": "fault",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-baojing",
"type": "obj",
"executable": false,
"mode": "ro",
"defaultRecommend": true,
"name": "过流故障上报",
"property": {
"label": [
"ov_cr"
],
"type": "bitmap",
"maxlen": 1
},
"subType": "bitmap",
"id": 26,
"editPermission": false
},
"relay_status": {
"code": "relay_status",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-zhuangtai",
"type": "obj",
"executable": false,
"mode": "rw",
"defaultRecommend": true,
"name": "设备重启状态设置",
"property": {
"range": [
"off",
"on",
"memory"
],
"type": "enum"
},
"subType": "enum",
"id": 27,
"editPermission": false
},
"light_mode": {
"code": "light_mode",
"defaultValue": "",
"canTrigger": false,
"iconname": "tcl_function_light",
"type": "obj",
"executable": false,
"mode": "rw",
"defaultRecommend": false,
"name": "指示灯模式",
"property": {
"range": [
"none",
"relay",
"pos",
"on"
],
"type": "enum"
},
"subType": "enum",
"id": 28,
"editPermission": false
},
"child_lock": {
"code": "child_lock",
"defaultValue": "",
"canTrigger": false,
"iconname": "icon-dp_power2",
"type": "obj",
"executable": false,
"mode": "rw",
"defaultRecommend": false,
"name": "童锁",
"property": {
"type": "bool"
},
"subType": "bool",
"id": 29,
"editPermission": false
},
"cycle_timing": {
"code": "cycle_timing",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-dp_time3",
"type": "raw",
"executable": true,
"mode": "rw",
"defaultRecommend": false,
"name": "循环定时",
"subType": "raw",
"id": 209,
"editPermission": false
},
"random_timing": {
"code": "random_timing",
"defaultValue": "",
"canTrigger": true,
"iconname": "icon-dp_time3",
"type": "raw",
"executable": true,
"mode": "rw",
"defaultRecommend": false,
"name": "随机定时",
"subType": "raw",
"id": 210,
"editPermission": false
}
}
},
"from": "system.adapter.tuya.0",
"user": "system.user.admin",
"ts": 1732539942326,
"_id": "tuya.0.bf57b8d521a1c155663hp9"
}
Es muss ja eine Möglichkeit geben die Alle Datenpunkte auch ohne App abzufragen?!