uwap-home, NAS: revert to LWL based nas-online-check
Because the network topology changed and now the nas is on an non-MQTT-switchport
This commit is contained in:
parent
3208de65d4
commit
db62d59f67
1 changed files with 4 additions and 22 deletions
|
|
@ -323,21 +323,14 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
nasPower: {
|
nasPower: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/switch/office/3",
|
name: "nas/online",
|
||||||
type: types.option({
|
type: types.string
|
||||||
"0": "Link Down",
|
|
||||||
"6": "1000M",
|
|
||||||
"5": "100M",
|
|
||||||
"4": "100M (Half Duplex)",
|
|
||||||
"3": "10M",
|
|
||||||
"2": "10M (Half Duplex)"
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
name: "home-rust/wake/nas",
|
name: "home-rust/wake/nas",
|
||||||
type: types.string
|
type: types.string
|
||||||
},
|
},
|
||||||
defaultValue: "0"
|
defaultValue: "OFF"
|
||||||
},
|
},
|
||||||
|
|
||||||
...topicHeating("diningroom"),
|
...topicHeating("diningroom"),
|
||||||
|
|
@ -845,24 +838,13 @@ const config: Config = {
|
||||||
name: "NAS",
|
name: "NAS",
|
||||||
position: [310, 500],
|
position: [310, 500],
|
||||||
icon: svg(icons.mdiNas).color(({nasPower}) =>
|
icon: svg(icons.mdiNas).color(({nasPower}) =>
|
||||||
({
|
(nasPower === "on" ? hex("#00FF00") : hex("#000000"))),
|
||||||
"Link Down": hex("#888888"),
|
|
||||||
"1000M": hex("#00ff00"),
|
|
||||||
"10M": hex("#000000")
|
|
||||||
})[nasPower] || hex("#ff0000")),
|
|
||||||
ui: [
|
ui: [
|
||||||
{
|
{
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
topic: "nasPower",
|
topic: "nasPower",
|
||||||
text: "Einschalten",
|
text: "Einschalten",
|
||||||
icon: svg(icons.mdiPower),
|
icon: svg(icons.mdiPower),
|
||||||
on: "1000M"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "text",
|
|
||||||
text: "Link Speed",
|
|
||||||
icon: svg(icons.mdiEthernet),
|
|
||||||
topic: "nasPower"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue