Skip to content

Commit

Permalink
Add timestamp options
Browse files Browse the repository at this point in the history
  • Loading branch information
DBuit committed Jan 15, 2021
1 parent 4ef5c11 commit d9c9035
Show file tree
Hide file tree
Showing 5 changed files with 22,275 additions and 232 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ In the above example we only set the `entity:` for a tile that is enough to let
| `state` | boolean | optional | false | The tile show extra state info like brightness for lights and last_changed for sensors on the tile you can also set an entity here and the state of this entity is shown on that place |
| `statePath` | boolean | optional | false | In combination with `state` you can also display other values besided the entities state. for example you can set this to `attributes.brightness` to display the brightness of the entity you have set in `state` |
| `hideState` | boolean | optional | false | When you do not wan't the last updated or brightness for lights is displayed you can hide the state by setting this to true |
| `timestampFormat` | string | optional | '[Klaar over] h [uur en ] mm [minuten]' | When you have a sensor with the device_class timestamp you can use the timestampFormat to format the timestamp to a readable date and time. Use text in [] brackets to add text |
| `timestampDiff` | boolean | optional | false | When you use a sensor with device_class timestamp and this display a timestamp in the future with the purpose to display in how many days/hours etc. the event takes place set this to true so it will calculate the different from now till the timestamp |
| `tap_action` | number | optional | See [actions](#action-options) | can be used to customize the action on tap/click (lights and switches have already a tap action) |
| `hold_action` | boolean | optional | See [actions](#action-options) | Set a custom action for hold, default it opens the more-info pop-up |
| `double_tap_action` | boolean | optional | See [actions](#action-options) | Set a custom action for double tap. If no double tap is defined this will default trigger the tap action |
Expand Down
22,169 changes: 21,981 additions & 188 deletions dist/homekit-panel-card.js

Large diffs are not rendered by default.

Loading

0 comments on commit d9c9035

Please sign in to comment.