Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wirenboard WB-MAI11 #1

Open
DobriyVasia opened this issue Oct 24, 2022 · 4 comments
Open

Wirenboard WB-MAI11 #1

DobriyVasia opened this issue Oct 24, 2022 · 4 comments

Comments

@DobriyVasia
Copy link
Owner

DobriyVasia commented Oct 24, 2022

//дублируются датчики после перезагрузки хаба.

{
"manufacturer": "WirenBoard",
"model": "WB-MAI",
"catalogId": 76,
"services": [
{
"name": "Температура Danfoss",
"type": "TemperatureSensor",
"characteristics": [
{
"type": "CurrentTemperature",
"link": {
"type": "Float",
"topicSearch": "/devices/wb-mai11_54/controls/(IN [0-9]{1,2}.?[PN]*)/meta/type",
"topicGet": "/devices/wb-mai11_54/controls/IN 1 P Temperature",
"minStep":0.1,
"checkValue":true
}
}
]
},
{
"name": "В питьевом баке",
"type": "HumiditySensor",
"characteristics": [
{
"type": "CurrentRelativeHumidity",
"link": {
"type": "Float",
"topicGet": "/devices/wb-mai11_54/controls/IN 10 P Value"
}
}
]
},
{
"name": "Температура Бассейн",
"type": "TemperatureSensor",
"characteristics": [
{
"type": "CurrentTemperature",
"link": {
"type": "Float",
"topicGet": "/devices/wb-mai11_54/controls/IN 7 P Temperature",
"minStep":0.1,
"checkValue":true
}
}
]
},
{
"name": "В баке со скважины",
"type": "HumiditySensor",
"characteristics": [
{
"type": "CurrentRelativeHumidity",
"link": {
"type": "Float",
"topicGet": "/devices/wb-mai11_54/controls/IN 10 N Value"
}
}
]
}
]
}

@DobriyVasia
Copy link
Owner Author

Хотелось бы вытащить эти топики

Топики

@DobriyVasia
Copy link
Owner Author

DobriyVasia commented Oct 25, 2022

Есть только такой шаблон.
https://github.com/alexey-gamov/wirenboard/blob/main/templates/sprut-mqtt/wb-mai.json

@DobriyVasia
Copy link
Owner Author

[
{
"manufacturer": "WirenBoard",
"model": "WB-MAI",
"catalogId": 76,
"services": [
{
"name": "Температура",
"type": "TemperatureSensor",
"characteristics": [
{
"type": "CurrentTemperature",
"link": {
"type": "Float",
"topicSearch": "/devices/(wb-mai(?:6|11)[0-9]{1,3})/controls/(IN [0-9]{1,2}.?[PN]* Temperature)/meta/type",
"topicGet": "/devices/(1)/controls/(2)",
"minStep": 0.1,
"checkValue": true
}
}
]
}
]
},
{
"manufacturer": "WirenBoard",
"model": "WB-MAI",
"catalogId": 76,
"services": [
{
"name": "Датчики давления",
"type": "HumiditySensor",
"characteristics": [
{
"type": "CurrentRelativeHumidity",
"link": {
"type": "Float",
"topicSearch": "/devices/(wb-mai(?:6|11)
[0-9]{1,3})/controls/(IN [0-9]{1,2}.?[PN]* Value)/meta/type",
"topicGet": "/devices/(1)/controls/(2)"
}
}
]
}
]
}
]

@DobriyVasia
Copy link
Owner Author

Пришел к такой версии.
При перезагрузке не дублируется.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant