4 lines
283 B
Bash
Executable File
4 lines
283 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo '{"schedule":"@every 5s","sensors":[{"sensor_name": "random 1","sensor_icon": "mdi:dice-1","sensor_state":'$((1 + $RANDOM % 10))'},{"sensor_name": "random 2","sensor_icon": "mdi:dice-2","sensor_state_class":"measurement","sensor_state":'$((1 + $RANDOM % 100))'}]}'
|