Field Label SensorID and spaghetti
-
-
@jeelet said in Field Label SensorID and spaghetti:
I can't figure out how
edit the field details and add new label
name: My Relay
Example:
-
Hello
Sorry but "Update Resource" is not found
houlala
quote
Patience and length of time
Is more than strength or rage." -
Sorry but "Update Resource" is not found
I took the screenshot from different widget
Please updateName Key
aslabels.name
If you like to use custom name, you should include a label
ignore_name: true
-
YAML View is good
- Edit Widget Settings
resource: filters: metricType: binary name: relay limit: 10 nameKey: labels.name type: field tableView: true type: switch_button
- Field Details
.. odeId: '32' sourceId: '3' fieldId: V_STATUS name: relay metricType: binary ... labels: ignore_name: 'true' ms_node_id: '32' ms_sensor_id: '3' ms_type: '2' ms_type_string: V_STATUS name: relay ...
beautiful , working cella
I'll put the explanation in writing
Thanks a lot jkandasa
-
the updated tutorial sheet
-
an example for the relay is put in picture,
but it's the same for the door sensor.
so in red and pink the elements to add.
in green it's the MySensors sketch that puts them together by itself -
the important part so that the name is not changed
" jkandasa@ you like to use custom name, you should include a label "
ignore_name: true
well the continuation
-
-
@jeelet No need to update both
name
andlabels.name
, you can use either.- if you use
name
, you should addlabels.ignore_name: 'true'
- otherwise you can use the
labels.name
directly
- if you use
-
In the Widgets the options arrive at a speed too fast for my little brain, I can follow, but it's superhuman
Here is a picture of the new options: texte du lien
two questions:
what value to write in the- Timestamp Key (what is it?)
and the - Payload
in the SendPayload
the name "true" can be changed ?- it's how to have a state, a return of state of a button which changes of color.
Red : default
Orange : On
Blue : Off
is there someone who can help you with the Documentation ?
how to set up MyController !Nice work
(for information, next week I will be absent)
- Timestamp Key (what is it?)
-
my last words may be confusing
the picture idea texte du lien
a button that takes several color states
(an idea of how difficult it is, it's up to you, and there are surely more important things to do)yes as you are in Widgets it is the right time to do it?
-
Timestamp Key (what is it?)
Timestamp Key
used to displayLast Seen
in the panel.Example:
- in
field
, it can becurrent.timstamp
- in
node
, it can belastSeen
in the SendPayload
the name "true" can be changed ?Yes, you can send anything you want and your node should support for that value
for buttons useToggle Switch
orButton Switch
, gives better intractionit's how to have a state, a return of state of a button which changes of color.
Red : default
Orange : On
Blue : OffYou can not change the button color in
off
state. it is applicable only foron
state and for now it is linked with UI framework, so supports only four types
is there someone who can help you with the Documentation ?
for now I do not see much contribution from the world. I believe we will get it soon.
(for information, next week I will be absent)
enjoy your time
- in
-
my last words may be confusing
the picture idea texte du lien
a button that takes several color states
(an idea of how difficult it is, it's up to you, and there are surely more important things to do)yes as you are in Widgets it is the right time to do it?
In MyController, MySensors plugin supports acknowledgement, hence state can not change if there is no acknowledgement received.
In MyController, you can set retry count to reattempt to send the payload again.
Example:
-
hello jkandasa
The Relay Controls with MyC work well.
switch ON/OFF button perfectI have added to my sketch the function to turn off the relays when the arduino is restarted.
"digitalWrite(PIN_RELAY_1, RELAY_OFF);"and add also
"send(msg.set(CHILD_ID_RELAY_1==HIGH ? 1 : 0), true);"
to return the information to MyControllerBut in my widget the status remains ON, while the Relay is OFF
it's an error in my sketch and I have misconfigured my widget ?
Thanks
-
@jeelet in your sketch add
wait(300);
aftersend(...)
and seems some error in yourmsg.set
command,I do not know your sketch, This may not be right solution, hope it should work
send(msg.set(digitalRead(PIN_RELAY_1)==HIGH ? 1 : 0));
, -
yes yes I saw my mistake after posting
Setup ()
send(msg.set(CHILD_ID_RELAY_1?false:true), true);
or
send(msg.set(digitalRead(PIN_RELAY_1)==HIGH ? 1 : 0));the 2 possibilities work
at reboot of the Arduino it is functional .
the status of my relay changes well
thanks
sorry for the inconvenience -
@jeelet no problem, good to know that it works for you